From 5d66e02756a8004538d767e24b1d00781b06e4dc Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:08:57 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../accessapproval/v1/AccessApprovalGrpc.java | 1593 ----------------- .../v1/AccessApprovalAdminClient.java | 39 +- .../v1/AccessApprovalAdminSettings.java | 36 +- .../accessapproval/v1/gapic_metadata.json | 0 .../cloud/accessapproval/v1/package-info.java | 0 .../v1/stub/AccessApprovalStub.java | 0 .../v1/stub/AccessApprovalStubSettings.java | 77 +- .../GrpcAccessApprovalCallableFactory.java | 0 .../v1/stub/GrpcAccessApprovalStub.java | 1 + ...HttpJsonAccessApprovalCallableFactory.java | 105 ++ .../v1/stub/HttpJsonAccessApprovalStub.java | 708 ++++++++ ...AccessApprovalAdminClientHttpJsonTest.java | 874 +++++++++ .../v1/AccessApprovalAdminClientTest.java | 0 .../accessapproval/v1/MockAccessApproval.java | 0 .../v1/MockAccessApprovalImpl.java | 0 .../accessapproval/v1/AccessApprovalGrpc.java | 1209 +++++++++++++ .../v1/AccessApprovalProto.java | 465 +++++ .../v1/AccessApprovalServiceAccount.java | 414 ++--- ...AccessApprovalServiceAccountOrBuilder.java | 36 +- .../v1/AccessApprovalSettings.java | 765 +++----- .../v1/AccessApprovalSettingsName.java | 0 .../v1/AccessApprovalSettingsOrBuilder.java | 81 +- .../accessapproval/v1/AccessLocations.java | 401 ++--- .../v1/AccessLocationsOrBuilder.java | 36 +- .../cloud/accessapproval/v1/AccessReason.java | 463 ++--- .../v1/AccessReasonOrBuilder.java | 33 +- .../accessapproval/v1/ApprovalRequest.java | 1217 +++++-------- .../v1/ApprovalRequestName.java | 0 .../v1/ApprovalRequestOrBuilder.java | 104 +- .../v1/ApproveApprovalRequestMessage.java | 429 ++--- ...pproveApprovalRequestMessageOrBuilder.java | 35 +- .../accessapproval/v1/ApproveDecision.java | 666 +++---- .../v1/ApproveDecisionOrBuilder.java | 53 +- .../DeleteAccessApprovalSettingsMessage.java | 354 ++-- ...ccessApprovalSettingsMessageOrBuilder.java | 27 +- .../v1/DismissApprovalRequestMessage.java | 335 ++-- ...ismissApprovalRequestMessageOrBuilder.java | 29 + .../accessapproval/v1/DismissDecision.java | 368 ++-- .../v1/DismissDecisionOrBuilder.java | 29 +- .../accessapproval/v1/EnrolledService.java | 383 ++-- .../v1/EnrolledServiceOrBuilder.java | 33 +- .../accessapproval/v1/EnrollmentLevel.java | 79 +- .../cloud/accessapproval/v1/FolderName.java | 0 ...etAccessApprovalServiceAccountMessage.java | 371 ++-- ...pprovalServiceAccountMessageOrBuilder.java | 27 +- .../v1/GetAccessApprovalSettingsMessage.java | 350 ++-- ...ccessApprovalSettingsMessageOrBuilder.java | 27 +- .../v1/GetApprovalRequestMessage.java | 321 ++-- .../GetApprovalRequestMessageOrBuilder.java | 27 +- .../v1/InvalidateApprovalRequestMessage.java | 350 ++-- ...lidateApprovalRequestMessageOrBuilder.java | 27 +- .../v1/ListApprovalRequestsMessage.java | 526 +++--- .../ListApprovalRequestsMessageOrBuilder.java | 48 +- .../v1/ListApprovalRequestsResponse.java | 471 ++--- ...ListApprovalRequestsResponseOrBuilder.java | 42 +- .../accessapproval/v1/OrganizationName.java | 0 .../cloud/accessapproval/v1/ProjectName.java | 0 .../accessapproval/v1/ResourceProperties.java | 275 ++- .../v1/ResourcePropertiesOrBuilder.java | 20 + .../accessapproval/v1/SignatureInfo.java | 497 +++-- .../v1/SignatureInfoOrBuilder.java | 48 +- .../UpdateAccessApprovalSettingsMessage.java | 476 ++--- ...ccessApprovalSettingsMessageOrBuilder.java | 34 +- .../accessapproval/v1/accessapproval.proto | 0 .../AsyncApproveApprovalRequest.java | 0 .../SyncApproveApprovalRequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 0 .../AsyncDeleteAccessApprovalSettings.java | 0 .../SyncDeleteAccessApprovalSettings.java | 1 + ...valSettingsAccessapprovalsettingsname.java | 7 +- ...yncDeleteAccessApprovalSettingsString.java | 7 +- .../AsyncDismissApprovalRequest.java | 0 .../SyncDismissApprovalRequest.java | 0 .../AsyncGetAccessApprovalServiceAccount.java | 3 +- .../SyncGetAccessApprovalServiceAccount.java | 3 +- ...GetAccessApprovalServiceAccountString.java | 6 +- .../AsyncGetAccessApprovalSettings.java | 0 .../SyncGetAccessApprovalSettings.java | 0 ...valSettingsAccessapprovalsettingsname.java | 6 +- .../SyncGetAccessApprovalSettingsString.java | 3 +- .../AsyncGetApprovalRequest.java | 0 .../SyncGetApprovalRequest.java | 0 ...GetApprovalRequestApprovalrequestname.java | 6 +- .../SyncGetApprovalRequestString.java | 0 .../AsyncInvalidateApprovalRequest.java | 0 .../SyncInvalidateApprovalRequest.java | 0 .../AsyncListApprovalRequests.java | 0 .../AsyncListApprovalRequestsPaged.java | 0 .../SyncListApprovalRequests.java | 0 .../SyncListApprovalRequestsFoldername.java | 3 +- ...cListApprovalRequestsOrganizationname.java | 6 +- .../SyncListApprovalRequestsProjectname.java | 3 +- .../SyncListApprovalRequestsString.java | 0 .../AsyncUpdateAccessApprovalSettings.java | 0 .../SyncUpdateAccessApprovalSettings.java | 0 ...ttingsAccessapprovalsettingsFieldmask.java | 6 +- .../SyncGetApprovalRequest.java | 0 .../SyncGetApprovalRequest.java | 0 .../v1/AccessApprovalProto.java | 514 ------ ...ismissApprovalRequestMessageOrBuilder.java | 50 - .../v1/ResourcePropertiesOrBuilder.java | 39 - 103 files changed, 7400 insertions(+), 8718 deletions(-) delete mode 100644 grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java (97%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java (90%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json (100%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/package-info.java (100%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java (100%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java (90%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java (100%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java create mode 100644 owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java (100%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java (100%) rename {google-cloud-accessapproval => owl-bot-staging/v1/google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java (70%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java (63%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java (83%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java (100%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java (89%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java (75%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java (77%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java (72%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java (61%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java (72%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java (100%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java (85%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java (68%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java (64%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java (72%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java (80%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java (64%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java (50%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java (71%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java (65%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java (79%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java (85%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java (65%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java (100%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java (62%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java (52%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java (65%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java (55%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java (69%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java (55%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java (65%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java (50%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java (73%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java (75%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java (73%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java (70%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java (100%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java (100%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java (74%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java (71%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java (72%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java (81%) rename {proto-google-cloud-accessapproval-v1 => owl-bot-staging/v1/proto-google-cloud-accessapproval-v1}/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java (84%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java (85%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java (94%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java (94%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java (86%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java (86%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java (93%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java (93%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java (93%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java (86%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java (100%) delete mode 100644 proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java delete mode 100644 proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java delete mode 100644 proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java diff --git a/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java b/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java deleted file mode 100644 index a35c0204..00000000 --- a/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java +++ /dev/null @@ -1,1593 +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.accessapproval.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This API allows a customer to manage accesses to cloud resources by
- * Google personnel. It defines the following resource model:
- * - The API has a collection of
- *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
- *   resources, named `approvalRequests/{approval_request}`
- * - The API has top-level settings per Project/Folder/Organization, named
- *   `accessApprovalSettings`
- * The service also periodically emails a list of recipients, defined at the
- * Project/Folder/Organization level in the accessApprovalSettings, when there
- * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
- * also optionally be published to a Pub/Sub topic owned by the customer
- * (contact support if you would like to enable Pub/Sub notifications).
- * ApprovalRequests can be approved or dismissed. Google personnel can only
- * access the indicated resource or resources if the request is approved
- * (subject to some exclusions:
- * https://cloud.google.com/access-approval/docs/overview#exclusions).
- * Note: Using Access Approval functionality will mean that Google may not be
- * able to meet the SLAs for your chosen products, as any support response times
- * may be dramatically increased. As such the SLAs do not apply to any service
- * disruption to the extent impacted by Customer's use of Access Approval. Do
- * not enable Access Approval for projects where you may require high service
- * availability and rapid response by Google Cloud Support.
- * After a request is approved or dismissed, no further action may be taken on
- * it. Requests with the requested_expiration in the past or with no activity
- * for 14 days are considered dismissed. When an approval expires, the request
- * is considered dismissed.
- * If a request is not approved or dismissed, we call it pending.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/accessapproval/v1/accessapproval.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AccessApprovalGrpc { - - private AccessApprovalGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.accessapproval.v1.AccessApproval"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> - getListApprovalRequestsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApprovalRequests", - requestType = com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, - responseType = com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> - getListApprovalRequestsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> - getListApprovalRequestsMethod; - if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) - == null) { - AccessApprovalGrpc.getListApprovalRequestsMethod = - getListApprovalRequestsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListApprovalRequests")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier("ListApprovalRequests")) - .build(); - } - } - } - return getListApprovalRequestsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getGetApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getGetApprovalRequestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getGetApprovalRequestMethod; - if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) - == null) { - AccessApprovalGrpc.getGetApprovalRequestMethod = - getGetApprovalRequestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier("GetApprovalRequest")) - .build(); - } - } - } - return getGetApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getApproveApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApproveApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getApproveApprovalRequestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getApproveApprovalRequestMethod; - if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) - == null) { - AccessApprovalGrpc.getApproveApprovalRequestMethod = - getApproveApprovalRequestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ApproveApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier("ApproveApprovalRequest")) - .build(); - } - } - } - return getApproveApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getDismissApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DismissApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getDismissApprovalRequestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getDismissApprovalRequestMethod; - if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) - == null) { - AccessApprovalGrpc.getDismissApprovalRequestMethod = - getDismissApprovalRequestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DismissApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier("DismissApprovalRequest")) - .build(); - } - } - } - return getDismissApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getInvalidateApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InvalidateApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getInvalidateApprovalRequestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest> - getInvalidateApprovalRequestMethod; - if ((getInvalidateApprovalRequestMethod = AccessApprovalGrpc.getInvalidateApprovalRequestMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getInvalidateApprovalRequestMethod = - AccessApprovalGrpc.getInvalidateApprovalRequestMethod) - == null) { - AccessApprovalGrpc.getInvalidateApprovalRequestMethod = - getInvalidateApprovalRequestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "InvalidateApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier("InvalidateApprovalRequest")) - .build(); - } - } - } - return getInvalidateApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getGetAccessApprovalSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalSettings", - requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, - responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getGetAccessApprovalSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getGetAccessApprovalSettingsMethod; - if ((getGetAccessApprovalSettingsMethod = AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getGetAccessApprovalSettingsMethod = - AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) - == null) { - AccessApprovalGrpc.getGetAccessApprovalSettingsMethod = - getGetAccessApprovalSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAccessApprovalSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.AccessApprovalSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier("GetAccessApprovalSettings")) - .build(); - } - } - } - return getGetAccessApprovalSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getUpdateAccessApprovalSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccessApprovalSettings", - requestType = com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, - responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getUpdateAccessApprovalSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getUpdateAccessApprovalSettingsMethod; - if ((getUpdateAccessApprovalSettingsMethod = - AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getUpdateAccessApprovalSettingsMethod = - AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) - == null) { - AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod = - getUpdateAccessApprovalSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAccessApprovalSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.AccessApprovalSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier( - "UpdateAccessApprovalSettings")) - .build(); - } - } - } - return getUpdateAccessApprovalSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, - com.google.protobuf.Empty> - getDeleteAccessApprovalSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAccessApprovalSettings", - requestType = com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, - com.google.protobuf.Empty> - getDeleteAccessApprovalSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, - com.google.protobuf.Empty> - getDeleteAccessApprovalSettingsMethod; - if ((getDeleteAccessApprovalSettingsMethod = - AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getDeleteAccessApprovalSettingsMethod = - AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) - == null) { - AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod = - getDeleteAccessApprovalSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAccessApprovalSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier( - "DeleteAccessApprovalSettings")) - .build(); - } - } - } - return getDeleteAccessApprovalSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> - getGetAccessApprovalServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalServiceAccount", - requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, - responseType = com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> - getGetAccessApprovalServiceAccountMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> - getGetAccessApprovalServiceAccountMethod; - if ((getGetAccessApprovalServiceAccountMethod = - AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) - == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getGetAccessApprovalServiceAccountMethod = - AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) - == null) { - AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod = - getGetAccessApprovalServiceAccountMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAccessApprovalServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1 - .GetAccessApprovalServiceAccountMessage.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount - .getDefaultInstance())) - .setSchemaDescriptor( - new AccessApprovalMethodDescriptorSupplier( - "GetAccessApprovalServiceAccount")) - .build(); - } - } - } - return getGetAccessApprovalServiceAccountMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AccessApprovalStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AccessApprovalStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalStub(channel, callOptions); - } - }; - return AccessApprovalStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AccessApprovalBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AccessApprovalBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalBlockingStub(channel, callOptions); - } - }; - return AccessApprovalBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AccessApprovalFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AccessApprovalFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalFutureStub(channel, callOptions); - } - }; - return AccessApprovalFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public abstract static class AccessApprovalImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public void listApprovalRequests( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListApprovalRequestsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public void getApprovalRequest( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetApprovalRequestMethod(), responseObserver); - } - - /** - * - * - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public void approveApprovalRequest( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getApproveApprovalRequestMethod(), responseObserver); - } - - /** - * - * - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public void dismissApprovalRequest( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDismissApprovalRequestMethod(), responseObserver); - } - - /** - * - * - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public void invalidateApprovalRequest( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInvalidateApprovalRequestMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public void getAccessApprovalSettings( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAccessApprovalSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public void updateAccessApprovalSettings( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAccessApprovalSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public void deleteAccessApprovalSettings( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAccessApprovalSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public void getAccessApprovalServiceAccount( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAccessApprovalServiceAccountMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListApprovalRequestsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse>( - this, METHODID_LIST_APPROVAL_REQUESTS))) - .addMethod( - getGetApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_GET_APPROVAL_REQUEST))) - .addMethod( - getApproveApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_APPROVE_APPROVAL_REQUEST))) - .addMethod( - getDismissApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_DISMISS_APPROVAL_REQUEST))) - .addMethod( - getInvalidateApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_INVALIDATE_APPROVAL_REQUEST))) - .addMethod( - getGetAccessApprovalSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings>( - this, METHODID_GET_ACCESS_APPROVAL_SETTINGS))) - .addMethod( - getUpdateAccessApprovalSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings>( - this, METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS))) - .addMethod( - getDeleteAccessApprovalSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, - com.google.protobuf.Empty>(this, METHODID_DELETE_ACCESS_APPROVAL_SETTINGS))) - .addMethod( - getGetAccessApprovalServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount>( - this, METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT))) - .build(); - } - } - - /** - * - * - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static final class AccessApprovalStub - extends io.grpc.stub.AbstractAsyncStub { - private AccessApprovalStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AccessApprovalStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public void listApprovalRequests( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public void getApprovalRequest( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public void approveApprovalRequest( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public void dismissApprovalRequest( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public void invalidateApprovalRequest( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public void getAccessApprovalSettings( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public void updateAccessApprovalSettings( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public void deleteAccessApprovalSettings( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public void getAccessApprovalServiceAccount( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static final class AccessApprovalBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AccessApprovalBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AccessApprovalBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse listApprovalRequests( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApprovalRequestsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequest( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApprovalRequestMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest approveApprovalRequest( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApproveApprovalRequestMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest dismissApprovalRequest( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDismissApprovalRequestMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest invalidateApprovalRequest( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInvalidateApprovalRequestMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public com.google.cloud.accessapproval.v1.AccessApprovalSettings getAccessApprovalSettings( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccessApprovalSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public com.google.cloud.accessapproval.v1.AccessApprovalSettings updateAccessApprovalSettings( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccessApprovalSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public com.google.protobuf.Empty deleteAccessApprovalSettings( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccessApprovalSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount - getAccessApprovalServiceAccount( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccessApprovalServiceAccountMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static final class AccessApprovalFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AccessApprovalFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AccessApprovalFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> - listApprovalRequests( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.ApprovalRequest> - getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.ApprovalRequest> - approveApprovalRequest( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.ApprovalRequest> - dismissApprovalRequest( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.ApprovalRequest> - invalidateApprovalRequest( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - getAccessApprovalSettings( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.AccessApprovalSettings> - updateAccessApprovalSettings( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAccessApprovalSettings( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> - getAccessApprovalServiceAccount( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_LIST_APPROVAL_REQUESTS = 0; - private static final int METHODID_GET_APPROVAL_REQUEST = 1; - private static final int METHODID_APPROVE_APPROVAL_REQUEST = 2; - private static final int METHODID_DISMISS_APPROVAL_REQUEST = 3; - private static final int METHODID_INVALIDATE_APPROVAL_REQUEST = 4; - private static final int METHODID_GET_ACCESS_APPROVAL_SETTINGS = 5; - private static final int METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS = 6; - private static final int METHODID_DELETE_ACCESS_APPROVAL_SETTINGS = 7; - private static final int METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT = 8; - - 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 AccessApprovalImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AccessApprovalImplBase 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_LIST_APPROVAL_REQUESTS: - serviceImpl.listApprovalRequests( - (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse>) - responseObserver); - break; - case METHODID_GET_APPROVAL_REQUEST: - serviceImpl.getApprovalRequest( - (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_APPROVE_APPROVAL_REQUEST: - serviceImpl.approveApprovalRequest( - (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DISMISS_APPROVAL_REQUEST: - serviceImpl.dismissApprovalRequest( - (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_INVALIDATE_APPROVAL_REQUEST: - serviceImpl.invalidateApprovalRequest( - (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_ACCESS_APPROVAL_SETTINGS: - serviceImpl.getAccessApprovalSettings( - (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.accessapproval.v1.AccessApprovalSettings>) - responseObserver); - break; - case METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS: - serviceImpl.updateAccessApprovalSettings( - (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.accessapproval.v1.AccessApprovalSettings>) - responseObserver); - break; - case METHODID_DELETE_ACCESS_APPROVAL_SETTINGS: - serviceImpl.deleteAccessApprovalSettings( - (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT: - serviceImpl.getAccessApprovalServiceAccount( - (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AccessApprovalBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AccessApprovalBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AccessApproval"); - } - } - - private static final class AccessApprovalFileDescriptorSupplier - extends AccessApprovalBaseDescriptorSupplier { - AccessApprovalFileDescriptorSupplier() {} - } - - private static final class AccessApprovalMethodDescriptorSupplier - extends AccessApprovalBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AccessApprovalMethodDescriptorSupplier(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 (AccessApprovalGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AccessApprovalFileDescriptorSupplier()) - .addMethod(getListApprovalRequestsMethod()) - .addMethod(getGetApprovalRequestMethod()) - .addMethod(getApproveApprovalRequestMethod()) - .addMethod(getDismissApprovalRequestMethod()) - .addMethod(getInvalidateApprovalRequestMethod()) - .addMethod(getGetAccessApprovalSettingsMethod()) - .addMethod(getUpdateAccessApprovalSettingsMethod()) - .addMethod(getDeleteAccessApprovalSettingsMethod()) - .addMethod(getGetAccessApprovalServiceAccountMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java similarity index 97% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java index 48eb1ca1..57c8c169 100644 --- a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java @@ -87,13 +87,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. 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. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. 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. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. 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. *
* @@ -130,6 +130,21 @@ * AccessApprovalAdminClient.create(accessApprovalAdminSettings); * } * + *

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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AccessApprovalAdminSettings accessApprovalAdminSettings =
+ *     AccessApprovalAdminSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             AccessApprovalAdminSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * AccessApprovalAdminClient accessApprovalAdminClient =
+ *     AccessApprovalAdminClient.create(accessApprovalAdminSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1149,11 +1164,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListApprovalRequestsPagedResponse extends AbstractPagedListResponse< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, - ApprovalRequest, - ListApprovalRequestsPage, - ListApprovalRequestsFixedSizeCollection> { + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ApprovalRequest, + ListApprovalRequestsPage, ListApprovalRequestsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1174,9 +1186,7 @@ private ListApprovalRequestsPagedResponse(ListApprovalRequestsPage page) { public static class ListApprovalRequestsPage extends AbstractPage< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, - ApprovalRequest, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ApprovalRequest, ListApprovalRequestsPage> { private ListApprovalRequestsPage( @@ -1209,11 +1219,8 @@ public ApiFuture createPageAsync( public static class ListApprovalRequestsFixedSizeCollection extends AbstractFixedSizeCollection< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, - ApprovalRequest, - ListApprovalRequestsPage, - ListApprovalRequestsFixedSizeCollection> { + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ApprovalRequest, + ListApprovalRequestsPage, ListApprovalRequestsFixedSizeCollection> { private ListApprovalRequestsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java similarity index 90% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java index 64a5c986..f908d7e5 100644 --- a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java @@ -23,10 +23,12 @@ 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.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.accessapproval.v1.stub.AccessApprovalStubSettings; @@ -42,10 +44,10 @@ *

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

    - *
  • The default service address (accessapproval.googleapis.com) and default port (443) are + *
  • The default service address (accessapproval.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. + *
  • 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 @@ -76,8 +78,7 @@ public class AccessApprovalAdminSettings extends ClientSettings listApprovalRequestsSettings() { return ((AccessApprovalStubSettings) getStubSettings()).listApprovalRequestsSettings(); @@ -157,11 +158,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return AccessApprovalStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return AccessApprovalStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AccessApprovalStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return AccessApprovalStubSettings.defaultTransportChannelProvider(); } @@ -171,11 +179,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return AccessApprovalStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** 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); @@ -213,6 +227,11 @@ private static Builder createDefault() { return new Builder(AccessApprovalStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AccessApprovalStubSettings.newHttpJsonBuilder()); + } + public AccessApprovalStubSettings.Builder getStubSettingsBuilder() { return ((AccessApprovalStubSettings.Builder) getStubSettings()); } @@ -231,8 +250,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listApprovalRequests. */ public PagedCallSettings.Builder< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings() { return getStubSettingsBuilder().listApprovalRequestsSettings(); diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json similarity index 100% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java similarity index 100% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java similarity index 100% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java similarity index 90% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java index 101fabeb..bb81cb78 100644 --- a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java @@ -27,6 +27,9 @@ 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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -70,10 +73,10 @@ *

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

    - *
  • The default service address (accessapproval.googleapis.com) and default port (443) are + *
  • The default service address (accessapproval.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. + *
  • 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 @@ -106,8 +109,7 @@ public class AccessApprovalStubSettings extends StubSettingsbuilder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings; private final UnaryCallSettings @@ -170,13 +172,11 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> LIST_APPROVAL_REQUESTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -195,8 +195,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listApprovalRequests. */ public PagedCallSettings< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings() { return listApprovalRequestsSettings; @@ -256,6 +255,11 @@ public AccessApprovalStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAccessApprovalStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAccessApprovalStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -288,18 +292,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** 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 defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(AccessApprovalStubSettings.class)) @@ -307,11 +318,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @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(AccessApprovalStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AccessApprovalStubSettings.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); @@ -343,8 +373,7 @@ protected AccessApprovalStubSettings(Builder settingsBuilder) throws IOException public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings; private final UnaryCallSettings.Builder @@ -484,6 +513,19 @@ private static Builder createDefault() { 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 .listApprovalRequestsSettings() @@ -550,8 +592,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listApprovalRequests. */ public PagedCallSettings.Builder< - ListApprovalRequestsMessage, - ListApprovalRequestsResponse, + ListApprovalRequestsMessage, ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings() { return listApprovalRequestsSettings; diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java similarity index 100% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java diff --git a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java similarity index 99% rename from google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java index 3b3da7bb..a2210a5f 100644 --- a/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java @@ -43,6 +43,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/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java new file mode 100644 index 00000000..e0ab8527 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.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.accessapproval.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 AccessApproval service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAccessApprovalCallableFactory + 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/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java new file mode 100644 index 00000000..c1e963a0 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java @@ -0,0 +1,708 @@ +/* + * 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.accessapproval.v1.stub; + +import static com.google.cloud.accessapproval.v1.AccessApprovalAdminClient.ListApprovalRequestsPagedResponse; + +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.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.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount; +import com.google.cloud.accessapproval.v1.AccessApprovalSettings; +import com.google.cloud.accessapproval.v1.ApprovalRequest; +import com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage; +import com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage; +import com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage; +import com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage; +import com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage; +import com.google.cloud.accessapproval.v1.GetApprovalRequestMessage; +import com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage; +import com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage; +import com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse; +import com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage; +import com.google.protobuf.Empty; +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 AccessApproval service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAccessApprovalStub extends AccessApprovalStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ListApprovalRequestsMessage, ListApprovalRequestsResponse> + listApprovalRequestsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/ListApprovalRequests") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/approvalRequests", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/approvalRequests", + "/v1/{parent=organizations/*}/approvalRequests") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListApprovalRequestsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getApprovalRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.accessapproval.v1.AccessApproval/GetApprovalRequest") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/approvalRequests/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/approvalRequests/*}", + "/v1/{name=organizations/*/approvalRequests/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApprovalRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + approveApprovalRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/ApproveApprovalRequest") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/approvalRequests/*}:approve", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/approvalRequests/*}:approve", + "/v1/{name=organizations/*/approvalRequests/*}:approve") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApprovalRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + dismissApprovalRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/DismissApprovalRequest") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/approvalRequests/*}:dismiss", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/approvalRequests/*}:dismiss", + "/v1/{name=organizations/*/approvalRequests/*}:dismiss") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApprovalRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + invalidateApprovalRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/InvalidateApprovalRequest") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/approvalRequests/*}:invalidate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/approvalRequests/*}:invalidate", + "/v1/{name=organizations/*/approvalRequests/*}:invalidate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApprovalRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAccessApprovalSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/GetAccessApprovalSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/accessApprovalSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/accessApprovalSettings}", + "/v1/{name=organizations/*/accessApprovalSettings}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessApprovalSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + UpdateAccessApprovalSettingsMessage, AccessApprovalSettings> + updateAccessApprovalSettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/UpdateAccessApprovalSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{settings.name=projects/*/accessApprovalSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "settings.name", request.getSettings().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{settings.name=folders/*/accessApprovalSettings}", + "/v1/{settings.name=organizations/*/accessApprovalSettings}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("settings", request.getSettings())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessApprovalSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAccessApprovalSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/DeleteAccessApprovalSettings") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/accessApprovalSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/accessApprovalSettings}", + "/v1/{name=organizations/*/accessApprovalSettings}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetAccessApprovalServiceAccountMessage, AccessApprovalServiceAccount> + getAccessApprovalServiceAccountMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.accessapproval.v1.AccessApproval/GetAccessApprovalServiceAccount") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/serviceAccount}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/serviceAccount}", + "/v1/{name=organizations/*/serviceAccount}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessApprovalServiceAccount.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listApprovalRequestsCallable; + private final UnaryCallable + listApprovalRequestsPagedCallable; + private final UnaryCallable + getApprovalRequestCallable; + private final UnaryCallable + approveApprovalRequestCallable; + private final UnaryCallable + dismissApprovalRequestCallable; + private final UnaryCallable + invalidateApprovalRequestCallable; + private final UnaryCallable + getAccessApprovalSettingsCallable; + private final UnaryCallable + updateAccessApprovalSettingsCallable; + private final UnaryCallable + deleteAccessApprovalSettingsCallable; + private final UnaryCallable + getAccessApprovalServiceAccountCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAccessApprovalStub create(AccessApprovalStubSettings settings) + throws IOException { + return new HttpJsonAccessApprovalStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAccessApprovalStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAccessApprovalStub( + AccessApprovalStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAccessApprovalStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAccessApprovalStub( + AccessApprovalStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAccessApprovalStub, 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 HttpJsonAccessApprovalStub( + AccessApprovalStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAccessApprovalCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAccessApprovalStub, 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 HttpJsonAccessApprovalStub( + AccessApprovalStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listApprovalRequestsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listApprovalRequestsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getApprovalRequestTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getApprovalRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + approveApprovalRequestTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(approveApprovalRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + dismissApprovalRequestTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(dismissApprovalRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + invalidateApprovalRequestTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(invalidateApprovalRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAccessApprovalSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getAccessApprovalSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAccessApprovalSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateAccessApprovalSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteAccessApprovalSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessApprovalSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAccessApprovalServiceAccountTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getAccessApprovalServiceAccountMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listApprovalRequestsCallable = + callableFactory.createUnaryCallable( + listApprovalRequestsTransportSettings, + settings.listApprovalRequestsSettings(), + clientContext); + this.listApprovalRequestsPagedCallable = + callableFactory.createPagedCallable( + listApprovalRequestsTransportSettings, + settings.listApprovalRequestsSettings(), + clientContext); + this.getApprovalRequestCallable = + callableFactory.createUnaryCallable( + getApprovalRequestTransportSettings, + settings.getApprovalRequestSettings(), + clientContext); + this.approveApprovalRequestCallable = + callableFactory.createUnaryCallable( + approveApprovalRequestTransportSettings, + settings.approveApprovalRequestSettings(), + clientContext); + this.dismissApprovalRequestCallable = + callableFactory.createUnaryCallable( + dismissApprovalRequestTransportSettings, + settings.dismissApprovalRequestSettings(), + clientContext); + this.invalidateApprovalRequestCallable = + callableFactory.createUnaryCallable( + invalidateApprovalRequestTransportSettings, + settings.invalidateApprovalRequestSettings(), + clientContext); + this.getAccessApprovalSettingsCallable = + callableFactory.createUnaryCallable( + getAccessApprovalSettingsTransportSettings, + settings.getAccessApprovalSettingsSettings(), + clientContext); + this.updateAccessApprovalSettingsCallable = + callableFactory.createUnaryCallable( + updateAccessApprovalSettingsTransportSettings, + settings.updateAccessApprovalSettingsSettings(), + clientContext); + this.deleteAccessApprovalSettingsCallable = + callableFactory.createUnaryCallable( + deleteAccessApprovalSettingsTransportSettings, + settings.deleteAccessApprovalSettingsSettings(), + clientContext); + this.getAccessApprovalServiceAccountCallable = + callableFactory.createUnaryCallable( + getAccessApprovalServiceAccountTransportSettings, + settings.getAccessApprovalServiceAccountSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listApprovalRequestsMethodDescriptor); + methodDescriptors.add(getApprovalRequestMethodDescriptor); + methodDescriptors.add(approveApprovalRequestMethodDescriptor); + methodDescriptors.add(dismissApprovalRequestMethodDescriptor); + methodDescriptors.add(invalidateApprovalRequestMethodDescriptor); + methodDescriptors.add(getAccessApprovalSettingsMethodDescriptor); + methodDescriptors.add(updateAccessApprovalSettingsMethodDescriptor); + methodDescriptors.add(deleteAccessApprovalSettingsMethodDescriptor); + methodDescriptors.add(getAccessApprovalServiceAccountMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + listApprovalRequestsCallable() { + return listApprovalRequestsCallable; + } + + @Override + public UnaryCallable + listApprovalRequestsPagedCallable() { + return listApprovalRequestsPagedCallable; + } + + @Override + public UnaryCallable getApprovalRequestCallable() { + return getApprovalRequestCallable; + } + + @Override + public UnaryCallable + approveApprovalRequestCallable() { + return approveApprovalRequestCallable; + } + + @Override + public UnaryCallable + dismissApprovalRequestCallable() { + return dismissApprovalRequestCallable; + } + + @Override + public UnaryCallable + invalidateApprovalRequestCallable() { + return invalidateApprovalRequestCallable; + } + + @Override + public UnaryCallable + getAccessApprovalSettingsCallable() { + return getAccessApprovalSettingsCallable; + } + + @Override + public UnaryCallable + updateAccessApprovalSettingsCallable() { + return updateAccessApprovalSettingsCallable; + } + + @Override + public UnaryCallable + deleteAccessApprovalSettingsCallable() { + return deleteAccessApprovalSettingsCallable; + } + + @Override + public UnaryCallable + getAccessApprovalServiceAccountCallable() { + return getAccessApprovalServiceAccountCallable; + } + + @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/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java new file mode 100644 index 00000000..7ffe1d36 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java @@ -0,0 +1,874 @@ +/* + * 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.accessapproval.v1; + +import static com.google.cloud.accessapproval.v1.AccessApprovalAdminClient.ListApprovalRequestsPagedResponse; + +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.accessapproval.v1.stub.HttpJsonAccessApprovalStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +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 AccessApprovalAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static AccessApprovalAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAccessApprovalStub.getMethodDescriptors(), + AccessApprovalAdminSettings.getDefaultEndpoint()); + AccessApprovalAdminSettings settings = + AccessApprovalAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AccessApprovalAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AccessApprovalAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listApprovalRequestsTest() throws Exception { + ApprovalRequest responsesElement = ApprovalRequest.newBuilder().build(); + ListApprovalRequestsResponse expectedResponse = + ListApprovalRequestsResponse.newBuilder() + .setNextPageToken("") + .addAllApprovalRequests(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListApprovalRequestsPagedResponse pagedListResponse = client.listApprovalRequests(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApprovalRequestsList().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 listApprovalRequestsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listApprovalRequests(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApprovalRequestsTest2() throws Exception { + ApprovalRequest responsesElement = ApprovalRequest.newBuilder().build(); + ListApprovalRequestsResponse expectedResponse = + ListApprovalRequestsResponse.newBuilder() + .setNextPageToken("") + .addAllApprovalRequests(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListApprovalRequestsPagedResponse pagedListResponse = client.listApprovalRequests(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApprovalRequestsList().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 listApprovalRequestsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listApprovalRequests(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApprovalRequestsTest3() throws Exception { + ApprovalRequest responsesElement = ApprovalRequest.newBuilder().build(); + ListApprovalRequestsResponse expectedResponse = + ListApprovalRequestsResponse.newBuilder() + .setNextPageToken("") + .addAllApprovalRequests(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListApprovalRequestsPagedResponse pagedListResponse = client.listApprovalRequests(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApprovalRequestsList().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 listApprovalRequestsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listApprovalRequests(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApprovalRequestsTest4() throws Exception { + ApprovalRequest responsesElement = ApprovalRequest.newBuilder().build(); + ListApprovalRequestsResponse expectedResponse = + ListApprovalRequestsResponse.newBuilder() + .setNextPageToken("") + .addAllApprovalRequests(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListApprovalRequestsPagedResponse pagedListResponse = client.listApprovalRequests(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApprovalRequestsList().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 listApprovalRequestsExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listApprovalRequests(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApprovalRequestTest() throws Exception { + ApprovalRequest expectedResponse = + ApprovalRequest.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setRequestedResourceName("requestedResourceName-1218563513") + .setRequestedResourceProperties(ResourceProperties.newBuilder().build()) + .setRequestedReason(AccessReason.newBuilder().build()) + .setRequestedLocations(AccessLocations.newBuilder().build()) + .setRequestTime(Timestamp.newBuilder().build()) + .setRequestedExpiration(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApprovalRequestName name = + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]"); + + ApprovalRequest actualResponse = client.getApprovalRequest(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 getApprovalRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApprovalRequestName name = + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]"); + client.getApprovalRequest(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApprovalRequestTest2() throws Exception { + ApprovalRequest expectedResponse = + ApprovalRequest.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setRequestedResourceName("requestedResourceName-1218563513") + .setRequestedResourceProperties(ResourceProperties.newBuilder().build()) + .setRequestedReason(AccessReason.newBuilder().build()) + .setRequestedLocations(AccessLocations.newBuilder().build()) + .setRequestTime(Timestamp.newBuilder().build()) + .setRequestedExpiration(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6513/approvalRequests/approvalRequest-6513"; + + ApprovalRequest actualResponse = client.getApprovalRequest(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 getApprovalRequestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6513/approvalRequests/approvalRequest-6513"; + client.getApprovalRequest(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveApprovalRequestTest() throws Exception { + ApprovalRequest expectedResponse = + ApprovalRequest.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setRequestedResourceName("requestedResourceName-1218563513") + .setRequestedResourceProperties(ResourceProperties.newBuilder().build()) + .setRequestedReason(AccessReason.newBuilder().build()) + .setRequestedLocations(AccessLocations.newBuilder().build()) + .setRequestTime(Timestamp.newBuilder().build()) + .setRequestedExpiration(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApproveApprovalRequestMessage request = + ApproveApprovalRequestMessage.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + + ApprovalRequest actualResponse = client.approveApprovalRequest(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 approveApprovalRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApproveApprovalRequestMessage request = + ApproveApprovalRequestMessage.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName( + "[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + client.approveApprovalRequest(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void dismissApprovalRequestTest() throws Exception { + ApprovalRequest expectedResponse = + ApprovalRequest.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setRequestedResourceName("requestedResourceName-1218563513") + .setRequestedResourceProperties(ResourceProperties.newBuilder().build()) + .setRequestedReason(AccessReason.newBuilder().build()) + .setRequestedLocations(AccessLocations.newBuilder().build()) + .setRequestTime(Timestamp.newBuilder().build()) + .setRequestedExpiration(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DismissApprovalRequestMessage request = + DismissApprovalRequestMessage.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .build(); + + ApprovalRequest actualResponse = client.dismissApprovalRequest(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 dismissApprovalRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DismissApprovalRequestMessage request = + DismissApprovalRequestMessage.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName( + "[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .build(); + client.dismissApprovalRequest(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void invalidateApprovalRequestTest() throws Exception { + ApprovalRequest expectedResponse = + ApprovalRequest.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .setRequestedResourceName("requestedResourceName-1218563513") + .setRequestedResourceProperties(ResourceProperties.newBuilder().build()) + .setRequestedReason(AccessReason.newBuilder().build()) + .setRequestedLocations(AccessLocations.newBuilder().build()) + .setRequestTime(Timestamp.newBuilder().build()) + .setRequestedExpiration(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + InvalidateApprovalRequestMessage request = + InvalidateApprovalRequestMessage.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .build(); + + ApprovalRequest actualResponse = client.invalidateApprovalRequest(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 invalidateApprovalRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InvalidateApprovalRequestMessage request = + InvalidateApprovalRequestMessage.newBuilder() + .setName( + ApprovalRequestName.ofProjectApprovalRequestName( + "[PROJECT]", "[APPROVAL_REQUEST]") + .toString()) + .build(); + client.invalidateApprovalRequest(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessApprovalSettingsTest() throws Exception { + AccessApprovalSettings expectedResponse = + AccessApprovalSettings.newBuilder() + .setName(AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString()) + .addAllNotificationEmails(new ArrayList()) + .addAllEnrolledServices(new ArrayList()) + .setEnrolledAncestor(true) + .setActiveKeyVersion("activeKeyVersion1352190239") + .setAncestorHasActiveKeyVersion(true) + .setInvalidKeyVersion(true) + .build(); + mockService.addResponse(expectedResponse); + + AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); + + AccessApprovalSettings actualResponse = client.getAccessApprovalSettings(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 getAccessApprovalSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); + client.getAccessApprovalSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessApprovalSettingsTest2() throws Exception { + AccessApprovalSettings expectedResponse = + AccessApprovalSettings.newBuilder() + .setName(AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString()) + .addAllNotificationEmails(new ArrayList()) + .addAllEnrolledServices(new ArrayList()) + .setEnrolledAncestor(true) + .setActiveKeyVersion("activeKeyVersion1352190239") + .setAncestorHasActiveKeyVersion(true) + .setInvalidKeyVersion(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9033/accessApprovalSettings"; + + AccessApprovalSettings actualResponse = client.getAccessApprovalSettings(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 getAccessApprovalSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9033/accessApprovalSettings"; + client.getAccessApprovalSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessApprovalSettingsTest() throws Exception { + AccessApprovalSettings expectedResponse = + AccessApprovalSettings.newBuilder() + .setName(AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString()) + .addAllNotificationEmails(new ArrayList()) + .addAllEnrolledServices(new ArrayList()) + .setEnrolledAncestor(true) + .setActiveKeyVersion("activeKeyVersion1352190239") + .setAncestorHasActiveKeyVersion(true) + .setInvalidKeyVersion(true) + .build(); + mockService.addResponse(expectedResponse); + + AccessApprovalSettings settings = + AccessApprovalSettings.newBuilder() + .setName(AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString()) + .addAllNotificationEmails(new ArrayList()) + .addAllEnrolledServices(new ArrayList()) + .setEnrolledAncestor(true) + .setActiveKeyVersion("activeKeyVersion1352190239") + .setAncestorHasActiveKeyVersion(true) + .setInvalidKeyVersion(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AccessApprovalSettings actualResponse = + client.updateAccessApprovalSettings(settings, updateMask); + 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 updateAccessApprovalSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessApprovalSettings settings = + AccessApprovalSettings.newBuilder() + .setName(AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString()) + .addAllNotificationEmails(new ArrayList()) + .addAllEnrolledServices(new ArrayList()) + .setEnrolledAncestor(true) + .setActiveKeyVersion("activeKeyVersion1352190239") + .setAncestorHasActiveKeyVersion(true) + .setInvalidKeyVersion(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAccessApprovalSettings(settings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAccessApprovalSettingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); + + client.deleteAccessApprovalSettings(name); + + 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 deleteAccessApprovalSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); + client.deleteAccessApprovalSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAccessApprovalSettingsTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9033/accessApprovalSettings"; + + client.deleteAccessApprovalSettings(name); + + 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 deleteAccessApprovalSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9033/accessApprovalSettings"; + client.deleteAccessApprovalSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessApprovalServiceAccountTest() throws Exception { + AccessApprovalServiceAccount expectedResponse = + AccessApprovalServiceAccount.newBuilder() + .setName("name3373707") + .setAccountEmail("accountEmail1067197807") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9017/serviceAccount"; + + AccessApprovalServiceAccount actualResponse = client.getAccessApprovalServiceAccount(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 getAccessApprovalServiceAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9017/serviceAccount"; + client.getAccessApprovalServiceAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java similarity index 100% rename from google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java diff --git a/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java similarity index 100% rename from google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java diff --git a/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java b/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java similarity index 100% rename from google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java rename to owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java new file mode 100644 index 00000000..545f7873 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java @@ -0,0 +1,1209 @@ +package com.google.cloud.accessapproval.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * This API allows a customer to manage accesses to cloud resources by
+ * Google personnel. It defines the following resource model:
+ * - The API has a collection of
+ *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+ *   resources, named `approvalRequests/{approval_request}`
+ * - The API has top-level settings per Project/Folder/Organization, named
+ *   `accessApprovalSettings`
+ * The service also periodically emails a list of recipients, defined at the
+ * Project/Folder/Organization level in the accessApprovalSettings, when there
+ * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+ * also optionally be published to a Pub/Sub topic owned by the customer
+ * (contact support if you would like to enable Pub/Sub notifications).
+ * ApprovalRequests can be approved or dismissed. Google personnel can only
+ * access the indicated resource or resources if the request is approved
+ * (subject to some exclusions:
+ * https://cloud.google.com/access-approval/docs/overview#exclusions).
+ * Note: Using Access Approval functionality will mean that Google may not be
+ * able to meet the SLAs for your chosen products, as any support response times
+ * may be dramatically increased. As such the SLAs do not apply to any service
+ * disruption to the extent impacted by Customer's use of Access Approval. Do
+ * not enable Access Approval for projects where you may require high service
+ * availability and rapid response by Google Cloud Support.
+ * After a request is approved or dismissed, no further action may be taken on
+ * it. Requests with the requested_expiration in the past or with no activity
+ * for 14 days are considered dismissed. When an approval expires, the request
+ * is considered dismissed.
+ * If a request is not approved or dismissed, we call it pending.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/accessapproval/v1/accessapproval.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AccessApprovalGrpc { + + private AccessApprovalGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.accessapproval.v1.AccessApproval"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListApprovalRequestsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApprovalRequests", + requestType = com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, + responseType = com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListApprovalRequestsMethod() { + io.grpc.MethodDescriptor getListApprovalRequestsMethod; + if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) == null) { + AccessApprovalGrpc.getListApprovalRequestsMethod = getListApprovalRequestsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApprovalRequests")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("ListApprovalRequests")) + .build(); + } + } + } + return getListApprovalRequestsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetApprovalRequestMethod() { + io.grpc.MethodDescriptor getGetApprovalRequestMethod; + if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) == null) { + AccessApprovalGrpc.getGetApprovalRequestMethod = getGetApprovalRequestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("GetApprovalRequest")) + .build(); + } + } + } + return getGetApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor getApproveApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getApproveApprovalRequestMethod() { + io.grpc.MethodDescriptor getApproveApprovalRequestMethod; + if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) == null) { + AccessApprovalGrpc.getApproveApprovalRequestMethod = getApproveApprovalRequestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("ApproveApprovalRequest")) + .build(); + } + } + } + return getApproveApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor getDismissApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DismissApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDismissApprovalRequestMethod() { + io.grpc.MethodDescriptor getDismissApprovalRequestMethod; + if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) == null) { + AccessApprovalGrpc.getDismissApprovalRequestMethod = getDismissApprovalRequestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DismissApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("DismissApprovalRequest")) + .build(); + } + } + } + return getDismissApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor getInvalidateApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InvalidateApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getInvalidateApprovalRequestMethod() { + io.grpc.MethodDescriptor getInvalidateApprovalRequestMethod; + if ((getInvalidateApprovalRequestMethod = AccessApprovalGrpc.getInvalidateApprovalRequestMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getInvalidateApprovalRequestMethod = AccessApprovalGrpc.getInvalidateApprovalRequestMethod) == null) { + AccessApprovalGrpc.getInvalidateApprovalRequestMethod = getInvalidateApprovalRequestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InvalidateApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("InvalidateApprovalRequest")) + .build(); + } + } + } + return getInvalidateApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAccessApprovalSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalSettings", + requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, + responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAccessApprovalSettingsMethod() { + io.grpc.MethodDescriptor getGetAccessApprovalSettingsMethod; + if ((getGetAccessApprovalSettingsMethod = AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getGetAccessApprovalSettingsMethod = AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) == null) { + AccessApprovalGrpc.getGetAccessApprovalSettingsMethod = getGetAccessApprovalSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessApprovalSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("GetAccessApprovalSettings")) + .build(); + } + } + } + return getGetAccessApprovalSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAccessApprovalSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccessApprovalSettings", + requestType = com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, + responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAccessApprovalSettingsMethod() { + io.grpc.MethodDescriptor getUpdateAccessApprovalSettingsMethod; + if ((getUpdateAccessApprovalSettingsMethod = AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getUpdateAccessApprovalSettingsMethod = AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) == null) { + AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod = getUpdateAccessApprovalSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessApprovalSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("UpdateAccessApprovalSettings")) + .build(); + } + } + } + return getUpdateAccessApprovalSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAccessApprovalSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccessApprovalSettings", + requestType = com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAccessApprovalSettingsMethod() { + io.grpc.MethodDescriptor getDeleteAccessApprovalSettingsMethod; + if ((getDeleteAccessApprovalSettingsMethod = AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getDeleteAccessApprovalSettingsMethod = AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) == null) { + AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod = getDeleteAccessApprovalSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccessApprovalSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("DeleteAccessApprovalSettings")) + .build(); + } + } + } + return getDeleteAccessApprovalSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAccessApprovalServiceAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalServiceAccount", + requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, + responseType = com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAccessApprovalServiceAccountMethod() { + io.grpc.MethodDescriptor getGetAccessApprovalServiceAccountMethod; + if ((getGetAccessApprovalServiceAccountMethod = AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getGetAccessApprovalServiceAccountMethod = AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) == null) { + AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod = getGetAccessApprovalServiceAccountMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessApprovalServiceAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance())) + .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("GetAccessApprovalServiceAccount")) + .build(); + } + } + } + return getGetAccessApprovalServiceAccountMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AccessApprovalStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessApprovalStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalStub(channel, callOptions); + } + }; + return AccessApprovalStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AccessApprovalBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessApprovalBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalBlockingStub(channel, callOptions); + } + }; + return AccessApprovalBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AccessApprovalFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessApprovalFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalFutureStub(channel, callOptions); + } + }; + return AccessApprovalFutureStub.newStub(factory, channel); + } + + /** + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static abstract class AccessApprovalImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public void listApprovalRequests(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApprovalRequestsMethod(), responseObserver); + } + + /** + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public void getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApprovalRequestMethod(), responseObserver); + } + + /** + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public void approveApprovalRequest(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApproveApprovalRequestMethod(), responseObserver); + } + + /** + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public void dismissApprovalRequest(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDismissApprovalRequestMethod(), responseObserver); + } + + /** + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public void invalidateApprovalRequest(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInvalidateApprovalRequestMethod(), responseObserver); + } + + /** + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public void getAccessApprovalSettings(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccessApprovalSettingsMethod(), responseObserver); + } + + /** + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public void updateAccessApprovalSettings(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccessApprovalSettingsMethod(), responseObserver); + } + + /** + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public void deleteAccessApprovalSettings(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAccessApprovalSettingsMethod(), responseObserver); + } + + /** + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public void getAccessApprovalServiceAccount(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccessApprovalServiceAccountMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListApprovalRequestsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse>( + this, METHODID_LIST_APPROVAL_REQUESTS))) + .addMethod( + getGetApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_GET_APPROVAL_REQUEST))) + .addMethod( + getApproveApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_APPROVE_APPROVAL_REQUEST))) + .addMethod( + getDismissApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_DISMISS_APPROVAL_REQUEST))) + .addMethod( + getInvalidateApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_INVALIDATE_APPROVAL_REQUEST))) + .addMethod( + getGetAccessApprovalSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings>( + this, METHODID_GET_ACCESS_APPROVAL_SETTINGS))) + .addMethod( + getUpdateAccessApprovalSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings>( + this, METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS))) + .addMethod( + getDeleteAccessApprovalSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ACCESS_APPROVAL_SETTINGS))) + .addMethod( + getGetAccessApprovalServiceAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount>( + this, METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT))) + .build(); + } + } + + /** + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static final class AccessApprovalStub extends io.grpc.stub.AbstractAsyncStub { + private AccessApprovalStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessApprovalStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalStub(channel, callOptions); + } + + /** + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public void listApprovalRequests(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public void getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public void approveApprovalRequest(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public void dismissApprovalRequest(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public void invalidateApprovalRequest(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public void getAccessApprovalSettings(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public void updateAccessApprovalSettings(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public void deleteAccessApprovalSettings(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public void getAccessApprovalServiceAccount(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static final class AccessApprovalBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AccessApprovalBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessApprovalBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse listApprovalRequests(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApprovalRequestsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApprovalRequestMethod(), getCallOptions(), request); + } + + /** + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest approveApprovalRequest(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveApprovalRequestMethod(), getCallOptions(), request); + } + + /** + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest dismissApprovalRequest(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDismissApprovalRequestMethod(), getCallOptions(), request); + } + + /** + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest invalidateApprovalRequest(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getInvalidateApprovalRequestMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.AccessApprovalSettings getAccessApprovalSettings(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessApprovalSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.AccessApprovalSettings updateAccessApprovalSettings(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccessApprovalSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public com.google.protobuf.Empty deleteAccessApprovalSettings(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccessApprovalSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getAccessApprovalServiceAccount(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessApprovalServiceAccountMethod(), getCallOptions(), request); + } + } + + /** + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static final class AccessApprovalFutureStub extends io.grpc.stub.AbstractFutureStub { + private AccessApprovalFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessApprovalFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalFutureStub(channel, callOptions); + } + + /** + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listApprovalRequests( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getApprovalRequest( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), request); + } + + /** + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture approveApprovalRequest( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), request); + } + + /** + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture dismissApprovalRequest( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), request); + } + + /** + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture invalidateApprovalRequest( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAccessApprovalSettings( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateAccessApprovalSettings( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAccessApprovalSettings( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAccessApprovalServiceAccount( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_APPROVAL_REQUESTS = 0; + private static final int METHODID_GET_APPROVAL_REQUEST = 1; + private static final int METHODID_APPROVE_APPROVAL_REQUEST = 2; + private static final int METHODID_DISMISS_APPROVAL_REQUEST = 3; + private static final int METHODID_INVALIDATE_APPROVAL_REQUEST = 4; + private static final int METHODID_GET_ACCESS_APPROVAL_SETTINGS = 5; + private static final int METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS = 6; + private static final int METHODID_DELETE_ACCESS_APPROVAL_SETTINGS = 7; + private static final int METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT = 8; + + 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 AccessApprovalImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AccessApprovalImplBase 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_LIST_APPROVAL_REQUESTS: + serviceImpl.listApprovalRequests((com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_APPROVAL_REQUEST: + serviceImpl.getApprovalRequest((com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPROVE_APPROVAL_REQUEST: + serviceImpl.approveApprovalRequest((com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISMISS_APPROVAL_REQUEST: + serviceImpl.dismissApprovalRequest((com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_INVALIDATE_APPROVAL_REQUEST: + serviceImpl.invalidateApprovalRequest((com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCESS_APPROVAL_SETTINGS: + serviceImpl.getAccessApprovalSettings((com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS: + serviceImpl.updateAccessApprovalSettings((com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ACCESS_APPROVAL_SETTINGS: + serviceImpl.deleteAccessApprovalSettings((com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT: + serviceImpl.getAccessApprovalServiceAccount((com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AccessApprovalBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AccessApprovalBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AccessApproval"); + } + } + + private static final class AccessApprovalFileDescriptorSupplier + extends AccessApprovalBaseDescriptorSupplier { + AccessApprovalFileDescriptorSupplier() {} + } + + private static final class AccessApprovalMethodDescriptorSupplier + extends AccessApprovalBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AccessApprovalMethodDescriptorSupplier(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 (AccessApprovalGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AccessApprovalFileDescriptorSupplier()) + .addMethod(getListApprovalRequestsMethod()) + .addMethod(getGetApprovalRequestMethod()) + .addMethod(getApproveApprovalRequestMethod()) + .addMethod(getDismissApprovalRequestMethod()) + .addMethod(getInvalidateApprovalRequestMethod()) + .addMethod(getGetAccessApprovalSettingsMethod()) + .addMethod(getUpdateAccessApprovalSettingsMethod()) + .addMethod(getDeleteAccessApprovalSettingsMethod()) + .addMethod(getGetAccessApprovalServiceAccountMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java new file mode 100644 index 00000000..b7be7963 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java @@ -0,0 +1,465 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/accessapproval/v1/accessapproval.proto + +package com.google.cloud.accessapproval.v1; + +public final class AccessApprovalProto { + private AccessApprovalProto() {} + 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_accessapproval_v1_AccessLocations_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_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/accessapproval/v1/accessa" + + "pproval.proto\022\036google.cloud.accessapprov" + + "al.v1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"`\n\017AccessLocations\022 \n\030p" + + "rincipal_office_country\030\001 \001(\t\022+\n#princip" + + "al_physical_location_country\030\002 \001(\t\"\240\002\n\014A" + + "ccessReason\022?\n\004type\030\001 \001(\01621.google.cloud" + + ".accessapproval.v1.AccessReason.Type\022\016\n\006" + + "detail\030\002 \001(\t\"\276\001\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\036\n\032CUSTOMER_INITIATED_SUPPORT\020\001\022\034\n\030G" + + "OOGLE_INITIATED_SERVICE\020\002\022\033\n\027GOOGLE_INIT" + + "IATED_REVIEW\020\003\022\034\n\030THIRD_PARTY_DATA_REQUE" + + "ST\020\004\022\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_AL" + + "ERT\020\005\"|\n\rSignatureInfo\022\021\n\tsignature\030\001 \001(" + + "\014\022\037\n\025google_public_key_pem\030\002 \001(\tH\000\022\"\n\030cu" + + "stomer_kms_key_version\030\003 \001(\tH\000B\023\n\021verifi" + + "cation_info\"\207\002\n\017ApproveDecision\0220\n\014appro" + + "ve_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "p\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\0223\n\017invalidate_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022E\n\016signature_inf" + + "o\030\004 \001(\0132-.google.cloud.accessapproval.v1" + + ".SignatureInfo\022\025\n\rauto_approved\030\005 \001(\010\"U\n" + + "\017DismissDecision\0220\n\014dismiss_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022\020\n\010implicit\030\002" + + " \001(\010\"2\n\022ResourceProperties\022\034\n\024excludes_d" + + "escendants\030\001 \001(\010\"\227\006\n\017ApprovalRequest\022\014\n\004" + + "name\030\001 \001(\t\022\037\n\027requested_resource_name\030\002 " + + "\001(\t\022Y\n\035requested_resource_properties\030\t \001" + + "(\01322.google.cloud.accessapproval.v1.Reso" + + "urceProperties\022F\n\020requested_reason\030\003 \001(\013" + + "2,.google.cloud.accessapproval.v1.Access" + + "Reason\022L\n\023requested_locations\030\004 \001(\0132/.go" + + "ogle.cloud.accessapproval.v1.AccessLocat" + + "ions\0220\n\014request_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\0228\n\024requested_expiration\030\006" + + " \001(\0132\032.google.protobuf.Timestamp\022B\n\007appr" + + "ove\030\007 \001(\0132/.google.cloud.accessapproval." + + "v1.ApproveDecisionH\000\022B\n\007dismiss\030\010 \001(\0132/." + + "google.cloud.accessapproval.v1.DismissDe" + + "cisionH\000:\343\001\352A\337\001\n-accessapproval.googleap" + + "is.com/ApprovalRequest\0226projects/{projec" + + "t}/approvalRequests/{approval_request}\0224" + + "folders/{folder}/approvalRequests/{appro" + + "val_request}\022@organizations/{organizatio" + + "n}/approvalRequests/{approval_request}B\n" + + "\n\010decision\"s\n\017EnrolledService\022\025\n\rcloud_p" + + "roduct\030\001 \001(\t\022I\n\020enrollment_level\030\002 \001(\0162/" + + ".google.cloud.accessapproval.v1.Enrollme" + + "ntLevel\"\234\004\n\026AccessApprovalSettings\022G\n\004na" + + "me\030\001 \001(\tB9\372A6\n4accessapproval.googleapis" + + ".com/AccessApprovalSettings\022\033\n\023notificat" + + "ion_emails\030\002 \003(\t\022J\n\021enrolled_services\030\003 " + + "\003(\0132/.google.cloud.accessapproval.v1.Enr" + + "olledService\022\036\n\021enrolled_ancestor\030\004 \001(\010B" + + "\003\340A\003\022\032\n\022active_key_version\030\006 \001(\t\022,\n\037ance" + + "stor_has_active_key_version\030\007 \001(\010B\003\340A\003\022 " + + "\n\023invalid_key_version\030\010 \001(\010B\003\340A\003:\303\001\352A\277\001\n" + + "4accessapproval.googleapis.com/AccessApp" + + "rovalSettings\022)projects/{project}/access" + + "ApprovalSettings\022\'folders/{folder}/acces" + + "sApprovalSettings\0223organizations/{organi" + + "zation}/accessApprovalSettings\"\270\002\n\034Acces" + + "sApprovalServiceAccount\022M\n\004name\030\001 \001(\tB?\372" + + "A<\n:accessapproval.googleapis.com/Access" + + "ApprovalServiceAccount\022\025\n\raccount_email\030" + + "\002 \001(\t:\261\001\352A\255\001\n:accessapproval.googleapis." + + "com/AccessApprovalServiceAccount\022!projec" + + "ts/{project}/serviceAccount\022\037folders/{fo" + + "lder}/serviceAccount\022+organizations/{org" + + "anization}/serviceAccount\"\230\001\n\033ListApprov" + + "alRequestsMessage\022B\n\006parent\030\001 \001(\tB2\372A/\022-" + + "accessapproval.googleapis.com/ApprovalRe" + + "quest\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\022\022\n\npage_token\030\004 \001(\t\"\203\001\n\034ListApprovalReq" + + "uestsResponse\022J\n\021approval_requests\030\001 \003(\013" + + "2/.google.cloud.accessapproval.v1.Approv" + + "alRequest\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Ge" + + "tApprovalRequestMessage\022@\n\004name\030\001 \001(\tB2\372" + + "A/\n-accessapproval.googleapis.com/Approv" + + "alRequest\"\222\001\n\035ApproveApprovalRequestMess" + + "age\022@\n\004name\030\001 \001(\tB2\372A/\n-accessapproval.g" + + "oogleapis.com/ApprovalRequest\022/\n\013expire_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"a" + + "\n\035DismissApprovalRequestMessage\022@\n\004name\030" + + "\001 \001(\tB2\372A/\n-accessapproval.googleapis.co" + + "m/ApprovalRequest\"d\n InvalidateApprovalR" + + "equestMessage\022@\n\004name\030\001 \001(\tB2\372A/\n-access" + + "approval.googleapis.com/ApprovalRequest\"" + + "k\n GetAccessApprovalSettingsMessage\022G\n\004n" + + "ame\030\001 \001(\tB9\372A6\n4accessapproval.googleapi" + + "s.com/AccessApprovalSettings\"\240\001\n#UpdateA" + + "ccessApprovalSettingsMessage\022H\n\010settings" + + "\030\001 \001(\01326.google.cloud.accessapproval.v1." + + "AccessApprovalSettings\022/\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMask\"n\n#Delet" + + "eAccessApprovalSettingsMessage\022G\n\004name\030\001" + + " \001(\tB9\372A6\n4accessapproval.googleapis.com" + + "/AccessApprovalSettings\"6\n&GetAccessAppr" + + "ovalServiceAccountMessage\022\014\n\004name\030\001 \001(\t*" + + "B\n\017EnrollmentLevel\022 \n\034ENROLLMENT_LEVEL_U" + + "NSPECIFIED\020\000\022\r\n\tBLOCK_ALL\020\0012\207\027\n\016AccessAp" + + "proval\022\252\002\n\024ListApprovalRequests\022;.google" + + ".cloud.accessapproval.v1.ListApprovalReq" + + "uestsMessage\032<.google.cloud.accessapprov" + + "al.v1.ListApprovalRequestsResponse\"\226\001\202\323\344" + + "\223\002\206\001\022(/v1/{parent=projects/*}/approvalRe" + + "questsZ)\022\'/v1/{parent=folders/*}/approva" + + "lRequestsZ/\022-/v1/{parent=organizations/*" + + "}/approvalRequests\332A\006parent\022\227\002\n\022GetAppro" + + "valRequest\0229.google.cloud.accessapproval" + + ".v1.GetApprovalRequestMessage\032/.google.c" + + "loud.accessapproval.v1.ApprovalRequest\"\224" + + "\001\202\323\344\223\002\206\001\022(/v1/{name=projects/*/approvalR" + + "equests/*}Z)\022\'/v1/{name=folders/*/approv" + + "alRequests/*}Z/\022-/v1/{name=organizations" + + "/*/approvalRequests/*}\332A\004name\022\271\002\n\026Approv" + + "eApprovalRequest\022=.google.cloud.accessap" + + "proval.v1.ApproveApprovalRequestMessage\032" + + "/.google.cloud.accessapproval.v1.Approva" + + "lRequest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*" + + "/approvalRequests/*}:approve:\001*Z4\"//v1/{" + + "name=folders/*/approvalRequests/*}:appro" + + "ve:\001*Z:\"5/v1/{name=organizations/*/appro" + + "valRequests/*}:approve:\001*\022\271\002\n\026DismissApp" + + "rovalRequest\022=.google.cloud.accessapprov" + + "al.v1.DismissApprovalRequestMessage\032/.go" + + "ogle.cloud.accessapproval.v1.ApprovalReq" + + "uest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*/app" + + "rovalRequests/*}:dismiss:\001*Z4\"//v1/{name" + + "=folders/*/approvalRequests/*}:dismiss:\001" + + "*Z:\"5/v1/{name=organizations/*/approvalR" + + "equests/*}:dismiss:\001*\022\310\002\n\031InvalidateAppr" + + "ovalRequest\022@.google.cloud.accessapprova" + + "l.v1.InvalidateApprovalRequestMessage\032/." + + "google.cloud.accessapproval.v1.ApprovalR" + + "equest\"\267\001\202\323\344\223\002\260\001\"3/v1/{name=projects/*/a" + + "pprovalRequests/*}:invalidate:\001*Z7\"2/v1/" + + "{name=folders/*/approvalRequests/*}:inva" + + "lidate:\001*Z=\"8/v1/{name=organizations/*/a" + + "pprovalRequests/*}:invalidate:\001*\022\270\002\n\031Get" + + "AccessApprovalSettings\022@.google.cloud.ac" + + "cessapproval.v1.GetAccessApprovalSetting" + + "sMessage\0326.google.cloud.accessapproval.v" + + "1.AccessApprovalSettings\"\240\001\202\323\344\223\002\222\001\022,/v1/" + + "{name=projects/*/accessApprovalSettings}" + + "Z-\022+/v1/{name=folders/*/accessApprovalSe" + + "ttings}Z3\0221/v1/{name=organizations/*/acc" + + "essApprovalSettings}\332A\004name\022\207\003\n\034UpdateAc" + + "cessApprovalSettings\022C.google.cloud.acce" + + "ssapproval.v1.UpdateAccessApprovalSettin" + + "gsMessage\0326.google.cloud.accessapproval." + + "v1.AccessApprovalSettings\"\351\001\202\323\344\223\002\313\00125/v1" + + "/{settings.name=projects/*/accessApprova" + + "lSettings}:\010settingsZ@24/v1/{settings.na" + + "me=folders/*/accessApprovalSettings}:\010se" + + "ttingsZF2:/v1/{settings.name=organizatio" + + "ns/*/accessApprovalSettings}:\010settings\332A" + + "\024settings,update_mask\022\236\002\n\034DeleteAccessAp" + + "provalSettings\022C.google.cloud.accessappr" + + "oval.v1.DeleteAccessApprovalSettingsMess" + + "age\032\026.google.protobuf.Empty\"\240\001\202\323\344\223\002\222\001*,/" + + "v1/{name=projects/*/accessApprovalSettin" + + "gs}Z-*+/v1/{name=folders/*/accessApprova" + + "lSettings}Z3*1/v1/{name=organizations/*/" + + "accessApprovalSettings}\332A\004name\022\261\002\n\037GetAc" + + "cessApprovalServiceAccount\022F.google.clou" + + "d.accessapproval.v1.GetAccessApprovalSer" + + "viceAccountMessage\032<.google.cloud.access" + + "approval.v1.AccessApprovalServiceAccount" + + "\"\207\001\202\323\344\223\002z\022$/v1/{name=projects/*/serviceA" + + "ccount}Z%\022#/v1/{name=folders/*/serviceAc" + + "count}Z+\022)/v1/{name=organizations/*/serv" + + "iceAccount}\332A\004name\032Q\312A\035accessapproval.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\357\001\n\"com.google.clo" + + "ud.accessapproval.v1B\023AccessApprovalProt" + + "oP\001ZLgoogle.golang.org/genproto/googleap" + + "is/cloud/accessapproval/v1;accessapprova" + + "l\252\002\036Google.Cloud.AccessApproval.V1\312\002\036Goo" + + "gle\\Cloud\\AccessApproval\\V1\352\002!Google::Cl" + + "oud::AccessApproval::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor, + new java.lang.String[] { "PrincipalOfficeCountry", "PrincipalPhysicalLocationCountry", }); + internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor, + new java.lang.String[] { "Type", "Detail", }); + internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor, + new java.lang.String[] { "Signature", "GooglePublicKeyPem", "CustomerKmsKeyVersion", "VerificationInfo", }); + internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor, + new java.lang.String[] { "ApproveTime", "ExpireTime", "InvalidateTime", "SignatureInfo", "AutoApproved", }); + internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor, + new java.lang.String[] { "DismissTime", "Implicit", }); + internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor, + new java.lang.String[] { "ExcludesDescendants", }); + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor, + new java.lang.String[] { "Name", "RequestedResourceName", "RequestedResourceProperties", "RequestedReason", "RequestedLocations", "RequestTime", "RequestedExpiration", "Approve", "Dismiss", "Decision", }); + internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor, + new java.lang.String[] { "CloudProduct", "EnrollmentLevel", }); + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor, + new java.lang.String[] { "Name", "NotificationEmails", "EnrolledServices", "EnrolledAncestor", "ActiveKeyVersion", "AncestorHasActiveKeyVersion", "InvalidKeyVersion", }); + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor, + new java.lang.String[] { "Name", "AccountEmail", }); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor, + new java.lang.String[] { "ApprovalRequests", "NextPageToken", }); + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor, + new java.lang.String[] { "Name", "ExpireTime", }); + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor, + new java.lang.String[] { "Settings", "UpdateMask", }); + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java similarity index 70% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java index f56a17b7..1ff48ec6 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Access Approval service account related to a project/folder/organization.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalServiceAccount} */ -public final class AccessApprovalServiceAccount extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccessApprovalServiceAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) AccessApprovalServiceAccountOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccessApprovalServiceAccount.newBuilder() to construct. private AccessApprovalServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessApprovalServiceAccount() { name_ = ""; accountEmail_ = ""; @@ -44,15 +26,16 @@ private AccessApprovalServiceAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessApprovalServiceAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessApprovalServiceAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private AccessApprovalServiceAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - accountEmail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + accountEmail_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private AccessApprovalServiceAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -134,7 +111,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -143,15 +119,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -160,15 +135,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -179,14 +155,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ACCOUNT_EMAIL_FIELD_NUMBER = 2; private volatile java.lang.Object accountEmail_; /** - * - * *
    * Email address of the service account.
    * 
* * string account_email = 2; - * * @return The accountEmail. */ @java.lang.Override @@ -195,29 +168,29 @@ public java.lang.String getAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountEmail_ = s; return s; } } /** - * - * *
    * Email address of the service account.
    * 
* * string account_email = 2; - * * @return The bytes for accountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getAccountEmailBytes() { + public com.google.protobuf.ByteString + getAccountEmailBytes() { java.lang.Object ref = accountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountEmail_ = b; return b; } else { @@ -226,7 +199,6 @@ public com.google.protobuf.ByteString getAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +210,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_); } @@ -268,16 +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.accessapproval.v1.AccessApprovalServiceAccount)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other = - (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) obj; + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other = (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) obj; - if (!getName().equals(other.getName())) return false; - if (!getAccountEmail().equals(other.getAccountEmail())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAccountEmail() + .equals(other.getAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Access Approval service account related to a project/folder/organization.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalServiceAccount} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) com.google.cloud.accessapproval.v1.AccessApprovalServiceAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.newBuilder() @@ -427,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -447,14 +412,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance(); } @@ -469,8 +433,7 @@ public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount buildPartial() { - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount result = - new com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount(this); + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount result = new com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount(this); result.name_ = name_; result.accountEmail_ = accountEmail_; onBuilt(); @@ -481,50 +444,46 @@ public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other) { - if (other - == com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other) { + if (other == com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -552,9 +511,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,8 +523,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -576,13 +531,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -591,8 +546,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -601,14 +554,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -616,8 +570,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -626,22 +578,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -650,18 +600,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -670,16 +617,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -687,20 +634,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object accountEmail_ = ""; /** - * - * *
      * Email address of the service account.
      * 
* * string account_email = 2; - * * @return The accountEmail. */ public java.lang.String getAccountEmail() { java.lang.Object ref = accountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountEmail_ = s; return s; @@ -709,21 +654,20 @@ public java.lang.String getAccountEmail() { } } /** - * - * *
      * Email address of the service account.
      * 
* * string account_email = 2; - * * @return The bytes for accountEmail. */ - public com.google.protobuf.ByteString getAccountEmailBytes() { + public com.google.protobuf.ByteString + getAccountEmailBytes() { java.lang.Object ref = accountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountEmail_ = b; return b; } else { @@ -731,68 +675,61 @@ public com.google.protobuf.ByteString getAccountEmailBytes() { } } /** - * - * *
      * Email address of the service account.
      * 
* * string account_email = 2; - * * @param value The accountEmail to set. * @return This builder for chaining. */ - public Builder setAccountEmail(java.lang.String value) { + public Builder setAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accountEmail_ = value; onChanged(); return this; } /** - * - * *
      * Email address of the service account.
      * 
* * string account_email = 2; - * * @return This builder for chaining. */ public Builder clearAccountEmail() { - + accountEmail_ = getDefaultInstance().getAccountEmail(); onChanged(); return this; } /** - * - * *
      * Email address of the service account.
      * 
* * string account_email = 2; - * * @param value The bytes for accountEmail to set. * @return This builder for chaining. */ - public Builder setAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountEmail_ = 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); } @@ -802,32 +739,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) - private static final com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount(); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessApprovalServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessApprovalServiceAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessApprovalServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessApprovalServiceAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,8 +774,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java similarity index 63% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java index 7a85b41b..a45ee198 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessApprovalServiceAccountOrBuilder - extends +public interface AccessApprovalServiceAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -34,13 +16,10 @@ public interface AccessApprovalServiceAccountOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -49,33 +28,28 @@ public interface AccessApprovalServiceAccountOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Email address of the service account.
    * 
* * string account_email = 2; - * * @return The accountEmail. */ java.lang.String getAccountEmail(); /** - * - * *
    * Email address of the service account.
    * 
* * string account_email = 2; - * * @return The bytes for accountEmail. */ - com.google.protobuf.ByteString getAccountEmailBytes(); + com.google.protobuf.ByteString + getAccountEmailBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java similarity index 83% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java index 1e02306f..9dec875b 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Settings on a Project/Folder/Organization related to Access Approval.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalSettings} */ -public final class AccessApprovalSettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccessApprovalSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessApprovalSettings) AccessApprovalSettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccessApprovalSettings.newBuilder() to construct. private AccessApprovalSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessApprovalSettings() { name_ = ""; notificationEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,15 +28,16 @@ private AccessApprovalSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessApprovalSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessApprovalSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,65 +57,58 @@ private AccessApprovalSettings( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationEmails_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - notificationEmails_.add(s); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - enrolledServices_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - enrolledServices_.add( - input.readMessage( - com.google.cloud.accessapproval.v1.EnrolledService.parser(), - extensionRegistry)); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationEmails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 32: - { - enrolledAncestor_ = input.readBool(); - break; + notificationEmails_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + enrolledServices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + enrolledServices_.add( + input.readMessage(com.google.cloud.accessapproval.v1.EnrolledService.parser(), extensionRegistry)); + break; + } + case 32: { - activeKeyVersion_ = s; - break; - } - case 56: - { - ancestorHasActiveKeyVersion_ = input.readBool(); - break; - } - case 64: - { - invalidKeyVersion_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + enrolledAncestor_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + activeKeyVersion_ = s; + break; + } + case 56: { + + ancestorHasActiveKeyVersion_ = input.readBool(); + break; + } + case 64: { + + invalidKeyVersion_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -140,7 +116,8 @@ private AccessApprovalSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationEmails_ = notificationEmails_.getUnmodifiableView(); @@ -152,27 +129,22 @@ private AccessApprovalSettings( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -181,7 +153,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -190,15 +161,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -207,15 +177,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -226,8 +197,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NOTIFICATION_EMAILS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList notificationEmails_; /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -236,15 +205,13 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * repeated string notification_emails = 2; - * * @return A list containing the notificationEmails. */ - public com.google.protobuf.ProtocolStringList getNotificationEmailsList() { + public com.google.protobuf.ProtocolStringList + getNotificationEmailsList() { return notificationEmails_; } /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -253,15 +220,12 @@ public com.google.protobuf.ProtocolStringList getNotificationEmailsList() {
    * 
* * repeated string notification_emails = 2; - * * @return The count of notificationEmails. */ public int getNotificationEmailsCount() { return notificationEmails_.size(); } /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -270,7 +234,6 @@ public int getNotificationEmailsCount() {
    * 
* * repeated string notification_emails = 2; - * * @param index The index of the element to return. * @return The notificationEmails at the given index. */ @@ -278,8 +241,6 @@ public java.lang.String getNotificationEmails(int index) { return notificationEmails_.get(index); } /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -288,19 +249,17 @@ public java.lang.String getNotificationEmails(int index) {
    * 
* * repeated string notification_emails = 2; - * * @param index The index of the value to return. * @return The bytes of the notificationEmails at the given index. */ - public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) { + public com.google.protobuf.ByteString + getNotificationEmailsBytes(int index) { return notificationEmails_.getByteString(index); } public static final int ENROLLED_SERVICES_FIELD_NUMBER = 3; private java.util.List enrolledServices_; /** - * - * *
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -317,13 +276,10 @@ public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) {
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getEnrolledServicesList() {
+  public java.util.List getEnrolledServicesList() {
     return enrolledServices_;
   }
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -340,13 +296,11 @@ public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) {
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getEnrolledServicesOrBuilderList() {
     return enrolledServices_;
   }
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -367,8 +321,6 @@ public int getEnrolledServicesCount() {
     return enrolledServices_.size();
   }
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -389,8 +341,6 @@ public com.google.cloud.accessapproval.v1.EnrolledService getEnrolledServices(in
     return enrolledServices_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -415,8 +365,6 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
   public static final int ENROLLED_ANCESTOR_FIELD_NUMBER = 4;
   private boolean enrolledAncestor_;
   /**
-   *
-   *
    * 
    * Output only. This field is read only (not settable via
    * UpdateAccessApprovalSettings method). If the field is true, that
@@ -426,7 +374,6 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
    * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The enrolledAncestor. */ @java.lang.Override @@ -437,8 +384,6 @@ public boolean getEnrolledAncestor() { public static final int ACTIVE_KEY_VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object activeKeyVersion_; /** - * - * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -447,7 +392,6 @@ public boolean getEnrolledAncestor() {
    * 
* * string active_key_version = 6; - * * @return The activeKeyVersion. */ @java.lang.Override @@ -456,15 +400,14 @@ public java.lang.String getActiveKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeKeyVersion_ = s; return s; } } /** - * - * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -473,15 +416,16 @@ public java.lang.String getActiveKeyVersion() {
    * 
* * string active_key_version = 6; - * * @return The bytes for activeKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getActiveKeyVersionBytes() { + public com.google.protobuf.ByteString + getActiveKeyVersionBytes() { java.lang.Object ref = activeKeyVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); activeKeyVersion_ = b; return b; } else { @@ -492,8 +436,6 @@ public com.google.protobuf.ByteString getActiveKeyVersionBytes() { public static final int ANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBER = 7; private boolean ancestorHasActiveKeyVersion_; /** - * - * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that an ancestor of this
@@ -501,9 +443,7 @@ public com.google.protobuf.ByteString getActiveKeyVersionBytes() {
    * unset for the organization since organizations do not have ancestors).
    * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ancestorHasActiveKeyVersion. */ @java.lang.Override @@ -514,8 +454,6 @@ public boolean getAncestorHasActiveKeyVersion() { public static final int INVALID_KEY_VERSION_FIELD_NUMBER = 8; private boolean invalidKeyVersion_; /** - * - * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that there is some
@@ -527,7 +465,6 @@ public boolean getAncestorHasActiveKeyVersion() {
    * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The invalidKeyVersion. */ @java.lang.Override @@ -536,7 +473,6 @@ public boolean getInvalidKeyVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -548,7 +484,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_); } @@ -591,20 +528,23 @@ public int getSerializedSize() { size += 1 * getNotificationEmailsList().size(); } for (int i = 0; i < enrolledServices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, enrolledServices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, enrolledServices_.get(i)); } if (enrolledAncestor_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enrolledAncestor_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enrolledAncestor_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeKeyVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, activeKeyVersion_); } if (ancestorHasActiveKeyVersion_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(7, ancestorHasActiveKeyVersion_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, ancestorHasActiveKeyVersion_); } if (invalidKeyVersion_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, invalidKeyVersion_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, invalidKeyVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -614,21 +554,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.accessapproval.v1.AccessApprovalSettings)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessApprovalSettings other = - (com.google.cloud.accessapproval.v1.AccessApprovalSettings) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNotificationEmailsList().equals(other.getNotificationEmailsList())) return false; - if (!getEnrolledServicesList().equals(other.getEnrolledServicesList())) return false; - if (getEnrolledAncestor() != other.getEnrolledAncestor()) return false; - if (!getActiveKeyVersion().equals(other.getActiveKeyVersion())) return false; - if (getAncestorHasActiveKeyVersion() != other.getAncestorHasActiveKeyVersion()) return false; - if (getInvalidKeyVersion() != other.getInvalidKeyVersion()) return false; + com.google.cloud.accessapproval.v1.AccessApprovalSettings other = (com.google.cloud.accessapproval.v1.AccessApprovalSettings) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getNotificationEmailsList() + .equals(other.getNotificationEmailsList())) return false; + if (!getEnrolledServicesList() + .equals(other.getEnrolledServicesList())) return false; + if (getEnrolledAncestor() + != other.getEnrolledAncestor()) return false; + if (!getActiveKeyVersion() + .equals(other.getActiveKeyVersion())) return false; + if (getAncestorHasActiveKeyVersion() + != other.getAncestorHasActiveKeyVersion()) return false; + if (getInvalidKeyVersion() + != other.getInvalidKeyVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -651,140 +597,133 @@ public int hashCode() { hash = (53 * hash) + getEnrolledServicesList().hashCode(); } hash = (37 * hash) + ENROLLED_ANCESTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnrolledAncestor()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnrolledAncestor()); hash = (37 * hash) + ACTIVE_KEY_VERSION_FIELD_NUMBER; hash = (53 * hash) + getActiveKeyVersion().hashCode(); hash = (37 * hash) + ANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAncestorHasActiveKeyVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAncestorHasActiveKeyVersion()); hash = (37 * hash) + INVALID_KEY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvalidKeyVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInvalidKeyVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.AccessApprovalSettings prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessApprovalSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Settings on a Project/Folder/Organization related to Access Approval.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalSettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessApprovalSettings) com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessApprovalSettings.newBuilder() @@ -792,17 +731,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEnrolledServicesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -828,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; } @java.lang.Override @@ -849,8 +788,7 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessApprovalSettings buildPartial() { - com.google.cloud.accessapproval.v1.AccessApprovalSettings result = - new com.google.cloud.accessapproval.v1.AccessApprovalSettings(this); + com.google.cloud.accessapproval.v1.AccessApprovalSettings result = new com.google.cloud.accessapproval.v1.AccessApprovalSettings(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -879,39 +817,38 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessApprovalSettings) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalSettings) other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalSettings)other); } else { super.mergeFrom(other); return this; @@ -919,8 +856,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessApprovalSettings other) { - if (other == com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -953,10 +889,9 @@ public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessApprovalSettin enrolledServicesBuilder_ = null; enrolledServices_ = other.enrolledServices_; bitField0_ = (bitField0_ & ~0x00000002); - enrolledServicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEnrolledServicesFieldBuilder() - : null; + enrolledServicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEnrolledServicesFieldBuilder() : null; } else { enrolledServicesBuilder_.addAllMessages(other.enrolledServices_); } @@ -994,8 +929,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.AccessApprovalSettings) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.AccessApprovalSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1004,13 +938,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1019,13 +950,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -1034,8 +965,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1044,14 +973,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -1059,8 +989,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1069,22 +997,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1093,18 +1019,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1113,33 +1036,29 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList notificationEmails_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList notificationEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNotificationEmailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { notificationEmails_ = new com.google.protobuf.LazyStringArrayList(notificationEmails_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1148,15 +1067,13 @@ private void ensureNotificationEmailsIsMutable() {
      * 
* * repeated string notification_emails = 2; - * * @return A list containing the notificationEmails. */ - public com.google.protobuf.ProtocolStringList getNotificationEmailsList() { + public com.google.protobuf.ProtocolStringList + getNotificationEmailsList() { return notificationEmails_.getUnmodifiableView(); } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1165,15 +1082,12 @@ public com.google.protobuf.ProtocolStringList getNotificationEmailsList() {
      * 
* * repeated string notification_emails = 2; - * * @return The count of notificationEmails. */ public int getNotificationEmailsCount() { return notificationEmails_.size(); } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1182,7 +1096,6 @@ public int getNotificationEmailsCount() {
      * 
* * repeated string notification_emails = 2; - * * @param index The index of the element to return. * @return The notificationEmails at the given index. */ @@ -1190,8 +1103,6 @@ public java.lang.String getNotificationEmails(int index) { return notificationEmails_.get(index); } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1200,16 +1111,14 @@ public java.lang.String getNotificationEmails(int index) {
      * 
* * repeated string notification_emails = 2; - * * @param index The index of the value to return. * @return The bytes of the notificationEmails at the given index. */ - public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) { + public com.google.protobuf.ByteString + getNotificationEmailsBytes(int index) { return notificationEmails_.getByteString(index); } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1218,23 +1127,21 @@ public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) {
      * 
* * repeated string notification_emails = 2; - * * @param index The index to set the value at. * @param value The notificationEmails to set. * @return This builder for chaining. */ - public Builder setNotificationEmails(int index, java.lang.String value) { + public Builder setNotificationEmails( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNotificationEmailsIsMutable(); + throw new NullPointerException(); + } + ensureNotificationEmailsIsMutable(); notificationEmails_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1243,22 +1150,20 @@ public Builder setNotificationEmails(int index, java.lang.String value) {
      * 
* * repeated string notification_emails = 2; - * * @param value The notificationEmails to add. * @return This builder for chaining. */ - public Builder addNotificationEmails(java.lang.String value) { + public Builder addNotificationEmails( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNotificationEmailsIsMutable(); + throw new NullPointerException(); + } + ensureNotificationEmailsIsMutable(); notificationEmails_.add(value); onChanged(); return this; } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1267,19 +1172,18 @@ public Builder addNotificationEmails(java.lang.String value) {
      * 
* * repeated string notification_emails = 2; - * * @param values The notificationEmails to add. * @return This builder for chaining. */ - public Builder addAllNotificationEmails(java.lang.Iterable values) { + public Builder addAllNotificationEmails( + java.lang.Iterable values) { ensureNotificationEmailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationEmails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationEmails_); onChanged(); return this; } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1288,7 +1192,6 @@ public Builder addAllNotificationEmails(java.lang.Iterable val
      * 
* * repeated string notification_emails = 2; - * * @return This builder for chaining. */ public Builder clearNotificationEmails() { @@ -1298,8 +1201,6 @@ public Builder clearNotificationEmails() { return this; } /** - * - * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1308,15 +1209,15 @@ public Builder clearNotificationEmails() {
      * 
* * repeated string notification_emails = 2; - * * @param value The bytes of the notificationEmails to add. * @return This builder for chaining. */ - public Builder addNotificationEmailsBytes(com.google.protobuf.ByteString value) { + public Builder addNotificationEmailsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNotificationEmailsIsMutable(); notificationEmails_.add(value); onChanged(); @@ -1324,26 +1225,18 @@ public Builder addNotificationEmailsBytes(com.google.protobuf.ByteString value) } private java.util.List enrolledServices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEnrolledServicesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - enrolledServices_ = - new java.util.ArrayList( - enrolledServices_); + enrolledServices_ = new java.util.ArrayList(enrolledServices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.EnrolledService, - com.google.cloud.accessapproval.v1.EnrolledService.Builder, - com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder> - enrolledServicesBuilder_; + com.google.cloud.accessapproval.v1.EnrolledService, com.google.cloud.accessapproval.v1.EnrolledService.Builder, com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder> enrolledServicesBuilder_; /** - * - * *
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1359,8 +1252,7 @@ private void ensureEnrolledServicesIsMutable() {
      *
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
-    public java.util.List
-        getEnrolledServicesList() {
+    public java.util.List getEnrolledServicesList() {
       if (enrolledServicesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(enrolledServices_);
       } else {
@@ -1368,8 +1260,6 @@ private void ensureEnrolledServicesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1393,8 +1283,6 @@ public int getEnrolledServicesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1418,8 +1306,6 @@ public com.google.cloud.accessapproval.v1.EnrolledService getEnrolledServices(in
       }
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1450,8 +1336,6 @@ public Builder setEnrolledServices(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1479,8 +1363,6 @@ public Builder setEnrolledServices(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1510,8 +1392,6 @@ public Builder addEnrolledServices(com.google.cloud.accessapproval.v1.EnrolledSe
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1542,8 +1422,6 @@ public Builder addEnrolledServices(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1571,8 +1449,6 @@ public Builder addEnrolledServices(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1600,8 +1476,6 @@ public Builder addEnrolledServices(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1621,7 +1495,8 @@ public Builder addAllEnrolledServices(
         java.lang.Iterable values) {
       if (enrolledServicesBuilder_ == null) {
         ensureEnrolledServicesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enrolledServices_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, enrolledServices_);
         onChanged();
       } else {
         enrolledServicesBuilder_.addAllMessages(values);
@@ -1629,8 +1504,6 @@ public Builder addAllEnrolledServices(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1657,8 +1530,6 @@ public Builder clearEnrolledServices() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1685,8 +1556,6 @@ public Builder removeEnrolledServices(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1707,8 +1576,6 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder getEnrolledSer
       return getEnrolledServicesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1727,14 +1594,11 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder getEnrolledSer
     public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesOrBuilder(
         int index) {
       if (enrolledServicesBuilder_ == null) {
-        return enrolledServices_.get(index);
-      } else {
+        return enrolledServices_.get(index);  } else {
         return enrolledServicesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1750,8 +1614,8 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
      *
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
-    public java.util.List
-        getEnrolledServicesOrBuilderList() {
+    public java.util.List 
+         getEnrolledServicesOrBuilderList() {
       if (enrolledServicesBuilder_ != null) {
         return enrolledServicesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1759,8 +1623,6 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
       }
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1777,12 +1639,10 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
     public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledServicesBuilder() {
-      return getEnrolledServicesFieldBuilder()
-          .addBuilder(com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
+      return getEnrolledServicesFieldBuilder().addBuilder(
+          com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1800,13 +1660,10 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
      */
     public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledServicesBuilder(
         int index) {
-      return getEnrolledServicesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
+      return getEnrolledServicesFieldBuilder().addBuilder(
+          index, com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1822,22 +1679,16 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
      *
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
-    public java.util.List
-        getEnrolledServicesBuilderList() {
+    public java.util.List 
+         getEnrolledServicesBuilderList() {
       return getEnrolledServicesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.accessapproval.v1.EnrolledService,
-            com.google.cloud.accessapproval.v1.EnrolledService.Builder,
-            com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder>
+        com.google.cloud.accessapproval.v1.EnrolledService, com.google.cloud.accessapproval.v1.EnrolledService.Builder, com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder> 
         getEnrolledServicesFieldBuilder() {
       if (enrolledServicesBuilder_ == null) {
-        enrolledServicesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.accessapproval.v1.EnrolledService,
-                com.google.cloud.accessapproval.v1.EnrolledService.Builder,
-                com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder>(
+        enrolledServicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.accessapproval.v1.EnrolledService, com.google.cloud.accessapproval.v1.EnrolledService.Builder, com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder>(
                 enrolledServices_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1847,10 +1698,8 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
       return enrolledServicesBuilder_;
     }
 
-    private boolean enrolledAncestor_;
+    private boolean enrolledAncestor_ ;
     /**
-     *
-     *
      * 
      * Output only. This field is read only (not settable via
      * UpdateAccessApprovalSettings method). If the field is true, that
@@ -1860,7 +1709,6 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
      * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The enrolledAncestor. */ @java.lang.Override @@ -1868,8 +1716,6 @@ public boolean getEnrolledAncestor() { return enrolledAncestor_; } /** - * - * *
      * Output only. This field is read only (not settable via
      * UpdateAccessApprovalSettings method). If the field is true, that
@@ -1879,19 +1725,16 @@ public boolean getEnrolledAncestor() {
      * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The enrolledAncestor to set. * @return This builder for chaining. */ public Builder setEnrolledAncestor(boolean value) { - + enrolledAncestor_ = value; onChanged(); return this; } /** - * - * *
      * Output only. This field is read only (not settable via
      * UpdateAccessApprovalSettings method). If the field is true, that
@@ -1901,11 +1744,10 @@ public Builder setEnrolledAncestor(boolean value) {
      * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEnrolledAncestor() { - + enrolledAncestor_ = false; onChanged(); return this; @@ -1913,8 +1755,6 @@ public Builder clearEnrolledAncestor() { private java.lang.Object activeKeyVersion_ = ""; /** - * - * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1923,13 +1763,13 @@ public Builder clearEnrolledAncestor() {
      * 
* * string active_key_version = 6; - * * @return The activeKeyVersion. */ public java.lang.String getActiveKeyVersion() { java.lang.Object ref = activeKeyVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeKeyVersion_ = s; return s; @@ -1938,8 +1778,6 @@ public java.lang.String getActiveKeyVersion() { } } /** - * - * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1948,14 +1786,15 @@ public java.lang.String getActiveKeyVersion() {
      * 
* * string active_key_version = 6; - * * @return The bytes for activeKeyVersion. */ - public com.google.protobuf.ByteString getActiveKeyVersionBytes() { + public com.google.protobuf.ByteString + getActiveKeyVersionBytes() { java.lang.Object ref = activeKeyVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); activeKeyVersion_ = b; return b; } else { @@ -1963,8 +1802,6 @@ public com.google.protobuf.ByteString getActiveKeyVersionBytes() { } } /** - * - * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1973,22 +1810,20 @@ public com.google.protobuf.ByteString getActiveKeyVersionBytes() {
      * 
* * string active_key_version = 6; - * * @param value The activeKeyVersion to set. * @return This builder for chaining. */ - public Builder setActiveKeyVersion(java.lang.String value) { + public Builder setActiveKeyVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + activeKeyVersion_ = value; onChanged(); return this; } /** - * - * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1997,18 +1832,15 @@ public Builder setActiveKeyVersion(java.lang.String value) {
      * 
* * string active_key_version = 6; - * * @return This builder for chaining. */ public Builder clearActiveKeyVersion() { - + activeKeyVersion_ = getDefaultInstance().getActiveKeyVersion(); onChanged(); return this; } /** - * - * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -2017,25 +1849,23 @@ public Builder clearActiveKeyVersion() {
      * 
* * string active_key_version = 6; - * * @param value The bytes for activeKeyVersion to set. * @return This builder for chaining. */ - public Builder setActiveKeyVersionBytes(com.google.protobuf.ByteString value) { + public Builder setActiveKeyVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + activeKeyVersion_ = value; onChanged(); return this; } - private boolean ancestorHasActiveKeyVersion_; + private boolean ancestorHasActiveKeyVersion_ ; /** - * - * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that an ancestor of this
@@ -2043,9 +1873,7 @@ public Builder setActiveKeyVersionBytes(com.google.protobuf.ByteString value) {
      * unset for the organization since organizations do not have ancestors).
      * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ancestorHasActiveKeyVersion. */ @java.lang.Override @@ -2053,8 +1881,6 @@ public boolean getAncestorHasActiveKeyVersion() { return ancestorHasActiveKeyVersion_; } /** - * - * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that an ancestor of this
@@ -2062,21 +1888,17 @@ public boolean getAncestorHasActiveKeyVersion() {
      * unset for the organization since organizations do not have ancestors).
      * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The ancestorHasActiveKeyVersion to set. * @return This builder for chaining. */ public Builder setAncestorHasActiveKeyVersion(boolean value) { - + ancestorHasActiveKeyVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that an ancestor of this
@@ -2084,22 +1906,18 @@ public Builder setAncestorHasActiveKeyVersion(boolean value) {
      * unset for the organization since organizations do not have ancestors).
      * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAncestorHasActiveKeyVersion() { - + ancestorHasActiveKeyVersion_ = false; onChanged(); return this; } - private boolean invalidKeyVersion_; + private boolean invalidKeyVersion_ ; /** - * - * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that there is some
@@ -2111,7 +1929,6 @@ public Builder clearAncestorHasActiveKeyVersion() {
      * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The invalidKeyVersion. */ @java.lang.Override @@ -2119,8 +1936,6 @@ public boolean getInvalidKeyVersion() { return invalidKeyVersion_; } /** - * - * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that there is some
@@ -2132,19 +1947,16 @@ public boolean getInvalidKeyVersion() {
      * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The invalidKeyVersion to set. * @return This builder for chaining. */ public Builder setInvalidKeyVersion(boolean value) { - + invalidKeyVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that there is some
@@ -2156,18 +1968,17 @@ public Builder setInvalidKeyVersion(boolean value) {
      * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearInvalidKeyVersion() { - + invalidKeyVersion_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2177,12 +1988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessApprovalSettings) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessApprovalSettings) private static final com.google.cloud.accessapproval.v1.AccessApprovalSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessApprovalSettings(); } @@ -2191,16 +2002,16 @@ public static com.google.cloud.accessapproval.v1.AccessApprovalSettings getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessApprovalSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessApprovalSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessApprovalSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessApprovalSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2215,4 +2026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.AccessApprovalSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java similarity index 100% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java similarity index 89% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java index 8f546444..70e382d8 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessApprovalSettingsOrBuilder - extends +public interface AccessApprovalSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessApprovalSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -34,13 +16,10 @@ public interface AccessApprovalSettingsOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -49,14 +28,12 @@ public interface AccessApprovalSettingsOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -65,13 +42,11 @@ public interface AccessApprovalSettingsOrBuilder
    * 
* * repeated string notification_emails = 2; - * * @return A list containing the notificationEmails. */ - java.util.List getNotificationEmailsList(); + java.util.List + getNotificationEmailsList(); /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -80,13 +55,10 @@ public interface AccessApprovalSettingsOrBuilder
    * 
* * repeated string notification_emails = 2; - * * @return The count of notificationEmails. */ int getNotificationEmailsCount(); /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -95,14 +67,11 @@ public interface AccessApprovalSettingsOrBuilder
    * 
* * repeated string notification_emails = 2; - * * @param index The index of the element to return. * @return The notificationEmails at the given index. */ java.lang.String getNotificationEmails(int index); /** - * - * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -111,15 +80,13 @@ public interface AccessApprovalSettingsOrBuilder
    * 
* * repeated string notification_emails = 2; - * * @param index The index of the value to return. * @return The bytes of the notificationEmails at the given index. */ - com.google.protobuf.ByteString getNotificationEmailsBytes(int index); + com.google.protobuf.ByteString + getNotificationEmailsBytes(int index); /** - * - * *
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -135,10 +102,9 @@ public interface AccessApprovalSettingsOrBuilder
    *
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
-  java.util.List getEnrolledServicesList();
+  java.util.List 
+      getEnrolledServicesList();
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -156,8 +122,6 @@ public interface AccessApprovalSettingsOrBuilder
    */
   com.google.cloud.accessapproval.v1.EnrolledService getEnrolledServices(int index);
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -175,8 +139,6 @@ public interface AccessApprovalSettingsOrBuilder
    */
   int getEnrolledServicesCount();
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -192,11 +154,9 @@ public interface AccessApprovalSettingsOrBuilder
    *
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
-  java.util.List
+  java.util.List 
       getEnrolledServicesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -216,8 +176,6 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
       int index);
 
   /**
-   *
-   *
    * 
    * Output only. This field is read only (not settable via
    * UpdateAccessApprovalSettings method). If the field is true, that
@@ -227,14 +185,11 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The enrolledAncestor. */ boolean getEnrolledAncestor(); /** - * - * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -243,13 +198,10 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * string active_key_version = 6; - * * @return The activeKeyVersion. */ java.lang.String getActiveKeyVersion(); /** - * - * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -258,14 +210,12 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * string active_key_version = 6; - * * @return The bytes for activeKeyVersion. */ - com.google.protobuf.ByteString getActiveKeyVersionBytes(); + com.google.protobuf.ByteString + getActiveKeyVersionBytes(); /** - * - * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that an ancestor of this
@@ -273,16 +223,12 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * unset for the organization since organizations do not have ancestors).
    * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ancestorHasActiveKeyVersion. */ boolean getAncestorHasActiveKeyVersion(); /** - * - * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that there is some
@@ -294,7 +240,6 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The invalidKeyVersion. */ boolean getInvalidKeyVersion(); diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java similarity index 75% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java index ac9c02d0..57120891 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Home office and physical location of the principal.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessLocations} */ -public final class AccessLocations extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccessLocations extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessLocations) AccessLocationsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccessLocations.newBuilder() to construct. private AccessLocations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessLocations() { principalOfficeCountry_ = ""; principalPhysicalLocationCountry_ = ""; @@ -44,15 +26,16 @@ private AccessLocations() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessLocations(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessLocations( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private AccessLocations( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - principalOfficeCountry_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + principalOfficeCountry_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - principalPhysicalLocationCountry_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + principalPhysicalLocationCountry_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private AccessLocations( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessLocations.class, - com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); + com.google.cloud.accessapproval.v1.AccessLocations.class, com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); } public static final int PRINCIPAL_OFFICE_COUNTRY_FIELD_NUMBER = 1; private volatile java.lang.Object principalOfficeCountry_; /** - * - * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -143,7 +120,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string principal_office_country = 1; - * * @return The principalOfficeCountry. */ @java.lang.Override @@ -152,15 +128,14 @@ public java.lang.String getPrincipalOfficeCountry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalOfficeCountry_ = s; return s; } } /** - * - * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -178,15 +153,16 @@ public java.lang.String getPrincipalOfficeCountry() {
    * 
* * string principal_office_country = 1; - * * @return The bytes for principalOfficeCountry. */ @java.lang.Override - public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() { + public com.google.protobuf.ByteString + getPrincipalOfficeCountryBytes() { java.lang.Object ref = principalOfficeCountry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principalOfficeCountry_ = b; return b; } else { @@ -197,8 +173,6 @@ public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() { public static final int PRINCIPAL_PHYSICAL_LOCATION_COUNTRY_FIELD_NUMBER = 2; private volatile java.lang.Object principalPhysicalLocationCountry_; /** - * - * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -216,7 +190,6 @@ public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() {
    * 
* * string principal_physical_location_country = 2; - * * @return The principalPhysicalLocationCountry. */ @java.lang.Override @@ -225,15 +198,14 @@ public java.lang.String getPrincipalPhysicalLocationCountry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalPhysicalLocationCountry_ = s; return s; } } /** - * - * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -251,15 +223,16 @@ public java.lang.String getPrincipalPhysicalLocationCountry() {
    * 
* * string principal_physical_location_country = 2; - * * @return The bytes for principalPhysicalLocationCountry. */ @java.lang.Override - public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes() { + public com.google.protobuf.ByteString + getPrincipalPhysicalLocationCountryBytes() { java.lang.Object ref = principalPhysicalLocationCountry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principalPhysicalLocationCountry_ = b; return b; } else { @@ -268,7 +241,6 @@ public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,13 +252,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(principalOfficeCountry_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalOfficeCountry_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalPhysicalLocationCountry_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, principalPhysicalLocationCountry_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principalPhysicalLocationCountry_); } unknownFields.writeTo(output); } @@ -301,9 +273,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalOfficeCountry_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalPhysicalLocationCountry_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 2, principalPhysicalLocationCountry_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principalPhysicalLocationCountry_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -313,17 +283,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.accessapproval.v1.AccessLocations)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessLocations other = - (com.google.cloud.accessapproval.v1.AccessLocations) obj; + com.google.cloud.accessapproval.v1.AccessLocations other = (com.google.cloud.accessapproval.v1.AccessLocations) obj; - if (!getPrincipalOfficeCountry().equals(other.getPrincipalOfficeCountry())) return false; - if (!getPrincipalPhysicalLocationCountry().equals(other.getPrincipalPhysicalLocationCountry())) - return false; + if (!getPrincipalOfficeCountry() + .equals(other.getPrincipalOfficeCountry())) return false; + if (!getPrincipalPhysicalLocationCountry() + .equals(other.getPrincipalPhysicalLocationCountry())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -345,126 +315,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessLocations parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessLocations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessLocations prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Home office and physical location of the principal.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessLocations} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessLocations) com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessLocations.class, - com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); + com.google.cloud.accessapproval.v1.AccessLocations.class, com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessLocations.newBuilder() @@ -472,15 +433,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; } @java.lang.Override @@ -513,8 +475,7 @@ public com.google.cloud.accessapproval.v1.AccessLocations build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessLocations buildPartial() { - com.google.cloud.accessapproval.v1.AccessLocations result = - new com.google.cloud.accessapproval.v1.AccessLocations(this); + com.google.cloud.accessapproval.v1.AccessLocations result = new com.google.cloud.accessapproval.v1.AccessLocations(this); result.principalOfficeCountry_ = principalOfficeCountry_; result.principalPhysicalLocationCountry_ = principalPhysicalLocationCountry_; onBuilt(); @@ -525,39 +486,38 @@ public com.google.cloud.accessapproval.v1.AccessLocations buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessLocations) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessLocations) other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessLocations)other); } else { super.mergeFrom(other); return this; @@ -565,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessLocations other) { - if (other == com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance()) return this; if (!other.getPrincipalOfficeCountry().isEmpty()) { principalOfficeCountry_ = other.principalOfficeCountry_; onChanged(); @@ -594,8 +553,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.AccessLocations) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.AccessLocations) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,8 +565,6 @@ public Builder mergeFrom( private java.lang.Object principalOfficeCountry_ = ""; /** - * - * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -626,13 +582,13 @@ public Builder mergeFrom(
      * 
* * string principal_office_country = 1; - * * @return The principalOfficeCountry. */ public java.lang.String getPrincipalOfficeCountry() { java.lang.Object ref = principalOfficeCountry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalOfficeCountry_ = s; return s; @@ -641,8 +597,6 @@ public java.lang.String getPrincipalOfficeCountry() { } } /** - * - * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -660,14 +614,15 @@ public java.lang.String getPrincipalOfficeCountry() {
      * 
* * string principal_office_country = 1; - * * @return The bytes for principalOfficeCountry. */ - public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() { + public com.google.protobuf.ByteString + getPrincipalOfficeCountryBytes() { java.lang.Object ref = principalOfficeCountry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principalOfficeCountry_ = b; return b; } else { @@ -675,8 +630,6 @@ public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() { } } /** - * - * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -694,22 +647,20 @@ public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() {
      * 
* * string principal_office_country = 1; - * * @param value The principalOfficeCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalOfficeCountry(java.lang.String value) { + public Builder setPrincipalOfficeCountry( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalOfficeCountry_ = value; onChanged(); return this; } /** - * - * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -727,18 +678,15 @@ public Builder setPrincipalOfficeCountry(java.lang.String value) {
      * 
* * string principal_office_country = 1; - * * @return This builder for chaining. */ public Builder clearPrincipalOfficeCountry() { - + principalOfficeCountry_ = getDefaultInstance().getPrincipalOfficeCountry(); onChanged(); return this; } /** - * - * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -756,16 +704,16 @@ public Builder clearPrincipalOfficeCountry() {
      * 
* * string principal_office_country = 1; - * * @param value The bytes for principalOfficeCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalOfficeCountryBytes(com.google.protobuf.ByteString value) { + public Builder setPrincipalOfficeCountryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalOfficeCountry_ = value; onChanged(); return this; @@ -773,8 +721,6 @@ public Builder setPrincipalOfficeCountryBytes(com.google.protobuf.ByteString val private java.lang.Object principalPhysicalLocationCountry_ = ""; /** - * - * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -792,13 +738,13 @@ public Builder setPrincipalOfficeCountryBytes(com.google.protobuf.ByteString val
      * 
* * string principal_physical_location_country = 2; - * * @return The principalPhysicalLocationCountry. */ public java.lang.String getPrincipalPhysicalLocationCountry() { java.lang.Object ref = principalPhysicalLocationCountry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalPhysicalLocationCountry_ = s; return s; @@ -807,8 +753,6 @@ public java.lang.String getPrincipalPhysicalLocationCountry() { } } /** - * - * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -826,14 +770,15 @@ public java.lang.String getPrincipalPhysicalLocationCountry() {
      * 
* * string principal_physical_location_country = 2; - * * @return The bytes for principalPhysicalLocationCountry. */ - public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes() { + public com.google.protobuf.ByteString + getPrincipalPhysicalLocationCountryBytes() { java.lang.Object ref = principalPhysicalLocationCountry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principalPhysicalLocationCountry_ = b; return b; } else { @@ -841,8 +786,6 @@ public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes() } } /** - * - * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -860,22 +803,20 @@ public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes()
      * 
* * string principal_physical_location_country = 2; - * * @param value The principalPhysicalLocationCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalPhysicalLocationCountry(java.lang.String value) { + public Builder setPrincipalPhysicalLocationCountry( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalPhysicalLocationCountry_ = value; onChanged(); return this; } /** - * - * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -893,19 +834,15 @@ public Builder setPrincipalPhysicalLocationCountry(java.lang.String value) {
      * 
* * string principal_physical_location_country = 2; - * * @return This builder for chaining. */ public Builder clearPrincipalPhysicalLocationCountry() { - - principalPhysicalLocationCountry_ = - getDefaultInstance().getPrincipalPhysicalLocationCountry(); + + principalPhysicalLocationCountry_ = getDefaultInstance().getPrincipalPhysicalLocationCountry(); onChanged(); return this; } /** - * - * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -923,23 +860,23 @@ public Builder clearPrincipalPhysicalLocationCountry() {
      * 
* * string principal_physical_location_country = 2; - * * @param value The bytes for principalPhysicalLocationCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalPhysicalLocationCountryBytes(com.google.protobuf.ByteString value) { + public Builder setPrincipalPhysicalLocationCountryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalPhysicalLocationCountry_ = 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); } @@ -949,12 +886,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessLocations) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessLocations) private static final com.google.cloud.accessapproval.v1.AccessLocations DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessLocations(); } @@ -963,16 +900,16 @@ public static com.google.cloud.accessapproval.v1.AccessLocations getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessLocations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessLocations(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessLocations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessLocations(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.AccessLocations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java similarity index 77% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java index 1c3dbd93..69391601 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessLocationsOrBuilder - extends +public interface AccessLocationsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessLocations) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -43,13 +25,10 @@ public interface AccessLocationsOrBuilder
    * 
* * string principal_office_country = 1; - * * @return The principalOfficeCountry. */ java.lang.String getPrincipalOfficeCountry(); /** - * - * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -67,14 +46,12 @@ public interface AccessLocationsOrBuilder
    * 
* * string principal_office_country = 1; - * * @return The bytes for principalOfficeCountry. */ - com.google.protobuf.ByteString getPrincipalOfficeCountryBytes(); + com.google.protobuf.ByteString + getPrincipalOfficeCountryBytes(); /** - * - * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -92,13 +69,10 @@ public interface AccessLocationsOrBuilder
    * 
* * string principal_physical_location_country = 2; - * * @return The principalPhysicalLocationCountry. */ java.lang.String getPrincipalPhysicalLocationCountry(); /** - * - * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -116,8 +90,8 @@ public interface AccessLocationsOrBuilder
    * 
* * string principal_physical_location_country = 2; - * * @return The bytes for principalPhysicalLocationCountry. */ - com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes(); + com.google.protobuf.ByteString + getPrincipalPhysicalLocationCountryBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java similarity index 72% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java index b27d098f..baf2d09e 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -/** Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} */ -public final class AccessReason extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} + */ +public final class AccessReason extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessReason) AccessReasonOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccessReason.newBuilder() to construct. private AccessReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessReason() { type_ = 0; detail_ = ""; @@ -36,15 +22,16 @@ private AccessReason() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessReason(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessReason( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,27 +50,25 @@ private AccessReason( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - detail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detail_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +76,36 @@ private AccessReason( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessReason.class, - com.google.cloud.accessapproval.v1.AccessReason.Builder.class); + com.google.cloud.accessapproval.v1.AccessReason.class, com.google.cloud.accessapproval.v1.AccessReason.Builder.class); } /** - * - * *
    * Type of access justification.
    * 
* * Protobuf enum {@code google.cloud.accessapproval.v1.AccessReason.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value for proto, shouldn't be used.
      * 
@@ -134,8 +114,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Customer made a request or raised an issue that required the principal to
      * access customer data. `detail` is of the form ("#####" is the issue ID):
@@ -151,8 +129,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOMER_INITIATED_SUPPORT(1),
     /**
-     *
-     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services. Often this access is used to confirm that
@@ -164,8 +140,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     GOOGLE_INITIATED_SERVICE(2),
     /**
-     *
-     *
      * 
      * Google initiated service for security, fraud, abuse, or compliance
      * purposes.
@@ -175,8 +149,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     GOOGLE_INITIATED_REVIEW(3),
     /**
-     *
-     *
      * 
      * The principal was compelled to access customer data in order to respond
      * to a legal third party data request or process, including legal processes
@@ -187,8 +159,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     THIRD_PARTY_DATA_REQUEST(4),
     /**
-     *
-     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services or a known outage.
@@ -201,8 +171,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value for proto, shouldn't be used.
      * 
@@ -211,8 +179,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Customer made a request or raised an issue that required the principal to
      * access customer data. `detail` is of the form ("#####" is the issue ID):
@@ -228,8 +194,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOMER_INITIATED_SUPPORT_VALUE = 1;
     /**
-     *
-     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services. Often this access is used to confirm that
@@ -241,8 +205,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int GOOGLE_INITIATED_SERVICE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Google initiated service for security, fraud, abuse, or compliance
      * purposes.
@@ -252,8 +214,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int GOOGLE_INITIATED_REVIEW_VALUE = 3;
     /**
-     *
-     *
      * 
      * The principal was compelled to access customer data in order to respond
      * to a legal third party data request or process, including legal processes
@@ -264,8 +224,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int THIRD_PARTY_DATA_REQUEST_VALUE = 4;
     /**
-     *
-     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services or a known outage.
@@ -275,6 +233,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int GOOGLE_RESPONSE_TO_PRODUCTION_ALERT_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -299,55 +258,52 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0:
-          return TYPE_UNSPECIFIED;
-        case 1:
-          return CUSTOMER_INITIATED_SUPPORT;
-        case 2:
-          return GOOGLE_INITIATED_SERVICE;
-        case 3:
-          return GOOGLE_INITIATED_REVIEW;
-        case 4:
-          return THIRD_PARTY_DATA_REQUEST;
-        case 5:
-          return GOOGLE_RESPONSE_TO_PRODUCTION_ALERT;
-        default:
-          return null;
+        case 0: return TYPE_UNSPECIFIED;
+        case 1: return CUSTOMER_INITIATED_SUPPORT;
+        case 2: return GOOGLE_INITIATED_SERVICE;
+        case 3: return GOOGLE_INITIATED_REVIEW;
+        case 4: return THIRD_PARTY_DATA_REQUEST;
+        case 5: return GOOGLE_RESPONSE_TO_PRODUCTION_ALERT;
+        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<
+        Type> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Type findValueByNumber(int number) {
+              return Type.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Type findValueByNumber(int number) {
-            return Type.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.accessapproval.v1.AccessReason.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -367,52 +323,38 @@ private Type(int value) {
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_;
   /**
-   *
-   *
    * 
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessReason.Type getType() { + @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.AccessReason.Type result = - com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); - return result == null - ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED - : result; + com.google.cloud.accessapproval.v1.AccessReason.Type result = com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); + return result == null ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED : result; } public static final int DETAIL_FIELD_NUMBER = 2; private volatile java.lang.Object detail_; /** - * - * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; - * * @return The detail. */ @java.lang.Override @@ -421,29 +363,29 @@ public java.lang.String getDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** - * - * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; - * * @return The bytes for detail. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailBytes() { + public com.google.protobuf.ByteString + getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detail_ = b; return b; } else { @@ -452,7 +394,6 @@ public com.google.protobuf.ByteString getDetailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -464,9 +405,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { @@ -481,9 +422,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); @@ -496,16 +437,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.AccessReason)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessReason other = - (com.google.cloud.accessapproval.v1.AccessReason) obj; + com.google.cloud.accessapproval.v1.AccessReason other = (com.google.cloud.accessapproval.v1.AccessReason) obj; if (type_ != other.type_) return false; - if (!getDetail().equals(other.getDetail())) return false; + if (!getDetail() + .equals(other.getDetail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -526,119 +467,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessReason 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.accessapproval.v1.AccessReason parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.AccessReason parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.AccessReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessReason parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessReason) com.google.cloud.accessapproval.v1.AccessReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessReason.class, - com.google.cloud.accessapproval.v1.AccessReason.Builder.class); + com.google.cloud.accessapproval.v1.AccessReason.class, com.google.cloud.accessapproval.v1.AccessReason.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessReason.newBuilder() @@ -646,15 +582,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +603,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; } @java.lang.Override @@ -687,8 +624,7 @@ public com.google.cloud.accessapproval.v1.AccessReason build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason buildPartial() { - com.google.cloud.accessapproval.v1.AccessReason result = - new com.google.cloud.accessapproval.v1.AccessReason(this); + com.google.cloud.accessapproval.v1.AccessReason result = new com.google.cloud.accessapproval.v1.AccessReason(this); result.type_ = type_; result.detail_ = detail_; onBuilt(); @@ -699,39 +635,38 @@ public com.google.cloud.accessapproval.v1.AccessReason buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessReason) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessReason) other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessReason)other); } else { super.mergeFrom(other); return this; @@ -739,8 +674,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessReason other) { - if (other == com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -779,67 +713,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.AccessReason.Type result = - com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); - return result == null - ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED - : result; + com.google.cloud.accessapproval.v1.AccessReason.Type result = com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); + return result == null ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED : result; } /** - * - * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -847,24 +765,21 @@ public Builder setType(com.google.cloud.accessapproval.v1.AccessReason.Type valu if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -872,20 +787,18 @@ public Builder clearType() { private java.lang.Object detail_ = ""; /** - * - * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; - * * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; @@ -894,21 +807,20 @@ public java.lang.String getDetail() { } } /** - * - * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; - * * @return The bytes for detail. */ - public com.google.protobuf.ByteString getDetailBytes() { + public com.google.protobuf.ByteString + getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detail_ = b; return b; } else { @@ -916,68 +828,61 @@ public com.google.protobuf.ByteString getDetailBytes() { } } /** - * - * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; - * * @param value The detail to set. * @return This builder for chaining. */ - public Builder setDetail(java.lang.String value) { + public Builder setDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** - * - * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; - * * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** - * - * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; - * * @param value The bytes for detail to set. * @return This builder for chaining. */ - public Builder setDetailBytes(com.google.protobuf.ByteString value) { + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessReason) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessReason) private static final com.google.cloud.accessapproval.v1.AccessReason DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessReason(); } @@ -1001,16 +906,16 @@ public static com.google.cloud.accessapproval.v1.AccessReason getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessReason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessReason(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessReason(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,4 +930,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.AccessReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java similarity index 61% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java index 54741da3..e763460f 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java @@ -1,75 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessReasonOrBuilder - extends +public interface AccessReasonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessReason) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * * @return The type. */ com.google.cloud.accessapproval.v1.AccessReason.Type getType(); /** - * - * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; - * * @return The detail. */ java.lang.String getDetail(); /** - * - * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; - * * @return The bytes for detail. */ - com.google.protobuf.ByteString getDetailBytes(); + com.google.protobuf.ByteString + getDetailBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java similarity index 72% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java index 1555c445..6a42afdf 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * A request for the customer to approve access to a resource.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApprovalRequest} */ -public final class ApprovalRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ApprovalRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ApprovalRequest) ApprovalRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ApprovalRequest.newBuilder() to construct. private ApprovalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApprovalRequest() { name_ = ""; requestedResourceName_ = ""; @@ -44,15 +26,16 @@ private ApprovalRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ApprovalRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ApprovalRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,145 +54,118 @@ private ApprovalRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + requestedResourceName_ = s; + break; + } + case 26: { + com.google.cloud.accessapproval.v1.AccessReason.Builder subBuilder = null; + if (requestedReason_ != null) { + subBuilder = requestedReason_.toBuilder(); + } + requestedReason_ = input.readMessage(com.google.cloud.accessapproval.v1.AccessReason.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedReason_); + requestedReason_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - requestedResourceName_ = s; - break; + break; + } + case 34: { + com.google.cloud.accessapproval.v1.AccessLocations.Builder subBuilder = null; + if (requestedLocations_ != null) { + subBuilder = requestedLocations_.toBuilder(); } - case 26: - { - com.google.cloud.accessapproval.v1.AccessReason.Builder subBuilder = null; - if (requestedReason_ != null) { - subBuilder = requestedReason_.toBuilder(); - } - requestedReason_ = - input.readMessage( - com.google.cloud.accessapproval.v1.AccessReason.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedReason_); - requestedReason_ = subBuilder.buildPartial(); - } - - break; + requestedLocations_ = input.readMessage(com.google.cloud.accessapproval.v1.AccessLocations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedLocations_); + requestedLocations_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.accessapproval.v1.AccessLocations.Builder subBuilder = null; - if (requestedLocations_ != null) { - subBuilder = requestedLocations_.toBuilder(); - } - requestedLocations_ = - input.readMessage( - com.google.cloud.accessapproval.v1.AccessLocations.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedLocations_); - requestedLocations_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (requestTime_ != null) { + subBuilder = requestTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (requestTime_ != null) { - subBuilder = requestTime_.toBuilder(); - } - requestTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestTime_); - requestTime_ = subBuilder.buildPartial(); - } - - break; + requestTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestTime_); + requestTime_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (requestedExpiration_ != null) { - subBuilder = requestedExpiration_.toBuilder(); - } - requestedExpiration_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedExpiration_); - requestedExpiration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (requestedExpiration_ != null) { + subBuilder = requestedExpiration_.toBuilder(); } - case 58: - { - com.google.cloud.accessapproval.v1.ApproveDecision.Builder subBuilder = null; - if (decisionCase_ == 7) { - subBuilder = - ((com.google.cloud.accessapproval.v1.ApproveDecision) decision_).toBuilder(); - } - decision_ = - input.readMessage( - com.google.cloud.accessapproval.v1.ApproveDecision.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.accessapproval.v1.ApproveDecision) decision_); - decision_ = subBuilder.buildPartial(); - } - decisionCase_ = 7; - break; + requestedExpiration_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedExpiration_); + requestedExpiration_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.accessapproval.v1.DismissDecision.Builder subBuilder = null; - if (decisionCase_ == 8) { - subBuilder = - ((com.google.cloud.accessapproval.v1.DismissDecision) decision_).toBuilder(); - } - decision_ = - input.readMessage( - com.google.cloud.accessapproval.v1.DismissDecision.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.accessapproval.v1.DismissDecision) decision_); - decision_ = subBuilder.buildPartial(); - } - decisionCase_ = 8; - break; + + break; + } + case 58: { + com.google.cloud.accessapproval.v1.ApproveDecision.Builder subBuilder = null; + if (decisionCase_ == 7) { + subBuilder = ((com.google.cloud.accessapproval.v1.ApproveDecision) decision_).toBuilder(); + } + decision_ = + input.readMessage(com.google.cloud.accessapproval.v1.ApproveDecision.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.accessapproval.v1.ApproveDecision) decision_); + decision_ = subBuilder.buildPartial(); + } + decisionCase_ = 7; + break; + } + case 66: { + com.google.cloud.accessapproval.v1.DismissDecision.Builder subBuilder = null; + if (decisionCase_ == 8) { + subBuilder = ((com.google.cloud.accessapproval.v1.DismissDecision) decision_).toBuilder(); + } + decision_ = + input.readMessage(com.google.cloud.accessapproval.v1.DismissDecision.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.accessapproval.v1.DismissDecision) decision_); + decision_ = subBuilder.buildPartial(); } - case 74: - { - com.google.cloud.accessapproval.v1.ResourceProperties.Builder subBuilder = null; - if (requestedResourceProperties_ != null) { - subBuilder = requestedResourceProperties_.toBuilder(); - } - requestedResourceProperties_ = - input.readMessage( - com.google.cloud.accessapproval.v1.ResourceProperties.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedResourceProperties_); - requestedResourceProperties_ = subBuilder.buildPartial(); - } - - break; + decisionCase_ = 8; + break; + } + case 74: { + com.google.cloud.accessapproval.v1.ResourceProperties.Builder subBuilder = null; + if (requestedResourceProperties_ != null) { + subBuilder = requestedResourceProperties_.toBuilder(); + } + requestedResourceProperties_ = input.readMessage(com.google.cloud.accessapproval.v1.ResourceProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedResourceProperties_); + requestedResourceProperties_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -217,40 +173,35 @@ private ApprovalRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApprovalRequest.class, - com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); + com.google.cloud.accessapproval.v1.ApprovalRequest.class, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); } private int decisionCase_ = 0; private java.lang.Object decision_; - public enum DecisionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { APPROVE(7), DISMISS(8), DECISION_NOT_SET(0); private final int value; - private DecisionCase(int value) { this.value = value; } @@ -266,38 +217,32 @@ public static DecisionCase valueOf(int value) { public static DecisionCase forNumber(int value) { switch (value) { - case 7: - return APPROVE; - case 8: - return DISMISS; - case 0: - return DECISION_NOT_SET; - default: - return null; + case 7: return APPROVE; + case 8: return DISMISS; + case 0: return DECISION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DecisionCase getDecisionCase() { - return DecisionCase.forNumber(decisionCase_); + public DecisionCase + getDecisionCase() { + return DecisionCase.forNumber( + decisionCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -306,30 +251,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * 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 { @@ -340,8 +285,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUESTED_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object requestedResourceName_; /** - * - * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -353,7 +296,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string requested_resource_name = 2; - * * @return The requestedResourceName. */ @java.lang.Override @@ -362,15 +304,14 @@ public java.lang.String getRequestedResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedResourceName_ = s; return s; } } /** - * - * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -382,15 +323,16 @@ public java.lang.String getRequestedResourceName() {
    * 
* * string requested_resource_name = 2; - * * @return The bytes for requestedResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestedResourceNameBytes() { + public com.google.protobuf.ByteString + getRequestedResourceNameBytes() { java.lang.Object ref = requestedResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestedResourceName_ = b; return b; } else { @@ -401,15 +343,11 @@ public com.google.protobuf.ByteString getRequestedResourceNameBytes() { public static final int REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER = 9; private com.google.cloud.accessapproval.v1.ResourceProperties requestedResourceProperties_; /** - * - * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; * @return Whether the requestedResourceProperties field is set. */ @java.lang.Override @@ -417,50 +355,37 @@ public boolean hasRequestedResourceProperties() { return requestedResourceProperties_ != null; } /** - * - * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; * @return The requestedResourceProperties. */ @java.lang.Override public com.google.cloud.accessapproval.v1.ResourceProperties getRequestedResourceProperties() { - return requestedResourceProperties_ == null - ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() - : requestedResourceProperties_; + return requestedResourceProperties_ == null ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() : requestedResourceProperties_; } /** - * - * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ @java.lang.Override - public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder - getRequestedResourcePropertiesOrBuilder() { + public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder() { return getRequestedResourceProperties(); } public static final int REQUESTED_REASON_FIELD_NUMBER = 3; private com.google.cloud.accessapproval.v1.AccessReason requestedReason_; /** - * - * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * * @return Whether the requestedReason field is set. */ @java.lang.Override @@ -468,25 +393,18 @@ public boolean hasRequestedReason() { return requestedReason_ != null; } /** - * - * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * * @return The requestedReason. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason getRequestedReason() { - return requestedReason_ == null - ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() - : requestedReason_; + return requestedReason_ == null ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() : requestedReason_; } /** - * - * *
    * The justification for which approval is being requested.
    * 
@@ -501,14 +419,11 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas public static final int REQUESTED_LOCATIONS_FIELD_NUMBER = 4; private com.google.cloud.accessapproval.v1.AccessLocations requestedLocations_; /** - * - * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * * @return Whether the requestedLocations field is set. */ @java.lang.Override @@ -516,25 +431,18 @@ public boolean hasRequestedLocations() { return requestedLocations_ != null; } /** - * - * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * * @return The requestedLocations. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations() { - return requestedLocations_ == null - ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() - : requestedLocations_; + return requestedLocations_ == null ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() : requestedLocations_; } /** - * - * *
    * The locations for which approval is being requested.
    * 
@@ -542,22 +450,18 @@ public com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations( * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder - getRequestedLocationsOrBuilder() { + public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedLocationsOrBuilder() { return getRequestedLocations(); } public static final int REQUEST_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp requestTime_; /** - * - * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; - * * @return Whether the requestTime field is set. */ @java.lang.Override @@ -565,14 +469,11 @@ public boolean hasRequestTime() { return requestTime_ != null; } /** - * - * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; - * * @return The requestTime. */ @java.lang.Override @@ -580,8 +481,6 @@ public com.google.protobuf.Timestamp getRequestTime() { return requestTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestTime_; } /** - * - * *
    * The time at which approval was requested.
    * 
@@ -596,15 +495,12 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { public static final int REQUESTED_EXPIRATION_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp requestedExpiration_; /** - * - * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; - * * @return Whether the requestedExpiration field is set. */ @java.lang.Override @@ -612,26 +508,19 @@ public boolean hasRequestedExpiration() { return requestedExpiration_ != null; } /** - * - * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; - * * @return The requestedExpiration. */ @java.lang.Override public com.google.protobuf.Timestamp getRequestedExpiration() { - return requestedExpiration_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : requestedExpiration_; + return requestedExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestedExpiration_; } /** - * - * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
@@ -646,14 +535,11 @@ public com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder()
 
   public static final int APPROVE_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * * @return Whether the approve field is set. */ @java.lang.Override @@ -661,26 +547,21 @@ public boolean hasApprove() { return decisionCase_ == 7; } /** - * - * *
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * * @return The approve. */ @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveDecision getApprove() { if (decisionCase_ == 7) { - return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; + return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; } return com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance(); } /** - * - * *
    * Access was approved.
    * 
@@ -690,21 +571,18 @@ public com.google.cloud.accessapproval.v1.ApproveDecision getApprove() { @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrBuilder() { if (decisionCase_ == 7) { - return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; + return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; } return com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance(); } public static final int DISMISS_FIELD_NUMBER = 8; /** - * - * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * * @return Whether the dismiss field is set. */ @java.lang.Override @@ -712,26 +590,21 @@ public boolean hasDismiss() { return decisionCase_ == 8; } /** - * - * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * * @return The dismiss. */ @java.lang.Override public com.google.cloud.accessapproval.v1.DismissDecision getDismiss() { if (decisionCase_ == 8) { - return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; + return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; } return com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance(); } /** - * - * *
    * The request was dismissed.
    * 
@@ -741,13 +614,12 @@ public com.google.cloud.accessapproval.v1.DismissDecision getDismiss() { @java.lang.Override public com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder getDismissOrBuilder() { if (decisionCase_ == 8) { - return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; + return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; } return com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -759,7 +631,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_); } @@ -803,31 +676,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestedResourceName_); } if (requestedReason_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestedReason()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRequestedReason()); } if (requestedLocations_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRequestedLocations()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRequestedLocations()); } if (requestTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRequestTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRequestTime()); } if (requestedExpiration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRequestedExpiration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getRequestedExpiration()); } if (decisionCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.accessapproval.v1.ApproveDecision) decision_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.accessapproval.v1.ApproveDecision) decision_); } if (decisionCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.accessapproval.v1.DismissDecision) decision_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.accessapproval.v1.DismissDecision) decision_); } if (requestedResourceProperties_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, getRequestedResourceProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getRequestedResourceProperties()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -837,44 +711,51 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.ApprovalRequest)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ApprovalRequest other = - (com.google.cloud.accessapproval.v1.ApprovalRequest) obj; + com.google.cloud.accessapproval.v1.ApprovalRequest other = (com.google.cloud.accessapproval.v1.ApprovalRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestedResourceName().equals(other.getRequestedResourceName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestedResourceName() + .equals(other.getRequestedResourceName())) return false; if (hasRequestedResourceProperties() != other.hasRequestedResourceProperties()) return false; if (hasRequestedResourceProperties()) { - if (!getRequestedResourceProperties().equals(other.getRequestedResourceProperties())) - return false; + if (!getRequestedResourceProperties() + .equals(other.getRequestedResourceProperties())) return false; } if (hasRequestedReason() != other.hasRequestedReason()) return false; if (hasRequestedReason()) { - if (!getRequestedReason().equals(other.getRequestedReason())) return false; + if (!getRequestedReason() + .equals(other.getRequestedReason())) return false; } if (hasRequestedLocations() != other.hasRequestedLocations()) return false; if (hasRequestedLocations()) { - if (!getRequestedLocations().equals(other.getRequestedLocations())) return false; + if (!getRequestedLocations() + .equals(other.getRequestedLocations())) return false; } if (hasRequestTime() != other.hasRequestTime()) return false; if (hasRequestTime()) { - if (!getRequestTime().equals(other.getRequestTime())) return false; + if (!getRequestTime() + .equals(other.getRequestTime())) return false; } if (hasRequestedExpiration() != other.hasRequestedExpiration()) return false; if (hasRequestedExpiration()) { - if (!getRequestedExpiration().equals(other.getRequestedExpiration())) return false; + if (!getRequestedExpiration() + .equals(other.getRequestedExpiration())) return false; } if (!getDecisionCase().equals(other.getDecisionCase())) return false; switch (decisionCase_) { case 7: - if (!getApprove().equals(other.getApprove())) return false; + if (!getApprove() + .equals(other.getApprove())) return false; break; case 8: - if (!getDismiss().equals(other.getDismiss())) return false; + if (!getDismiss() + .equals(other.getDismiss())) return false; break; case 0: default: @@ -932,126 +813,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.ApprovalRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request for the customer to approve access to a resource.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApprovalRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ApprovalRequest) com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApprovalRequest.class, - com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); + com.google.cloud.accessapproval.v1.ApprovalRequest.class, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ApprovalRequest.newBuilder() @@ -1059,15 +931,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1111,9 +984,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; } @java.lang.Override @@ -1132,8 +1005,7 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ApprovalRequest buildPartial() { - com.google.cloud.accessapproval.v1.ApprovalRequest result = - new com.google.cloud.accessapproval.v1.ApprovalRequest(this); + com.google.cloud.accessapproval.v1.ApprovalRequest result = new com.google.cloud.accessapproval.v1.ApprovalRequest(this); result.name_ = name_; result.requestedResourceName_ = requestedResourceName_; if (requestedResourcePropertiesBuilder_ == null) { @@ -1184,39 +1056,38 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ApprovalRequest) { - return mergeFrom((com.google.cloud.accessapproval.v1.ApprovalRequest) other); + return mergeFrom((com.google.cloud.accessapproval.v1.ApprovalRequest)other); } else { super.mergeFrom(other); return this; @@ -1224,8 +1095,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApprovalRequest other) { - if (other == com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1250,20 +1120,17 @@ public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApprovalRequest othe mergeRequestedExpiration(other.getRequestedExpiration()); } switch (other.getDecisionCase()) { - case APPROVE: - { - mergeApprove(other.getApprove()); - break; - } - case DISMISS: - { - mergeDismiss(other.getDismiss()); - break; - } - case DECISION_NOT_SET: - { - break; - } + case APPROVE: { + mergeApprove(other.getApprove()); + break; + } + case DISMISS: { + mergeDismiss(other.getDismiss()); + break; + } + case DECISION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1284,8 +1151,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.ApprovalRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.ApprovalRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1294,12 +1160,12 @@ public Builder mergeFrom( } return this; } - private int decisionCase_ = 0; private java.lang.Object decision_; - - public DecisionCase getDecisionCase() { - return DecisionCase.forNumber(decisionCase_); + public DecisionCase + getDecisionCase() { + return DecisionCase.forNumber( + decisionCase_); } public Builder clearDecision() { @@ -1309,23 +1175,22 @@ public Builder clearDecision() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * 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; @@ -1334,22 +1199,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * 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 { @@ -1357,64 +1221,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1422,8 +1279,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestedResourceName_ = ""; /** - * - * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1435,13 +1290,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string requested_resource_name = 2; - * * @return The requestedResourceName. */ public java.lang.String getRequestedResourceName() { java.lang.Object ref = requestedResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedResourceName_ = s; return s; @@ -1450,8 +1305,6 @@ public java.lang.String getRequestedResourceName() { } } /** - * - * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1463,14 +1316,15 @@ public java.lang.String getRequestedResourceName() {
      * 
* * string requested_resource_name = 2; - * * @return The bytes for requestedResourceName. */ - public com.google.protobuf.ByteString getRequestedResourceNameBytes() { + public com.google.protobuf.ByteString + getRequestedResourceNameBytes() { java.lang.Object ref = requestedResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestedResourceName_ = b; return b; } else { @@ -1478,8 +1332,6 @@ public com.google.protobuf.ByteString getRequestedResourceNameBytes() { } } /** - * - * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1491,22 +1343,20 @@ public com.google.protobuf.ByteString getRequestedResourceNameBytes() {
      * 
* * string requested_resource_name = 2; - * * @param value The requestedResourceName to set. * @return This builder for chaining. */ - public Builder setRequestedResourceName(java.lang.String value) { + public Builder setRequestedResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestedResourceName_ = value; onChanged(); return this; } /** - * - * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1518,18 +1368,15 @@ public Builder setRequestedResourceName(java.lang.String value) {
      * 
* * string requested_resource_name = 2; - * * @return This builder for chaining. */ public Builder clearRequestedResourceName() { - + requestedResourceName_ = getDefaultInstance().getRequestedResourceName(); onChanged(); return this; } /** - * - * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1541,16 +1388,16 @@ public Builder clearRequestedResourceName() {
      * 
* * string requested_resource_name = 2; - * * @param value The bytes for requestedResourceName to set. * @return This builder for chaining. */ - public Builder setRequestedResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setRequestedResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestedResourceName_ = value; onChanged(); return this; @@ -1558,58 +1405,41 @@ public Builder setRequestedResourceNameBytes(com.google.protobuf.ByteString valu private com.google.cloud.accessapproval.v1.ResourceProperties requestedResourceProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ResourceProperties, - com.google.cloud.accessapproval.v1.ResourceProperties.Builder, - com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> - requestedResourcePropertiesBuilder_; + com.google.cloud.accessapproval.v1.ResourceProperties, com.google.cloud.accessapproval.v1.ResourceProperties.Builder, com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> requestedResourcePropertiesBuilder_; /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; * @return Whether the requestedResourceProperties field is set. */ public boolean hasRequestedResourceProperties() { return requestedResourcePropertiesBuilder_ != null || requestedResourceProperties_ != null; } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; * @return The requestedResourceProperties. */ public com.google.cloud.accessapproval.v1.ResourceProperties getRequestedResourceProperties() { if (requestedResourcePropertiesBuilder_ == null) { - return requestedResourceProperties_ == null - ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() - : requestedResourceProperties_; + return requestedResourceProperties_ == null ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() : requestedResourceProperties_; } else { return requestedResourcePropertiesBuilder_.getMessage(); } } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ - public Builder setRequestedResourceProperties( - com.google.cloud.accessapproval.v1.ResourceProperties value) { + public Builder setRequestedResourceProperties(com.google.cloud.accessapproval.v1.ResourceProperties value) { if (requestedResourcePropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1623,14 +1453,11 @@ public Builder setRequestedResourceProperties( return this; } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ public Builder setRequestedResourceProperties( com.google.cloud.accessapproval.v1.ResourceProperties.Builder builderForValue) { @@ -1644,24 +1471,17 @@ public Builder setRequestedResourceProperties( return this; } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ - public Builder mergeRequestedResourceProperties( - com.google.cloud.accessapproval.v1.ResourceProperties value) { + public Builder mergeRequestedResourceProperties(com.google.cloud.accessapproval.v1.ResourceProperties value) { if (requestedResourcePropertiesBuilder_ == null) { if (requestedResourceProperties_ != null) { requestedResourceProperties_ = - com.google.cloud.accessapproval.v1.ResourceProperties.newBuilder( - requestedResourceProperties_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.accessapproval.v1.ResourceProperties.newBuilder(requestedResourceProperties_).mergeFrom(value).buildPartial(); } else { requestedResourceProperties_ = value; } @@ -1673,14 +1493,11 @@ public Builder mergeRequestedResourceProperties( return this; } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ public Builder clearRequestedResourceProperties() { if (requestedResourcePropertiesBuilder_ == null) { @@ -1694,63 +1511,48 @@ public Builder clearRequestedResourceProperties() { return this; } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ - public com.google.cloud.accessapproval.v1.ResourceProperties.Builder - getRequestedResourcePropertiesBuilder() { - + public com.google.cloud.accessapproval.v1.ResourceProperties.Builder getRequestedResourcePropertiesBuilder() { + onChanged(); return getRequestedResourcePropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ - public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder - getRequestedResourcePropertiesOrBuilder() { + public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder() { if (requestedResourcePropertiesBuilder_ != null) { return requestedResourcePropertiesBuilder_.getMessageOrBuilder(); } else { - return requestedResourceProperties_ == null - ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() - : requestedResourceProperties_; + return requestedResourceProperties_ == null ? + com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() : requestedResourceProperties_; } } /** - * - * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ResourceProperties, - com.google.cloud.accessapproval.v1.ResourceProperties.Builder, - com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> + com.google.cloud.accessapproval.v1.ResourceProperties, com.google.cloud.accessapproval.v1.ResourceProperties.Builder, com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> getRequestedResourcePropertiesFieldBuilder() { if (requestedResourcePropertiesBuilder_ == null) { - requestedResourcePropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ResourceProperties, - com.google.cloud.accessapproval.v1.ResourceProperties.Builder, - com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder>( - getRequestedResourceProperties(), getParentForChildren(), isClean()); + requestedResourcePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.ResourceProperties, com.google.cloud.accessapproval.v1.ResourceProperties.Builder, com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder>( + getRequestedResourceProperties(), + getParentForChildren(), + isClean()); requestedResourceProperties_ = null; } return requestedResourcePropertiesBuilder_; @@ -1758,47 +1560,34 @@ public Builder clearRequestedResourceProperties() { private com.google.cloud.accessapproval.v1.AccessReason requestedReason_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessReason, - com.google.cloud.accessapproval.v1.AccessReason.Builder, - com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> - requestedReasonBuilder_; + com.google.cloud.accessapproval.v1.AccessReason, com.google.cloud.accessapproval.v1.AccessReason.Builder, com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> requestedReasonBuilder_; /** - * - * *
      * The justification for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * * @return Whether the requestedReason field is set. */ public boolean hasRequestedReason() { return requestedReasonBuilder_ != null || requestedReason_ != null; } /** - * - * *
      * The justification for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * * @return The requestedReason. */ public com.google.cloud.accessapproval.v1.AccessReason getRequestedReason() { if (requestedReasonBuilder_ == null) { - return requestedReason_ == null - ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() - : requestedReason_; + return requestedReason_ == null ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() : requestedReason_; } else { return requestedReasonBuilder_.getMessage(); } } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1819,8 +1608,6 @@ public Builder setRequestedReason(com.google.cloud.accessapproval.v1.AccessReaso return this; } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1839,8 +1626,6 @@ public Builder setRequestedReason( return this; } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1851,9 +1636,7 @@ public Builder mergeRequestedReason(com.google.cloud.accessapproval.v1.AccessRea if (requestedReasonBuilder_ == null) { if (requestedReason_ != null) { requestedReason_ = - com.google.cloud.accessapproval.v1.AccessReason.newBuilder(requestedReason_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.accessapproval.v1.AccessReason.newBuilder(requestedReason_).mergeFrom(value).buildPartial(); } else { requestedReason_ = value; } @@ -1865,8 +1648,6 @@ public Builder mergeRequestedReason(com.google.cloud.accessapproval.v1.AccessRea return this; } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1885,8 +1666,6 @@ public Builder clearRequestedReason() { return this; } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1894,13 +1673,11 @@ public Builder clearRequestedReason() { * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; */ public com.google.cloud.accessapproval.v1.AccessReason.Builder getRequestedReasonBuilder() { - + onChanged(); return getRequestedReasonFieldBuilder().getBuilder(); } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1911,14 +1688,11 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas if (requestedReasonBuilder_ != null) { return requestedReasonBuilder_.getMessageOrBuilder(); } else { - return requestedReason_ == null - ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() - : requestedReason_; + return requestedReason_ == null ? + com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() : requestedReason_; } } /** - * - * *
      * The justification for which approval is being requested.
      * 
@@ -1926,17 +1700,14 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessReason, - com.google.cloud.accessapproval.v1.AccessReason.Builder, - com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> + com.google.cloud.accessapproval.v1.AccessReason, com.google.cloud.accessapproval.v1.AccessReason.Builder, com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> getRequestedReasonFieldBuilder() { if (requestedReasonBuilder_ == null) { - requestedReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessReason, - com.google.cloud.accessapproval.v1.AccessReason.Builder, - com.google.cloud.accessapproval.v1.AccessReasonOrBuilder>( - getRequestedReason(), getParentForChildren(), isClean()); + requestedReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.AccessReason, com.google.cloud.accessapproval.v1.AccessReason.Builder, com.google.cloud.accessapproval.v1.AccessReasonOrBuilder>( + getRequestedReason(), + getParentForChildren(), + isClean()); requestedReason_ = null; } return requestedReasonBuilder_; @@ -1944,47 +1715,34 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas private com.google.cloud.accessapproval.v1.AccessLocations requestedLocations_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessLocations, - com.google.cloud.accessapproval.v1.AccessLocations.Builder, - com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> - requestedLocationsBuilder_; + com.google.cloud.accessapproval.v1.AccessLocations, com.google.cloud.accessapproval.v1.AccessLocations.Builder, com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> requestedLocationsBuilder_; /** - * - * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * * @return Whether the requestedLocations field is set. */ public boolean hasRequestedLocations() { return requestedLocationsBuilder_ != null || requestedLocations_ != null; } /** - * - * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * * @return The requestedLocations. */ public com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations() { if (requestedLocationsBuilder_ == null) { - return requestedLocations_ == null - ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() - : requestedLocations_; + return requestedLocations_ == null ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() : requestedLocations_; } else { return requestedLocationsBuilder_.getMessage(); } } /** - * - * *
      * The locations for which approval is being requested.
      * 
@@ -2005,8 +1763,6 @@ public Builder setRequestedLocations(com.google.cloud.accessapproval.v1.AccessLo return this; } /** - * - * *
      * The locations for which approval is being requested.
      * 
@@ -2025,22 +1781,17 @@ public Builder setRequestedLocations( return this; } /** - * - * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ - public Builder mergeRequestedLocations( - com.google.cloud.accessapproval.v1.AccessLocations value) { + public Builder mergeRequestedLocations(com.google.cloud.accessapproval.v1.AccessLocations value) { if (requestedLocationsBuilder_ == null) { if (requestedLocations_ != null) { requestedLocations_ = - com.google.cloud.accessapproval.v1.AccessLocations.newBuilder(requestedLocations_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.accessapproval.v1.AccessLocations.newBuilder(requestedLocations_).mergeFrom(value).buildPartial(); } else { requestedLocations_ = value; } @@ -2052,8 +1803,6 @@ public Builder mergeRequestedLocations( return this; } /** - * - * *
      * The locations for which approval is being requested.
      * 
@@ -2072,42 +1821,33 @@ public Builder clearRequestedLocations() { return this; } /** - * - * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ - public com.google.cloud.accessapproval.v1.AccessLocations.Builder - getRequestedLocationsBuilder() { - + public com.google.cloud.accessapproval.v1.AccessLocations.Builder getRequestedLocationsBuilder() { + onChanged(); return getRequestedLocationsFieldBuilder().getBuilder(); } /** - * - * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ - public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder - getRequestedLocationsOrBuilder() { + public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedLocationsOrBuilder() { if (requestedLocationsBuilder_ != null) { return requestedLocationsBuilder_.getMessageOrBuilder(); } else { - return requestedLocations_ == null - ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() - : requestedLocations_; + return requestedLocations_ == null ? + com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() : requestedLocations_; } } /** - * - * *
      * The locations for which approval is being requested.
      * 
@@ -2115,17 +1855,14 @@ public Builder clearRequestedLocations() { * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessLocations, - com.google.cloud.accessapproval.v1.AccessLocations.Builder, - com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> + com.google.cloud.accessapproval.v1.AccessLocations, com.google.cloud.accessapproval.v1.AccessLocations.Builder, com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> getRequestedLocationsFieldBuilder() { if (requestedLocationsBuilder_ == null) { - requestedLocationsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessLocations, - com.google.cloud.accessapproval.v1.AccessLocations.Builder, - com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder>( - getRequestedLocations(), getParentForChildren(), isClean()); + requestedLocationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.AccessLocations, com.google.cloud.accessapproval.v1.AccessLocations.Builder, com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder>( + getRequestedLocations(), + getParentForChildren(), + isClean()); requestedLocations_ = null; } return requestedLocationsBuilder_; @@ -2133,47 +1870,34 @@ public Builder clearRequestedLocations() { private com.google.protobuf.Timestamp requestTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - requestTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestTimeBuilder_; /** - * - * *
      * The time at which approval was requested.
      * 
* * .google.protobuf.Timestamp request_time = 5; - * * @return Whether the requestTime field is set. */ public boolean hasRequestTime() { return requestTimeBuilder_ != null || requestTime_ != null; } /** - * - * *
      * The time at which approval was requested.
      * 
* * .google.protobuf.Timestamp request_time = 5; - * * @return The requestTime. */ public com.google.protobuf.Timestamp getRequestTime() { if (requestTimeBuilder_ == null) { - return requestTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : requestTime_; + return requestTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestTime_; } else { return requestTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which approval was requested.
      * 
@@ -2194,15 +1918,14 @@ public Builder setRequestTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which approval was requested.
      * 
* * .google.protobuf.Timestamp request_time = 5; */ - public Builder setRequestTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRequestTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (requestTimeBuilder_ == null) { requestTime_ = builderForValue.build(); onChanged(); @@ -2213,8 +1936,6 @@ public Builder setRequestTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * The time at which approval was requested.
      * 
@@ -2225,9 +1946,7 @@ public Builder mergeRequestTime(com.google.protobuf.Timestamp value) { if (requestTimeBuilder_ == null) { if (requestTime_ != null) { requestTime_ = - com.google.protobuf.Timestamp.newBuilder(requestTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(requestTime_).mergeFrom(value).buildPartial(); } else { requestTime_ = value; } @@ -2239,8 +1958,6 @@ public Builder mergeRequestTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which approval was requested.
      * 
@@ -2259,8 +1976,6 @@ public Builder clearRequestTime() { return this; } /** - * - * *
      * The time at which approval was requested.
      * 
@@ -2268,13 +1983,11 @@ public Builder clearRequestTime() { * .google.protobuf.Timestamp request_time = 5; */ public com.google.protobuf.Timestamp.Builder getRequestTimeBuilder() { - + onChanged(); return getRequestTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which approval was requested.
      * 
@@ -2285,14 +1998,11 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { if (requestTimeBuilder_ != null) { return requestTimeBuilder_.getMessageOrBuilder(); } else { - return requestTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : requestTime_; + return requestTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : requestTime_; } } /** - * - * *
      * The time at which approval was requested.
      * 
@@ -2300,17 +2010,14 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { * .google.protobuf.Timestamp request_time = 5; */ 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> getRequestTimeFieldBuilder() { if (requestTimeBuilder_ == null) { - requestTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRequestTime(), getParentForChildren(), isClean()); + requestTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRequestTime(), + getParentForChildren(), + isClean()); requestTime_ = null; } return requestTimeBuilder_; @@ -2318,49 +2025,36 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { private com.google.protobuf.Timestamp requestedExpiration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - requestedExpirationBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestedExpirationBuilder_; /** - * - * *
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
      * 
* * .google.protobuf.Timestamp requested_expiration = 6; - * * @return Whether the requestedExpiration field is set. */ public boolean hasRequestedExpiration() { return requestedExpirationBuilder_ != null || requestedExpiration_ != null; } /** - * - * *
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
      * 
* * .google.protobuf.Timestamp requested_expiration = 6; - * * @return The requestedExpiration. */ public com.google.protobuf.Timestamp getRequestedExpiration() { if (requestedExpirationBuilder_ == null) { - return requestedExpiration_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : requestedExpiration_; + return requestedExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestedExpiration_; } else { return requestedExpirationBuilder_.getMessage(); } } /** - * - * *
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2382,8 +2076,6 @@ public Builder setRequestedExpiration(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2391,7 +2083,8 @@ public Builder setRequestedExpiration(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp requested_expiration = 6;
      */
-    public Builder setRequestedExpiration(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRequestedExpiration(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (requestedExpirationBuilder_ == null) {
         requestedExpiration_ = builderForValue.build();
         onChanged();
@@ -2402,8 +2095,6 @@ public Builder setRequestedExpiration(com.google.protobuf.Timestamp.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2415,9 +2106,7 @@ public Builder mergeRequestedExpiration(com.google.protobuf.Timestamp value) {
       if (requestedExpirationBuilder_ == null) {
         if (requestedExpiration_ != null) {
           requestedExpiration_ =
-              com.google.protobuf.Timestamp.newBuilder(requestedExpiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(requestedExpiration_).mergeFrom(value).buildPartial();
         } else {
           requestedExpiration_ = value;
         }
@@ -2429,8 +2118,6 @@ public Builder mergeRequestedExpiration(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2450,8 +2137,6 @@ public Builder clearRequestedExpiration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2460,13 +2145,11 @@ public Builder clearRequestedExpiration() {
      * .google.protobuf.Timestamp requested_expiration = 6;
      */
     public com.google.protobuf.Timestamp.Builder getRequestedExpirationBuilder() {
-
+      
       onChanged();
       return getRequestedExpirationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2478,14 +2161,11 @@ public com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder()
       if (requestedExpirationBuilder_ != null) {
         return requestedExpirationBuilder_.getMessageOrBuilder();
       } else {
-        return requestedExpiration_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : requestedExpiration_;
+        return requestedExpiration_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : requestedExpiration_;
       }
     }
     /**
-     *
-     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2494,36 +2174,27 @@ public com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder()
      * .google.protobuf.Timestamp requested_expiration = 6;
      */
     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> 
         getRequestedExpirationFieldBuilder() {
       if (requestedExpirationBuilder_ == null) {
-        requestedExpirationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getRequestedExpiration(), getParentForChildren(), isClean());
+        requestedExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getRequestedExpiration(),
+                getParentForChildren(),
+                isClean());
         requestedExpiration_ = null;
       }
       return requestedExpirationBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.accessapproval.v1.ApproveDecision,
-            com.google.cloud.accessapproval.v1.ApproveDecision.Builder,
-            com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder>
-        approveBuilder_;
+        com.google.cloud.accessapproval.v1.ApproveDecision, com.google.cloud.accessapproval.v1.ApproveDecision.Builder, com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder> approveBuilder_;
     /**
-     *
-     *
      * 
      * Access was approved.
      * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * * @return Whether the approve field is set. */ @java.lang.Override @@ -2531,14 +2202,11 @@ public boolean hasApprove() { return decisionCase_ == 7; } /** - * - * *
      * Access was approved.
      * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * * @return The approve. */ @java.lang.Override @@ -2556,8 +2224,6 @@ public com.google.cloud.accessapproval.v1.ApproveDecision getApprove() { } } /** - * - * *
      * Access was approved.
      * 
@@ -2578,8 +2244,6 @@ public Builder setApprove(com.google.cloud.accessapproval.v1.ApproveDecision val return this; } /** - * - * *
      * Access was approved.
      * 
@@ -2598,8 +2262,6 @@ public Builder setApprove( return this; } /** - * - * *
      * Access was approved.
      * 
@@ -2608,14 +2270,10 @@ public Builder setApprove( */ public Builder mergeApprove(com.google.cloud.accessapproval.v1.ApproveDecision value) { if (approveBuilder_ == null) { - if (decisionCase_ == 7 - && decision_ - != com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) { - decision_ = - com.google.cloud.accessapproval.v1.ApproveDecision.newBuilder( - (com.google.cloud.accessapproval.v1.ApproveDecision) decision_) - .mergeFrom(value) - .buildPartial(); + if (decisionCase_ == 7 && + decision_ != com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) { + decision_ = com.google.cloud.accessapproval.v1.ApproveDecision.newBuilder((com.google.cloud.accessapproval.v1.ApproveDecision) decision_) + .mergeFrom(value).buildPartial(); } else { decision_ = value; } @@ -2631,8 +2289,6 @@ public Builder mergeApprove(com.google.cloud.accessapproval.v1.ApproveDecision v return this; } /** - * - * *
      * Access was approved.
      * 
@@ -2656,8 +2312,6 @@ public Builder clearApprove() { return this; } /** - * - * *
      * Access was approved.
      * 
@@ -2668,8 +2322,6 @@ public com.google.cloud.accessapproval.v1.ApproveDecision.Builder getApproveBuil return getApproveFieldBuilder().getBuilder(); } /** - * - * *
      * Access was approved.
      * 
@@ -2688,8 +2340,6 @@ public com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrB } } /** - * - * *
      * Access was approved.
      * 
@@ -2697,44 +2347,32 @@ public com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrB * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApproveDecision, - com.google.cloud.accessapproval.v1.ApproveDecision.Builder, - com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder> + com.google.cloud.accessapproval.v1.ApproveDecision, com.google.cloud.accessapproval.v1.ApproveDecision.Builder, com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder> getApproveFieldBuilder() { if (approveBuilder_ == null) { if (!(decisionCase_ == 7)) { decision_ = com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance(); } - approveBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApproveDecision, - com.google.cloud.accessapproval.v1.ApproveDecision.Builder, - com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder>( + approveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.ApproveDecision, com.google.cloud.accessapproval.v1.ApproveDecision.Builder, com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder>( (com.google.cloud.accessapproval.v1.ApproveDecision) decision_, getParentForChildren(), isClean()); decision_ = null; } decisionCase_ = 7; - onChanged(); - ; + onChanged();; return approveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.DismissDecision, - com.google.cloud.accessapproval.v1.DismissDecision.Builder, - com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> - dismissBuilder_; + com.google.cloud.accessapproval.v1.DismissDecision, com.google.cloud.accessapproval.v1.DismissDecision.Builder, com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> dismissBuilder_; /** - * - * *
      * The request was dismissed.
      * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * * @return Whether the dismiss field is set. */ @java.lang.Override @@ -2742,14 +2380,11 @@ public boolean hasDismiss() { return decisionCase_ == 8; } /** - * - * *
      * The request was dismissed.
      * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * * @return The dismiss. */ @java.lang.Override @@ -2767,8 +2402,6 @@ public com.google.cloud.accessapproval.v1.DismissDecision getDismiss() { } } /** - * - * *
      * The request was dismissed.
      * 
@@ -2789,8 +2422,6 @@ public Builder setDismiss(com.google.cloud.accessapproval.v1.DismissDecision val return this; } /** - * - * *
      * The request was dismissed.
      * 
@@ -2809,8 +2440,6 @@ public Builder setDismiss( return this; } /** - * - * *
      * The request was dismissed.
      * 
@@ -2819,14 +2448,10 @@ public Builder setDismiss( */ public Builder mergeDismiss(com.google.cloud.accessapproval.v1.DismissDecision value) { if (dismissBuilder_ == null) { - if (decisionCase_ == 8 - && decision_ - != com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) { - decision_ = - com.google.cloud.accessapproval.v1.DismissDecision.newBuilder( - (com.google.cloud.accessapproval.v1.DismissDecision) decision_) - .mergeFrom(value) - .buildPartial(); + if (decisionCase_ == 8 && + decision_ != com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) { + decision_ = com.google.cloud.accessapproval.v1.DismissDecision.newBuilder((com.google.cloud.accessapproval.v1.DismissDecision) decision_) + .mergeFrom(value).buildPartial(); } else { decision_ = value; } @@ -2842,8 +2467,6 @@ public Builder mergeDismiss(com.google.cloud.accessapproval.v1.DismissDecision v return this; } /** - * - * *
      * The request was dismissed.
      * 
@@ -2867,8 +2490,6 @@ public Builder clearDismiss() { return this; } /** - * - * *
      * The request was dismissed.
      * 
@@ -2879,8 +2500,6 @@ public com.google.cloud.accessapproval.v1.DismissDecision.Builder getDismissBuil return getDismissFieldBuilder().getBuilder(); } /** - * - * *
      * The request was dismissed.
      * 
@@ -2899,8 +2518,6 @@ public com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder getDismissOrB } } /** - * - * *
      * The request was dismissed.
      * 
@@ -2908,32 +2525,26 @@ public com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder getDismissOrB * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.DismissDecision, - com.google.cloud.accessapproval.v1.DismissDecision.Builder, - com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> + com.google.cloud.accessapproval.v1.DismissDecision, com.google.cloud.accessapproval.v1.DismissDecision.Builder, com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> getDismissFieldBuilder() { if (dismissBuilder_ == null) { if (!(decisionCase_ == 8)) { decision_ = com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance(); } - dismissBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.DismissDecision, - com.google.cloud.accessapproval.v1.DismissDecision.Builder, - com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder>( + dismissBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.DismissDecision, com.google.cloud.accessapproval.v1.DismissDecision.Builder, com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder>( (com.google.cloud.accessapproval.v1.DismissDecision) decision_, getParentForChildren(), isClean()); decision_ = null; } decisionCase_ = 8; - onChanged(); - ; + onChanged();; return dismissBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2943,12 +2554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ApprovalRequest) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ApprovalRequest) private static final com.google.cloud.accessapproval.v1.ApprovalRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ApprovalRequest(); } @@ -2957,16 +2568,16 @@ public static com.google.cloud.accessapproval.v1.ApprovalRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApprovalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApprovalRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApprovalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApprovalRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2981,4 +2592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.ApprovalRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java similarity index 100% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java index 579dac55..d3b22e1b 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java @@ -1,58 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ApprovalRequestOrBuilder - extends +public interface ApprovalRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ApprovalRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -64,13 +41,10 @@ public interface ApprovalRequestOrBuilder
    * 
* * string requested_resource_name = 2; - * * @return The requestedResourceName. */ java.lang.String getRequestedResourceName(); /** - * - * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -82,77 +56,57 @@ public interface ApprovalRequestOrBuilder
    * 
* * string requested_resource_name = 2; - * * @return The bytes for requestedResourceName. */ - com.google.protobuf.ByteString getRequestedResourceNameBytes(); + com.google.protobuf.ByteString + getRequestedResourceNameBytes(); /** - * - * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; * @return Whether the requestedResourceProperties field is set. */ boolean hasRequestedResourceProperties(); /** - * - * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; * @return The requestedResourceProperties. */ com.google.cloud.accessapproval.v1.ResourceProperties getRequestedResourceProperties(); /** - * - * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; */ - com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder - getRequestedResourcePropertiesOrBuilder(); + com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder(); /** - * - * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * * @return Whether the requestedReason field is set. */ boolean hasRequestedReason(); /** - * - * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * * @return The requestedReason. */ com.google.cloud.accessapproval.v1.AccessReason getRequestedReason(); /** - * - * *
    * The justification for which approval is being requested.
    * 
@@ -162,32 +116,24 @@ public interface ApprovalRequestOrBuilder com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReasonOrBuilder(); /** - * - * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * * @return Whether the requestedLocations field is set. */ boolean hasRequestedLocations(); /** - * - * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * * @return The requestedLocations. */ com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations(); /** - * - * *
    * The locations for which approval is being requested.
    * 
@@ -197,32 +143,24 @@ public interface ApprovalRequestOrBuilder com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedLocationsOrBuilder(); /** - * - * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; - * * @return Whether the requestTime field is set. */ boolean hasRequestTime(); /** - * - * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; - * * @return The requestTime. */ com.google.protobuf.Timestamp getRequestTime(); /** - * - * *
    * The time at which approval was requested.
    * 
@@ -232,34 +170,26 @@ public interface ApprovalRequestOrBuilder com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder(); /** - * - * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; - * * @return Whether the requestedExpiration field is set. */ boolean hasRequestedExpiration(); /** - * - * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; - * * @return The requestedExpiration. */ com.google.protobuf.Timestamp getRequestedExpiration(); /** - * - * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
@@ -270,32 +200,24 @@ public interface ApprovalRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * * @return Whether the approve field is set. */ boolean hasApprove(); /** - * - * *
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * * @return The approve. */ com.google.cloud.accessapproval.v1.ApproveDecision getApprove(); /** - * - * *
    * Access was approved.
    * 
@@ -305,32 +227,24 @@ public interface ApprovalRequestOrBuilder com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrBuilder(); /** - * - * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * * @return Whether the dismiss field is set. */ boolean hasDismiss(); /** - * - * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * * @return The dismiss. */ com.google.cloud.accessapproval.v1.DismissDecision getDismiss(); /** - * - * *
    * The request was dismissed.
    * 
diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java similarity index 68% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java index a4272daa..fe95419f 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to approve an ApprovalRequest.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveApprovalRequestMessage} */ -public final class ApproveApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ApproveApprovalRequestMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) ApproveApprovalRequestMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ApproveApprovalRequestMessage.newBuilder() to construct. private ApproveApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApproveApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ApproveApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ApproveApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private ApproveApprovalRequestMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); - } - expireTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); - } - - break; + expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,39 +86,34 @@ private ApproveApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -147,29 +122,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; } } /** - * - * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.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 { @@ -180,14 +155,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -195,14 +167,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -210,8 +179,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * The expiration time of this approval.
    * 
@@ -224,7 +191,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -256,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,18 +234,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.accessapproval.v1.ApproveApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other = - (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -302,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to approve an ApprovalRequest.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveApprovalRequestMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.newBuilder() @@ -430,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -454,14 +414,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance(); } @@ -476,8 +435,7 @@ public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage build() @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage result = - new com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage(this); result.name_ = name_; if (expireTimeBuilder_ == null) { result.expireTime_ = expireTime_; @@ -492,50 +450,46 @@ public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other) { - if (other - == com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other) { + if (other == com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -562,9 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,20 +528,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.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; @@ -598,21 +548,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.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,61 +569,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -682,47 +624,34 @@ public Builder setNameBytes(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_; /** - * - * *
      * The expiration time of this approval.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * The expiration time of this approval.
      * 
* * .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(); } } /** - * - * *
      * The expiration time of this approval.
      * 
@@ -743,15 +672,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The expiration time of this approval.
      * 
* * .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(); onChanged(); @@ -762,8 +690,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The expiration time of this approval.
      * 
@@ -774,7 +700,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -786,8 +712,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The expiration time of this approval.
      * 
@@ -806,8 +730,6 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * The expiration time of this approval.
      * 
@@ -815,13 +737,11 @@ public Builder clearExpireTime() { * .google.protobuf.Timestamp expire_time = 2; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The expiration time of this approval.
      * 
@@ -832,14 +752,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_; } } /** - * - * *
      * The expiration time of this approval.
      * 
@@ -847,24 +764,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); } @@ -874,32 +788,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage(); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,8 +823,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java similarity index 64% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java index 4aea8ee8..0ac15b31 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ApproveApprovalRequestMessageOrBuilder - extends +public interface ApproveApprovalRequestMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * The expiration time of this approval.
    * 
diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java similarity index 72% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java index 076fba6b..cb2dff82 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * A decision that has been made to approve access to a resource.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveDecision} */ -public final class ApproveDecision extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ApproveDecision extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ApproveDecision) ApproveDecisionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ApproveDecision.newBuilder() to construct. private ApproveDecision(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ApproveDecision() {} + private ApproveDecision() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ApproveDecision(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ApproveDecision( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,79 +52,70 @@ private ApproveDecision( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (approveTime_ != null) { - subBuilder = approveTime_.toBuilder(); - } - approveTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(approveTime_); - approveTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (approveTime_ != null) { + subBuilder = approveTime_.toBuilder(); + } + approveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(approveTime_); + approveTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); - } - expireTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); - } - - break; + expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (invalidateTime_ != null) { - subBuilder = invalidateTime_.toBuilder(); - } - invalidateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invalidateTime_); - invalidateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (invalidateTime_ != null) { + subBuilder = invalidateTime_.toBuilder(); } - case 34: - { - com.google.cloud.accessapproval.v1.SignatureInfo.Builder subBuilder = null; - if (signatureInfo_ != null) { - subBuilder = signatureInfo_.toBuilder(); - } - signatureInfo_ = - input.readMessage( - com.google.cloud.accessapproval.v1.SignatureInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signatureInfo_); - signatureInfo_ = subBuilder.buildPartial(); - } - - break; + invalidateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(invalidateTime_); + invalidateTime_ = subBuilder.buildPartial(); } - case 40: - { - autoApproved_ = input.readBool(); - break; + + break; + } + case 34: { + com.google.cloud.accessapproval.v1.SignatureInfo.Builder subBuilder = null; + if (signatureInfo_ != null) { + subBuilder = signatureInfo_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + signatureInfo_ = input.readMessage(com.google.cloud.accessapproval.v1.SignatureInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signatureInfo_); + signatureInfo_ = subBuilder.buildPartial(); } + + break; + } + case 40: { + + autoApproved_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -148,39 +123,34 @@ private ApproveDecision( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveDecision.class, - com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); + com.google.cloud.accessapproval.v1.ApproveDecision.class, com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); } public static final int APPROVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp approveTime_; /** - * - * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; - * * @return Whether the approveTime field is set. */ @java.lang.Override @@ -188,14 +158,11 @@ public boolean hasApproveTime() { return approveTime_ != null; } /** - * - * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; - * * @return The approveTime. */ @java.lang.Override @@ -203,8 +170,6 @@ public com.google.protobuf.Timestamp getApproveTime() { return approveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; } /** - * - * *
    * The time at which approval was granted.
    * 
@@ -219,14 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -234,14 +196,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -249,8 +208,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * The time at which the approval expires.
    * 
@@ -265,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int INVALIDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp invalidateTime_; /** - * - * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; - * * @return Whether the invalidateTime field is set. */ @java.lang.Override @@ -280,25 +234,18 @@ public boolean hasInvalidateTime() { return invalidateTime_ != null; } /** - * - * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; - * * @return The invalidateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getInvalidateTime() { - return invalidateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : invalidateTime_; + return invalidateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : invalidateTime_; } /** - * - * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
@@ -313,14 +260,11 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { public static final int SIGNATURE_INFO_FIELD_NUMBER = 4; private com.google.cloud.accessapproval.v1.SignatureInfo signatureInfo_; /** - * - * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * * @return Whether the signatureInfo field is set. */ @java.lang.Override @@ -328,25 +272,18 @@ public boolean hasSignatureInfo() { return signatureInfo_ != null; } /** - * - * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * * @return The signatureInfo. */ @java.lang.Override public com.google.cloud.accessapproval.v1.SignatureInfo getSignatureInfo() { - return signatureInfo_ == null - ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() - : signatureInfo_; + return signatureInfo_ == null ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() : signatureInfo_; } /** - * - * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
@@ -361,14 +298,11 @@ public com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInf public static final int AUTO_APPROVED_FIELD_NUMBER = 5; private boolean autoApproved_; /** - * - * *
    * True when the request has been auto-approved.
    * 
* * bool auto_approved = 5; - * * @return The autoApproved. */ @java.lang.Override @@ -377,7 +311,6 @@ public boolean getAutoApproved() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,7 +322,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 (approveTime_ != null) { output.writeMessage(1, getApproveTime()); } @@ -415,19 +349,24 @@ public int getSerializedSize() { size = 0; if (approveTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApproveTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getApproveTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } if (invalidateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvalidateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInvalidateTime()); } if (signatureInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSignatureInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSignatureInfo()); } if (autoApproved_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, autoApproved_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, autoApproved_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,31 +376,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.accessapproval.v1.ApproveDecision)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ApproveDecision other = - (com.google.cloud.accessapproval.v1.ApproveDecision) obj; + com.google.cloud.accessapproval.v1.ApproveDecision other = (com.google.cloud.accessapproval.v1.ApproveDecision) obj; if (hasApproveTime() != other.hasApproveTime()) return false; if (hasApproveTime()) { - if (!getApproveTime().equals(other.getApproveTime())) return false; + if (!getApproveTime() + .equals(other.getApproveTime())) 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 (hasInvalidateTime() != other.hasInvalidateTime()) return false; if (hasInvalidateTime()) { - if (!getInvalidateTime().equals(other.getInvalidateTime())) return false; + if (!getInvalidateTime() + .equals(other.getInvalidateTime())) return false; } if (hasSignatureInfo() != other.hasSignatureInfo()) return false; if (hasSignatureInfo()) { - if (!getSignatureInfo().equals(other.getSignatureInfo())) return false; + if (!getSignatureInfo() + .equals(other.getSignatureInfo())) return false; } - if (getAutoApproved() != other.getAutoApproved()) return false; + if (getAutoApproved() + != other.getAutoApproved()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -490,133 +433,125 @@ public int hashCode() { hash = (53 * hash) + getSignatureInfo().hashCode(); } hash = (37 * hash) + AUTO_APPROVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoApproved()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoApproved()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ApproveDecision parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ApproveDecision parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.ApproveDecision prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 decision that has been made to approve access to a resource.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveDecision} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ApproveDecision) com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveDecision.class, - com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); + com.google.cloud.accessapproval.v1.ApproveDecision.class, com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ApproveDecision.newBuilder() @@ -624,15 +559,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +602,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; } @java.lang.Override @@ -687,8 +623,7 @@ public com.google.cloud.accessapproval.v1.ApproveDecision build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveDecision buildPartial() { - com.google.cloud.accessapproval.v1.ApproveDecision result = - new com.google.cloud.accessapproval.v1.ApproveDecision(this); + com.google.cloud.accessapproval.v1.ApproveDecision result = new com.google.cloud.accessapproval.v1.ApproveDecision(this); if (approveTimeBuilder_ == null) { result.approveTime_ = approveTime_; } else { @@ -718,39 +653,38 @@ public com.google.cloud.accessapproval.v1.ApproveDecision buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ApproveDecision) { - return mergeFrom((com.google.cloud.accessapproval.v1.ApproveDecision) other); + return mergeFrom((com.google.cloud.accessapproval.v1.ApproveDecision)other); } else { super.mergeFrom(other); return this; @@ -758,8 +692,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApproveDecision other) { - if (other == com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) return this; if (other.hasApproveTime()) { mergeApproveTime(other.getApproveTime()); } @@ -794,8 +727,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.ApproveDecision) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.ApproveDecision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -807,47 +739,34 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp approveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - approveTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> approveTimeBuilder_; /** - * - * *
      * The time at which approval was granted.
      * 
* * .google.protobuf.Timestamp approve_time = 1; - * * @return Whether the approveTime field is set. */ public boolean hasApproveTime() { return approveTimeBuilder_ != null || approveTime_ != null; } /** - * - * *
      * The time at which approval was granted.
      * 
* * .google.protobuf.Timestamp approve_time = 1; - * * @return The approveTime. */ public com.google.protobuf.Timestamp getApproveTime() { if (approveTimeBuilder_ == null) { - return approveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : approveTime_; + return approveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; } else { return approveTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which approval was granted.
      * 
@@ -868,15 +787,14 @@ public Builder setApproveTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which approval was granted.
      * 
* * .google.protobuf.Timestamp approve_time = 1; */ - public Builder setApproveTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setApproveTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (approveTimeBuilder_ == null) { approveTime_ = builderForValue.build(); onChanged(); @@ -887,8 +805,6 @@ public Builder setApproveTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * The time at which approval was granted.
      * 
@@ -899,9 +815,7 @@ public Builder mergeApproveTime(com.google.protobuf.Timestamp value) { if (approveTimeBuilder_ == null) { if (approveTime_ != null) { approveTime_ = - com.google.protobuf.Timestamp.newBuilder(approveTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(approveTime_).mergeFrom(value).buildPartial(); } else { approveTime_ = value; } @@ -913,8 +827,6 @@ public Builder mergeApproveTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which approval was granted.
      * 
@@ -933,8 +845,6 @@ public Builder clearApproveTime() { return this; } /** - * - * *
      * The time at which approval was granted.
      * 
@@ -942,13 +852,11 @@ public Builder clearApproveTime() { * .google.protobuf.Timestamp approve_time = 1; */ public com.google.protobuf.Timestamp.Builder getApproveTimeBuilder() { - + onChanged(); return getApproveTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which approval was granted.
      * 
@@ -959,14 +867,11 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { if (approveTimeBuilder_ != null) { return approveTimeBuilder_.getMessageOrBuilder(); } else { - return approveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : approveTime_; + return approveTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; } } /** - * - * *
      * The time at which approval was granted.
      * 
@@ -974,17 +879,14 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { * .google.protobuf.Timestamp approve_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getApproveTimeFieldBuilder() { if (approveTimeBuilder_ == null) { - approveTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getApproveTime(), getParentForChildren(), isClean()); + approveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getApproveTime(), + getParentForChildren(), + isClean()); approveTime_ = null; } return approveTimeBuilder_; @@ -992,47 +894,34 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { 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_; /** - * - * *
      * The time at which the approval expires.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * The time at which the approval expires.
      * 
* * .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(); } } /** - * - * *
      * The time at which the approval expires.
      * 
@@ -1053,15 +942,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the approval expires.
      * 
* * .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(); onChanged(); @@ -1072,8 +960,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the approval expires.
      * 
@@ -1084,7 +970,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -1096,8 +982,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the approval expires.
      * 
@@ -1116,8 +1000,6 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * The time at which the approval expires.
      * 
@@ -1125,13 +1007,11 @@ public Builder clearExpireTime() { * .google.protobuf.Timestamp expire_time = 2; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the approval expires.
      * 
@@ -1142,14 +1022,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_; } } /** - * - * *
      * The time at which the approval expires.
      * 
@@ -1157,17 +1034,14 @@ 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_; @@ -1175,47 +1049,34 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private com.google.protobuf.Timestamp invalidateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - invalidateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> invalidateTimeBuilder_; /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
* * .google.protobuf.Timestamp invalidate_time = 3; - * * @return Whether the invalidateTime field is set. */ public boolean hasInvalidateTime() { return invalidateTimeBuilder_ != null || invalidateTime_ != null; } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
* * .google.protobuf.Timestamp invalidate_time = 3; - * * @return The invalidateTime. */ public com.google.protobuf.Timestamp getInvalidateTime() { if (invalidateTimeBuilder_ == null) { - return invalidateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : invalidateTime_; + return invalidateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : invalidateTime_; } else { return invalidateTimeBuilder_.getMessage(); } } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1236,15 +1097,14 @@ public Builder setInvalidateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
* * .google.protobuf.Timestamp invalidate_time = 3; */ - public Builder setInvalidateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setInvalidateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (invalidateTimeBuilder_ == null) { invalidateTime_ = builderForValue.build(); onChanged(); @@ -1255,8 +1115,6 @@ public Builder setInvalidateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1267,9 +1125,7 @@ public Builder mergeInvalidateTime(com.google.protobuf.Timestamp value) { if (invalidateTimeBuilder_ == null) { if (invalidateTime_ != null) { invalidateTime_ = - com.google.protobuf.Timestamp.newBuilder(invalidateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(invalidateTime_).mergeFrom(value).buildPartial(); } else { invalidateTime_ = value; } @@ -1281,8 +1137,6 @@ public Builder mergeInvalidateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1301,8 +1155,6 @@ public Builder clearInvalidateTime() { return this; } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1310,13 +1162,11 @@ public Builder clearInvalidateTime() { * .google.protobuf.Timestamp invalidate_time = 3; */ public com.google.protobuf.Timestamp.Builder getInvalidateTimeBuilder() { - + onChanged(); return getInvalidateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1327,14 +1177,11 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { if (invalidateTimeBuilder_ != null) { return invalidateTimeBuilder_.getMessageOrBuilder(); } else { - return invalidateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : invalidateTime_; + return invalidateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : invalidateTime_; } } /** - * - * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1342,17 +1189,14 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { * .google.protobuf.Timestamp invalidate_time = 3; */ 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> getInvalidateTimeFieldBuilder() { if (invalidateTimeBuilder_ == null) { - invalidateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getInvalidateTime(), getParentForChildren(), isClean()); + invalidateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getInvalidateTime(), + getParentForChildren(), + isClean()); invalidateTime_ = null; } return invalidateTimeBuilder_; @@ -1360,47 +1204,34 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { private com.google.cloud.accessapproval.v1.SignatureInfo signatureInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.SignatureInfo, - com.google.cloud.accessapproval.v1.SignatureInfo.Builder, - com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> - signatureInfoBuilder_; + com.google.cloud.accessapproval.v1.SignatureInfo, com.google.cloud.accessapproval.v1.SignatureInfo.Builder, com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> signatureInfoBuilder_; /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * * @return Whether the signatureInfo field is set. */ public boolean hasSignatureInfo() { return signatureInfoBuilder_ != null || signatureInfo_ != null; } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * * @return The signatureInfo. */ public com.google.cloud.accessapproval.v1.SignatureInfo getSignatureInfo() { if (signatureInfoBuilder_ == null) { - return signatureInfo_ == null - ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() - : signatureInfo_; + return signatureInfo_ == null ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() : signatureInfo_; } else { return signatureInfoBuilder_.getMessage(); } } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1421,8 +1252,6 @@ public Builder setSignatureInfo(com.google.cloud.accessapproval.v1.SignatureInfo return this; } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1441,8 +1270,6 @@ public Builder setSignatureInfo( return this; } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1453,9 +1280,7 @@ public Builder mergeSignatureInfo(com.google.cloud.accessapproval.v1.SignatureIn if (signatureInfoBuilder_ == null) { if (signatureInfo_ != null) { signatureInfo_ = - com.google.cloud.accessapproval.v1.SignatureInfo.newBuilder(signatureInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.accessapproval.v1.SignatureInfo.newBuilder(signatureInfo_).mergeFrom(value).buildPartial(); } else { signatureInfo_ = value; } @@ -1467,8 +1292,6 @@ public Builder mergeSignatureInfo(com.google.cloud.accessapproval.v1.SignatureIn return this; } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1487,8 +1310,6 @@ public Builder clearSignatureInfo() { return this; } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1496,13 +1317,11 @@ public Builder clearSignatureInfo() { * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; */ public com.google.cloud.accessapproval.v1.SignatureInfo.Builder getSignatureInfoBuilder() { - + onChanged(); return getSignatureInfoFieldBuilder().getBuilder(); } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1513,14 +1332,11 @@ public com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInf if (signatureInfoBuilder_ != null) { return signatureInfoBuilder_.getMessageOrBuilder(); } else { - return signatureInfo_ == null - ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() - : signatureInfo_; + return signatureInfo_ == null ? + com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() : signatureInfo_; } } /** - * - * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1528,32 +1344,26 @@ public com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInf * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.SignatureInfo, - com.google.cloud.accessapproval.v1.SignatureInfo.Builder, - com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> + com.google.cloud.accessapproval.v1.SignatureInfo, com.google.cloud.accessapproval.v1.SignatureInfo.Builder, com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> getSignatureInfoFieldBuilder() { if (signatureInfoBuilder_ == null) { - signatureInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.SignatureInfo, - com.google.cloud.accessapproval.v1.SignatureInfo.Builder, - com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder>( - getSignatureInfo(), getParentForChildren(), isClean()); + signatureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.SignatureInfo, com.google.cloud.accessapproval.v1.SignatureInfo.Builder, com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder>( + getSignatureInfo(), + getParentForChildren(), + isClean()); signatureInfo_ = null; } return signatureInfoBuilder_; } - private boolean autoApproved_; + private boolean autoApproved_ ; /** - * - * *
      * True when the request has been auto-approved.
      * 
* * bool auto_approved = 5; - * * @return The autoApproved. */ @java.lang.Override @@ -1561,43 +1371,37 @@ public boolean getAutoApproved() { return autoApproved_; } /** - * - * *
      * True when the request has been auto-approved.
      * 
* * bool auto_approved = 5; - * * @param value The autoApproved to set. * @return This builder for chaining. */ public Builder setAutoApproved(boolean value) { - + autoApproved_ = value; onChanged(); return this; } /** - * - * *
      * True when the request has been auto-approved.
      * 
* * bool auto_approved = 5; - * * @return This builder for chaining. */ public Builder clearAutoApproved() { - + autoApproved_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1607,12 +1411,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ApproveDecision) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ApproveDecision) private static final com.google.cloud.accessapproval.v1.ApproveDecision DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ApproveDecision(); } @@ -1621,16 +1425,16 @@ public static com.google.cloud.accessapproval.v1.ApproveDecision getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveDecision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveDecision(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveDecision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveDecision(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1645,4 +1449,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.ApproveDecision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java similarity index 80% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java index d39aeb9b..2fbd2be3 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ApproveDecisionOrBuilder - extends +public interface ApproveDecisionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ApproveDecision) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; - * * @return Whether the approveTime field is set. */ boolean hasApproveTime(); /** - * - * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; - * * @return The approveTime. */ com.google.protobuf.Timestamp getApproveTime(); /** - * - * *
    * The time at which approval was granted.
    * 
@@ -59,32 +35,24 @@ public interface ApproveDecisionOrBuilder com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder(); /** - * - * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * The time at which the approval expires.
    * 
@@ -94,32 +62,24 @@ public interface ApproveDecisionOrBuilder com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; - * * @return Whether the invalidateTime field is set. */ boolean hasInvalidateTime(); /** - * - * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; - * * @return The invalidateTime. */ com.google.protobuf.Timestamp getInvalidateTime(); /** - * - * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
@@ -129,32 +89,24 @@ public interface ApproveDecisionOrBuilder com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder(); /** - * - * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * * @return Whether the signatureInfo field is set. */ boolean hasSignatureInfo(); /** - * - * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * * @return The signatureInfo. */ com.google.cloud.accessapproval.v1.SignatureInfo getSignatureInfo(); /** - * - * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
@@ -164,14 +116,11 @@ public interface ApproveDecisionOrBuilder com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInfoOrBuilder(); /** - * - * *
    * True when the request has been auto-approved.
    * 
* * bool auto_approved = 5; - * * @return The autoApproved. */ boolean getAutoApproved(); diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java similarity index 64% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java index ea757f49..ede385cf 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java @@ -1,59 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to delete access approval settings.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage} */ -public final class DeleteAccessApprovalSettingsMessage - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAccessApprovalSettingsMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) DeleteAccessApprovalSettingsMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAccessApprovalSettingsMessage.newBuilder() to construct. - private DeleteAccessApprovalSettingsMessage( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteAccessApprovalSettingsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAccessApprovalSettingsMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAccessApprovalSettingsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAccessApprovalSettingsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,20 +53,19 @@ private DeleteAccessApprovalSettingsMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,39 +73,34 @@ private DeleteAccessApprovalSettingsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -134,29 +109,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; } } /** - * - * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +176,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.accessapproval.v1.DeleteAccessApprovalSettingsMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other = - (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) obj; + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other = (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,145 +204,134 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to delete access approval settings.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); } - // Construct using - // com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.newBuilder() + // Construct using com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,22 +341,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - .getDefaultInstance(); + public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.getDefaultInstance(); } @java.lang.Override public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage build() { - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = - buildPartial(); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -401,8 +362,7 @@ public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage bu @java.lang.Override public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage buildPartial() { - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = - new com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage(this); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = new com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage(this); result.name_ = name_; onBuilt(); return result; @@ -412,51 +372,46 @@ public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) { - return mergeFrom( - (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other) { - if (other - == com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other) { + if (other == com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,21 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.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 { @@ -538,68 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,32 +552,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) - private static final com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage(); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAccessApprovalSettingsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAccessApprovalSettingsMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccessApprovalSettingsMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAccessApprovalSettingsMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,8 +587,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java similarity index 50% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java index 7e018d58..a2677c09 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface DeleteAccessApprovalSettingsMessageOrBuilder - extends +public interface DeleteAccessApprovalSettingsMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java similarity index 67% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java index d6603cff..10fb952f 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to dismiss an approval request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissApprovalRequestMessage} */ -public final class DismissApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DismissApprovalRequestMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) DismissApprovalRequestMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DismissApprovalRequestMessage.newBuilder() to construct. private DismissApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DismissApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DismissApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DismissApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DismissApprovalRequestMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private DismissApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the ApprovalRequest to dismiss.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -132,29 +109,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; } } /** - * - * *
    * Name of the ApprovalRequest to dismiss.
    * 
* * string name = 1 [(.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 { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -199,15 +176,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.accessapproval.v1.DismissApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other = - (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to dismiss an approval request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissApprovalRequestMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) com.google.cloud.accessapproval.v1.DismissApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.newBuilder() @@ -355,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -373,14 +341,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance(); } @@ -395,8 +362,7 @@ public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage build() @java.lang.Override public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage result = - new com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage(this); result.name_ = name_; onBuilt(); return result; @@ -406,50 +372,46 @@ public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other) { - if (other - == com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other) { + if (other == com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.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; @@ -509,21 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.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 { @@ -531,68 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,32 +552,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage(); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DismissApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DismissApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DismissApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DismissApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,8 +587,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java new file mode 100644 index 00000000..cae1ce38 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/accessapproval/v1/accessapproval.proto + +package com.google.cloud.accessapproval.v1; + +public interface DismissApprovalRequestMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the ApprovalRequest to dismiss.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the ApprovalRequest to dismiss.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java similarity index 71% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java index 903cbe6e..63a32321 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * A decision that has been made to dismiss an approval request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissDecision} */ -public final class DismissDecision extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DismissDecision extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.DismissDecision) DismissDecisionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DismissDecision.newBuilder() to construct. private DismissDecision(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DismissDecision() {} + private DismissDecision() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DismissDecision(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DismissDecision( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,33 +52,31 @@ private DismissDecision( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dismissTime_ != null) { - subBuilder = dismissTime_.toBuilder(); - } - dismissTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dismissTime_); - dismissTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (dismissTime_ != null) { + subBuilder = dismissTime_.toBuilder(); } - case 16: - { - implicit_ = input.readBool(); - break; + dismissTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dismissTime_); + dismissTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + implicit_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,39 +84,34 @@ private DismissDecision( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissDecision.class, - com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); + com.google.cloud.accessapproval.v1.DismissDecision.class, com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); } public static final int DISMISS_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp dismissTime_; /** - * - * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; - * * @return Whether the dismissTime field is set. */ @java.lang.Override @@ -142,14 +119,11 @@ public boolean hasDismissTime() { return dismissTime_ != null; } /** - * - * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; - * * @return The dismissTime. */ @java.lang.Override @@ -157,8 +131,6 @@ public com.google.protobuf.Timestamp getDismissTime() { return dismissTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dismissTime_; } /** - * - * *
    * The time at which the approval request was dismissed.
    * 
@@ -173,8 +145,6 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() { public static final int IMPLICIT_FIELD_NUMBER = 2; private boolean implicit_; /** - * - * *
    * This field will be true if the ApprovalRequest was implicitly dismissed due
    * to inaction by the access approval approvers (the request is not acted
@@ -182,7 +152,6 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() {
    * 
* * bool implicit = 2; - * * @return The implicit. */ @java.lang.Override @@ -191,7 +160,6 @@ public boolean getImplicit() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dismissTime_ != null) { output.writeMessage(1, getDismissTime()); } @@ -220,10 +189,12 @@ public int getSerializedSize() { size = 0; if (dismissTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDismissTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDismissTime()); } if (implicit_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, implicit_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, implicit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,19 +204,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.accessapproval.v1.DismissDecision)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.DismissDecision other = - (com.google.cloud.accessapproval.v1.DismissDecision) obj; + com.google.cloud.accessapproval.v1.DismissDecision other = (com.google.cloud.accessapproval.v1.DismissDecision) obj; if (hasDismissTime() != other.hasDismissTime()) return false; if (hasDismissTime()) { - if (!getDismissTime().equals(other.getDismissTime())) return false; + if (!getDismissTime() + .equals(other.getDismissTime())) return false; } - if (getImplicit() != other.getImplicit()) return false; + if (getImplicit() + != other.getImplicit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,133 +234,125 @@ public int hashCode() { hash = (53 * hash) + getDismissTime().hashCode(); } hash = (37 * hash) + IMPLICIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImplicit()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getImplicit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.DismissDecision parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.DismissDecision parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.DismissDecision prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 decision that has been made to dismiss an approval request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissDecision} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.DismissDecision) com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissDecision.class, - com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); + com.google.cloud.accessapproval.v1.DismissDecision.class, com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.DismissDecision.newBuilder() @@ -396,15 +360,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; } @java.lang.Override @@ -441,8 +406,7 @@ public com.google.cloud.accessapproval.v1.DismissDecision build() { @java.lang.Override public com.google.cloud.accessapproval.v1.DismissDecision buildPartial() { - com.google.cloud.accessapproval.v1.DismissDecision result = - new com.google.cloud.accessapproval.v1.DismissDecision(this); + com.google.cloud.accessapproval.v1.DismissDecision result = new com.google.cloud.accessapproval.v1.DismissDecision(this); if (dismissTimeBuilder_ == null) { result.dismissTime_ = dismissTime_; } else { @@ -457,39 +421,38 @@ public com.google.cloud.accessapproval.v1.DismissDecision buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.DismissDecision) { - return mergeFrom((com.google.cloud.accessapproval.v1.DismissDecision) other); + return mergeFrom((com.google.cloud.accessapproval.v1.DismissDecision)other); } else { super.mergeFrom(other); return this; @@ -497,8 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.DismissDecision other) { - if (other == com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) return this; if (other.hasDismissTime()) { mergeDismissTime(other.getDismissTime()); } @@ -524,8 +486,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.DismissDecision) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.DismissDecision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,47 +498,34 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp dismissTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dismissTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dismissTimeBuilder_; /** - * - * *
      * The time at which the approval request was dismissed.
      * 
* * .google.protobuf.Timestamp dismiss_time = 1; - * * @return Whether the dismissTime field is set. */ public boolean hasDismissTime() { return dismissTimeBuilder_ != null || dismissTime_ != null; } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
* * .google.protobuf.Timestamp dismiss_time = 1; - * * @return The dismissTime. */ public com.google.protobuf.Timestamp getDismissTime() { if (dismissTimeBuilder_ == null) { - return dismissTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dismissTime_; + return dismissTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dismissTime_; } else { return dismissTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
@@ -598,15 +546,14 @@ public Builder setDismissTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
* * .google.protobuf.Timestamp dismiss_time = 1; */ - public Builder setDismissTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDismissTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (dismissTimeBuilder_ == null) { dismissTime_ = builderForValue.build(); onChanged(); @@ -617,8 +564,6 @@ public Builder setDismissTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
@@ -629,9 +574,7 @@ public Builder mergeDismissTime(com.google.protobuf.Timestamp value) { if (dismissTimeBuilder_ == null) { if (dismissTime_ != null) { dismissTime_ = - com.google.protobuf.Timestamp.newBuilder(dismissTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(dismissTime_).mergeFrom(value).buildPartial(); } else { dismissTime_ = value; } @@ -643,8 +586,6 @@ public Builder mergeDismissTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
@@ -663,8 +604,6 @@ public Builder clearDismissTime() { return this; } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
@@ -672,13 +611,11 @@ public Builder clearDismissTime() { * .google.protobuf.Timestamp dismiss_time = 1; */ public com.google.protobuf.Timestamp.Builder getDismissTimeBuilder() { - + onChanged(); return getDismissTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
@@ -689,14 +626,11 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() { if (dismissTimeBuilder_ != null) { return dismissTimeBuilder_.getMessageOrBuilder(); } else { - return dismissTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dismissTime_; + return dismissTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : dismissTime_; } } /** - * - * *
      * The time at which the approval request was dismissed.
      * 
@@ -704,26 +638,21 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() { * .google.protobuf.Timestamp dismiss_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDismissTimeFieldBuilder() { if (dismissTimeBuilder_ == null) { - dismissTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDismissTime(), getParentForChildren(), isClean()); + dismissTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDismissTime(), + getParentForChildren(), + isClean()); dismissTime_ = null; } return dismissTimeBuilder_; } - private boolean implicit_; + private boolean implicit_ ; /** - * - * *
      * This field will be true if the ApprovalRequest was implicitly dismissed due
      * to inaction by the access approval approvers (the request is not acted
@@ -731,7 +660,6 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() {
      * 
* * bool implicit = 2; - * * @return The implicit. */ @java.lang.Override @@ -739,8 +667,6 @@ public boolean getImplicit() { return implicit_; } /** - * - * *
      * This field will be true if the ApprovalRequest was implicitly dismissed due
      * to inaction by the access approval approvers (the request is not acted
@@ -748,19 +674,16 @@ public boolean getImplicit() {
      * 
* * bool implicit = 2; - * * @param value The implicit to set. * @return This builder for chaining. */ public Builder setImplicit(boolean value) { - + implicit_ = value; onChanged(); return this; } /** - * - * *
      * This field will be true if the ApprovalRequest was implicitly dismissed due
      * to inaction by the access approval approvers (the request is not acted
@@ -768,18 +691,17 @@ public Builder setImplicit(boolean value) {
      * 
* * bool implicit = 2; - * * @return This builder for chaining. */ public Builder clearImplicit() { - + implicit_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -789,12 +711,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.DismissDecision) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.DismissDecision) private static final com.google.cloud.accessapproval.v1.DismissDecision DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.DismissDecision(); } @@ -803,16 +725,16 @@ public static com.google.cloud.accessapproval.v1.DismissDecision getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DismissDecision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DismissDecision(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DismissDecision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DismissDecision(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -827,4 +749,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.DismissDecision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java similarity index 65% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java index 8132f677..784d25f0 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface DismissDecisionOrBuilder - extends +public interface DismissDecisionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DismissDecision) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; - * * @return Whether the dismissTime field is set. */ boolean hasDismissTime(); /** - * - * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; - * * @return The dismissTime. */ com.google.protobuf.Timestamp getDismissTime(); /** - * - * *
    * The time at which the approval request was dismissed.
    * 
@@ -59,8 +35,6 @@ public interface DismissDecisionOrBuilder com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder(); /** - * - * *
    * This field will be true if the ApprovalRequest was implicitly dismissed due
    * to inaction by the access approval approvers (the request is not acted
@@ -68,7 +42,6 @@ public interface DismissDecisionOrBuilder
    * 
* * bool implicit = 2; - * * @return The implicit. */ boolean getImplicit(); diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java similarity index 79% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java index eca53023..28cde55c 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Represents the enrollment of a cloud resource into a specific service.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.EnrolledService} */ -public final class EnrolledService extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnrolledService extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.EnrolledService) EnrolledServiceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnrolledService.newBuilder() to construct. private EnrolledService(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnrolledService() { cloudProduct_ = ""; enrollmentLevel_ = 0; @@ -44,15 +26,16 @@ private EnrolledService() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnrolledService(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EnrolledService( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private EnrolledService( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - cloudProduct_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + cloudProduct_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - enrollmentLevel_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + enrollmentLevel_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private EnrolledService( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.EnrolledService.class, - com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); + com.google.cloud.accessapproval.v1.EnrolledService.class, com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); } public static final int CLOUD_PRODUCT_FIELD_NUMBER = 1; private volatile java.lang.Object cloudProduct_; /** - * - * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -182,7 +159,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string cloud_product = 1; - * * @return The cloudProduct. */ @java.lang.Override @@ -191,15 +167,14 @@ public java.lang.String getCloudProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; } } /** - * - * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -256,15 +231,16 @@ public java.lang.String getCloudProduct() {
    * 
* * string cloud_product = 1; - * * @return The bytes for cloudProduct. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudProductBytes() { + public com.google.protobuf.ByteString + getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -275,43 +251,31 @@ public com.google.protobuf.ByteString getCloudProductBytes() { public static final int ENROLLMENT_LEVEL_FIELD_NUMBER = 2; private int enrollmentLevel_; /** - * - * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return The enum numeric value on the wire for enrollmentLevel. */ - @java.lang.Override - public int getEnrollmentLevelValue() { + @java.lang.Override public int getEnrollmentLevelValue() { return enrollmentLevel_; } /** - * - * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return The enrollmentLevel. */ - @java.lang.Override - public com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel() { + @java.lang.Override public com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.EnrollmentLevel result = - com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); - return result == null - ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED - : result; + com.google.cloud.accessapproval.v1.EnrollmentLevel result = com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); + return result == null ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,13 +287,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudProduct_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudProduct_); } - if (enrollmentLevel_ - != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED - .getNumber()) { + if (enrollmentLevel_ != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, enrollmentLevel_); } unknownFields.writeTo(output); @@ -344,10 +307,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudProduct_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudProduct_); } - if (enrollmentLevel_ - != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, enrollmentLevel_); + if (enrollmentLevel_ != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, enrollmentLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -357,15 +319,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.accessapproval.v1.EnrolledService)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.EnrolledService other = - (com.google.cloud.accessapproval.v1.EnrolledService) obj; + com.google.cloud.accessapproval.v1.EnrolledService other = (com.google.cloud.accessapproval.v1.EnrolledService) obj; - if (!getCloudProduct().equals(other.getCloudProduct())) return false; + if (!getCloudProduct() + .equals(other.getCloudProduct())) return false; if (enrollmentLevel_ != other.enrollmentLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -388,126 +350,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.EnrolledService parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.EnrolledService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.EnrolledService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the enrollment of a cloud resource into a specific service.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.EnrolledService} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.EnrolledService) com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.EnrolledService.class, - com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); + com.google.cloud.accessapproval.v1.EnrolledService.class, com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.EnrolledService.newBuilder() @@ -515,15 +468,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; } @java.lang.Override @@ -556,8 +510,7 @@ public com.google.cloud.accessapproval.v1.EnrolledService build() { @java.lang.Override public com.google.cloud.accessapproval.v1.EnrolledService buildPartial() { - com.google.cloud.accessapproval.v1.EnrolledService result = - new com.google.cloud.accessapproval.v1.EnrolledService(this); + com.google.cloud.accessapproval.v1.EnrolledService result = new com.google.cloud.accessapproval.v1.EnrolledService(this); result.cloudProduct_ = cloudProduct_; result.enrollmentLevel_ = enrollmentLevel_; onBuilt(); @@ -568,39 +521,38 @@ public com.google.cloud.accessapproval.v1.EnrolledService buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.EnrolledService) { - return mergeFrom((com.google.cloud.accessapproval.v1.EnrolledService) other); + return mergeFrom((com.google.cloud.accessapproval.v1.EnrolledService)other); } else { super.mergeFrom(other); return this; @@ -608,8 +560,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.EnrolledService other) { - if (other == com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance()) return this; if (!other.getCloudProduct().isEmpty()) { cloudProduct_ = other.cloudProduct_; onChanged(); @@ -636,8 +587,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.EnrolledService) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.EnrolledService) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -649,8 +599,6 @@ public Builder mergeFrom( private java.lang.Object cloudProduct_ = ""; /** - * - * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -707,13 +655,13 @@ public Builder mergeFrom(
      * 
* * string cloud_product = 1; - * * @return The cloudProduct. */ public java.lang.String getCloudProduct() { java.lang.Object ref = cloudProduct_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; @@ -722,8 +670,6 @@ public java.lang.String getCloudProduct() { } } /** - * - * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -780,14 +726,15 @@ public java.lang.String getCloudProduct() {
      * 
* * string cloud_product = 1; - * * @return The bytes for cloudProduct. */ - public com.google.protobuf.ByteString getCloudProductBytes() { + public com.google.protobuf.ByteString + getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -795,8 +742,6 @@ public com.google.protobuf.ByteString getCloudProductBytes() { } } /** - * - * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -853,22 +798,20 @@ public com.google.protobuf.ByteString getCloudProductBytes() {
      * 
* * string cloud_product = 1; - * * @param value The cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProduct(java.lang.String value) { + public Builder setCloudProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudProduct_ = value; onChanged(); return this; } /** - * - * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -925,18 +868,15 @@ public Builder setCloudProduct(java.lang.String value) {
      * 
* * string cloud_product = 1; - * * @return This builder for chaining. */ public Builder clearCloudProduct() { - + cloudProduct_ = getDefaultInstance().getCloudProduct(); onChanged(); return this; } /** - * - * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -993,16 +933,16 @@ public Builder clearCloudProduct() {
      * 
* * string cloud_product = 1; - * * @param value The bytes for cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProductBytes(com.google.protobuf.ByteString value) { + public Builder setCloudProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudProduct_ = value; onChanged(); return this; @@ -1010,67 +950,51 @@ public Builder setCloudProductBytes(com.google.protobuf.ByteString value) { private int enrollmentLevel_ = 0; /** - * - * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return The enum numeric value on the wire for enrollmentLevel. */ - @java.lang.Override - public int getEnrollmentLevelValue() { + @java.lang.Override public int getEnrollmentLevelValue() { return enrollmentLevel_; } /** - * - * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @param value The enum numeric value on the wire for enrollmentLevel to set. * @return This builder for chaining. */ public Builder setEnrollmentLevelValue(int value) { - + enrollmentLevel_ = value; onChanged(); return this; } /** - * - * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return The enrollmentLevel. */ @java.lang.Override public com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.EnrollmentLevel result = - com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); - return result == null - ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED - : result; + com.google.cloud.accessapproval.v1.EnrollmentLevel result = com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); + return result == null ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED : result; } /** - * - * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @param value The enrollmentLevel to set. * @return This builder for chaining. */ @@ -1078,31 +1002,28 @@ public Builder setEnrollmentLevel(com.google.cloud.accessapproval.v1.EnrollmentL if (value == null) { throw new NullPointerException(); } - + enrollmentLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return This builder for chaining. */ public Builder clearEnrollmentLevel() { - + enrollmentLevel_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.EnrolledService) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.EnrolledService) private static final com.google.cloud.accessapproval.v1.EnrolledService DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.EnrolledService(); } @@ -1126,16 +1047,16 @@ public static com.google.cloud.accessapproval.v1.EnrolledService getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnrolledService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnrolledService(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnrolledService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnrolledService(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1071,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.EnrolledService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java similarity index 85% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java index 8e92955f..b2fa65f5 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface EnrolledServiceOrBuilder - extends +public interface EnrolledServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.EnrolledService) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -82,13 +64,10 @@ public interface EnrolledServiceOrBuilder
    * 
* * string cloud_product = 1; - * * @return The cloudProduct. */ java.lang.String getCloudProduct(); /** - * - * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -145,32 +124,26 @@ public interface EnrolledServiceOrBuilder
    * 
* * string cloud_product = 1; - * * @return The bytes for cloudProduct. */ - com.google.protobuf.ByteString getCloudProductBytes(); + com.google.protobuf.ByteString + getCloudProductBytes(); /** - * - * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return The enum numeric value on the wire for enrollmentLevel. */ int getEnrollmentLevelValue(); /** - * - * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * * @return The enrollmentLevel. */ com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel(); diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java similarity index 65% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java index 109cc622..266d6545 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Represents the type of enrollment for a given service to Access Approval.
  * 
* * Protobuf enum {@code google.cloud.accessapproval.v1.EnrollmentLevel} */ -public enum EnrollmentLevel implements com.google.protobuf.ProtocolMessageEnum { +public enum EnrollmentLevel + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Default value for proto, shouldn't be used.
    * 
@@ -39,8 +21,6 @@ public enum EnrollmentLevel implements com.google.protobuf.ProtocolMessageEnum { */ ENROLLMENT_LEVEL_UNSPECIFIED(0), /** - * - * *
    * Service is enrolled in Access Approval for all requests
    * 
@@ -52,8 +32,6 @@ public enum EnrollmentLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Default value for proto, shouldn't be used.
    * 
@@ -62,8 +40,6 @@ public enum EnrollmentLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENROLLMENT_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Service is enrolled in Access Approval for all requests
    * 
@@ -72,6 +48,7 @@ public enum EnrollmentLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BLOCK_ALL_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -96,49 +73,48 @@ public static EnrollmentLevel valueOf(int value) { */ public static EnrollmentLevel forNumber(int value) { switch (value) { - case 0: - return ENROLLMENT_LEVEL_UNSPECIFIED; - case 1: - return BLOCK_ALL; - default: - return null; + case 0: return ENROLLMENT_LEVEL_UNSPECIFIED; + case 1: return BLOCK_ALL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnrollmentLevel findValueByNumber(int number) { - return EnrollmentLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + EnrollmentLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnrollmentLevel findValueByNumber(int number) { + return EnrollmentLevel.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.accessapproval.v1.AccessApprovalProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.getDescriptor().getEnumTypes().get(0); } private static final EnrollmentLevel[] VALUES = values(); - public static EnrollmentLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EnrollmentLevel 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; @@ -154,3 +130,4 @@ private EnrollmentLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.accessapproval.v1.EnrollmentLevel) } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java similarity index 100% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java similarity index 62% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java index 85d3844d..fc6b5311 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java @@ -1,59 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to get an Access Approval service account.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage} */ -public final class GetAccessApprovalServiceAccountMessage - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAccessApprovalServiceAccountMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) GetAccessApprovalServiceAccountMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAccessApprovalServiceAccountMessage.newBuilder() to construct. - private GetAccessApprovalServiceAccountMessage( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetAccessApprovalServiceAccountMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAccessApprovalServiceAccountMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAccessApprovalServiceAccountMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAccessApprovalServiceAccountMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,20 +53,19 @@ private GetAccessApprovalServiceAccountMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,40 +73,34 @@ private GetAccessApprovalServiceAccountMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder - .class); + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -135,29 +109,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; } } /** - * - * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * 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 { @@ -166,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -202,16 +176,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.accessapproval.v1.GetAccessApprovalServiceAccountMessage)) { + if (!(obj instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other = - (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) obj; + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other = (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,146 +204,134 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to get an Access Approval service account.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder - .class); + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder.class); } - // Construct using - // com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.newBuilder() + // Construct using com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,22 +341,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - .getDefaultInstance(); + public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.getDefaultInstance(); } @java.lang.Override public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage build() { - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = - buildPartial(); + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -403,10 +361,8 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - buildPartial() { - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = - new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(this); + public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage buildPartial() { + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(this); result.name_ = name_; onBuilt(); return result; @@ -416,52 +372,46 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) { - return mergeFrom( - (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) other); + if (other instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) { + return mergeFrom((com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other) { - if (other - == com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other) { + if (other == com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,14 +431,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parsedMessage = - null; + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -500,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * 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; @@ -522,21 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * 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 { @@ -544,68 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -615,33 +552,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) - private static final com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(); + DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccessApprovalServiceAccountMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAccessApprovalServiceAccountMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessApprovalServiceAccountMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAccessApprovalServiceAccountMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,8 +587,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java similarity index 52% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java index 8862eae5..77eb6cf3 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface GetAccessApprovalServiceAccountMessageOrBuilder - extends +public interface GetAccessApprovalServiceAccountMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java similarity index 65% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java index fcf94c5d..8340e7f6 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to get access approval settings.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage} */ -public final class GetAccessApprovalSettingsMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAccessApprovalSettingsMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) GetAccessApprovalSettingsMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAccessApprovalSettingsMessage.newBuilder() to construct. - private GetAccessApprovalSettingsMessage( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetAccessApprovalSettingsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAccessApprovalSettingsMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAccessApprovalSettingsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAccessApprovalSettingsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private GetAccessApprovalSettingsMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,40 +73,35 @@ private GetAccessApprovalSettingsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -134,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.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 { @@ -166,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -202,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other = - (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) obj; + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other = (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to get access approval settings.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); } - // Construct using - // com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.newBuilder() + // Construct using com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - .getDefaultInstance(); + public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.getDefaultInstance(); } @java.lang.Override @@ -401,8 +364,7 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage build @java.lang.Override public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage buildPartial() { - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage result = - new com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage(this); + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage result = new com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage(this); result.name_ = name_; onBuilt(); return result; @@ -412,51 +374,46 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) { - return mergeFrom( - (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other) { - if (other - == com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other) { + if (other == com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.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 { @@ -540,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) - private static final com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage(); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccessApprovalSettingsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAccessApprovalSettingsMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessApprovalSettingsMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAccessApprovalSettingsMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,8 +594,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java similarity index 55% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java index 4ef67424..bc6a621c 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface GetAccessApprovalSettingsMessageOrBuilder - extends +public interface GetAccessApprovalSettingsMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java similarity index 69% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java index 3b9686fe..f03d0af8 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to get an approval request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetApprovalRequestMessage} */ -public final class GetApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetApprovalRequestMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.GetApprovalRequestMessage) GetApprovalRequestMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetApprovalRequestMessage.newBuilder() to construct. private GetApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetApprovalRequestMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the approval request to retrieve.
    * Format:
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the approval request to retrieve.
    * Format:
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,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.accessapproval.v1.GetApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage other = - (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to get an approval request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetApprovalRequestMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.GetApprovalRequestMessage) com.google.cloud.accessapproval.v1.GetApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance(); } @@ -399,8 +366,7 @@ public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage build() { @java.lang.Override public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage result = - new com.google.cloud.accessapproval.v1.GetApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.GetApprovalRequestMessage(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +376,38 @@ public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.GetApprovalRequestMessage)other); } else { super.mergeFrom(other); return this; @@ -450,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage other) { - if (other - == com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The name of the approval request to retrieve.
      * Format:
@@ -498,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -513,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the approval request to retrieve.
      * Format:
@@ -522,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -537,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the approval request to retrieve.
      * Format:
@@ -546,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the approval request to retrieve.
      * Format:
@@ -569,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the approval request to retrieve.
      * Format:
@@ -588,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.GetApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.GetApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.GetApprovalRequestMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.GetApprovalRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.GetApprovalRequestMessage(); } @@ -629,16 +580,16 @@ public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java similarity index 55% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java index d960e6fa..119351d5 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface GetApprovalRequestMessageOrBuilder - extends +public interface GetApprovalRequestMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.GetApprovalRequestMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the approval request to retrieve.
    * Format:
@@ -33,13 +15,10 @@ public interface GetApprovalRequestMessageOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the approval request to retrieve.
    * Format:
@@ -47,8 +26,8 @@ public interface GetApprovalRequestMessageOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java similarity index 65% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java index 47e5f08d..f98e82cb 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to invalidate an existing approval.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage} */ -public final class InvalidateApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InvalidateApprovalRequestMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) InvalidateApprovalRequestMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InvalidateApprovalRequestMessage.newBuilder() to construct. - private InvalidateApprovalRequestMessage( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private InvalidateApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InvalidateApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InvalidateApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InvalidateApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private InvalidateApprovalRequestMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,39 +73,34 @@ private InvalidateApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -133,29 +109,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; } } /** - * - * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.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 { @@ -164,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -200,15 +176,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.accessapproval.v1.InvalidateApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other = - (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,145 +204,134 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to invalidate an existing approval.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); } - // Construct using - // com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.newBuilder() + // Construct using com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,16 +341,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - .getDefaultInstance(); + public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.getDefaultInstance(); } @java.lang.Override @@ -399,8 +362,7 @@ public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage build @java.lang.Override public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage result = - new com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage(this); result.name_ = name_; onBuilt(); return result; @@ -410,51 +372,46 @@ public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) { - return mergeFrom( - (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other) { - if (other - == com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other) { + if (other == com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.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; @@ -514,21 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.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 { @@ -536,68 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,32 +552,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage(); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvalidateApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvalidateApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvalidateApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvalidateApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -644,8 +587,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java similarity index 50% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java index f59d043c..56fc0799 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface InvalidateApprovalRequestMessageOrBuilder - extends +public interface InvalidateApprovalRequestMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java similarity index 73% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java index 35eb3054..56488739 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to list approval requests.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsMessage} */ -public final class ListApprovalRequestsMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListApprovalRequestsMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) ListApprovalRequestsMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListApprovalRequestsMessage.newBuilder() to construct. private ListApprovalRequestsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListApprovalRequestsMessage() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListApprovalRequestsMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListApprovalRequestsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListApprovalRequestsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListApprovalRequestsMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,40 +92,35 @@ private ListApprovalRequestsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ @java.lang.Override @@ -154,30 +129,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.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 { @@ -188,8 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -205,7 +178,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -214,15 +186,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -238,15 +209,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -257,14 +229,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -275,14 +244,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -291,29 +257,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; } } /** - * - * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; - * * @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 { @@ -322,7 +288,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -363,7 +329,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -376,18 +343,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.accessapproval.v1.ListApprovalRequestsMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage other = - (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage other = (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,127 +383,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to list approval requests.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) com.google.cloud.accessapproval.v1.ListApprovalRequestsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.newBuilder() @@ -541,15 +501,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -565,14 +526,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance(); } @@ -587,8 +547,7 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage buildPartial() { - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage result = - new com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage(this); + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage result = new com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -601,39 +560,38 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage)other); } else { super.mergeFrom(other); return this; @@ -641,9 +599,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage other) { - if (other - == com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -678,9 +634,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -692,21 +646,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.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; @@ -715,22 +667,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.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 { @@ -738,64 +689,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -803,8 +747,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -820,13 +762,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -835,8 +777,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -852,14 +792,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -867,8 +808,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -884,22 +823,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -915,18 +852,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -942,31 +876,28 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -974,36 +905,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1011,20 +936,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; - * * @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; @@ -1033,21 +956,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; - * * @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 { @@ -1055,68 +977,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,32 +1041,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) - private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage(); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApprovalRequestsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApprovalRequestsMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApprovalRequestsMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApprovalRequestsMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,8 +1076,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java similarity index 75% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java index 9567d3a5..072f02b9 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java @@ -1,58 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ListApprovalRequestsMessageOrBuilder - extends +public interface ListApprovalRequestsMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -68,13 +45,10 @@ public interface ListApprovalRequestsMessageOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -90,46 +64,38 @@ public interface ListApprovalRequestsMessageOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Requested page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java similarity index 73% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java index bd538a6f..19b113f1 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Response to listing of ApprovalRequest objects.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsResponse} */ -public final class ListApprovalRequestsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListApprovalRequestsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) ListApprovalRequestsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListApprovalRequestsResponse.newBuilder() to construct. private ListApprovalRequestsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListApprovalRequestsResponse() { approvalRequests_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListApprovalRequestsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListApprovalRequestsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListApprovalRequestsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListApprovalRequestsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - approvalRequests_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - approvalRequests_.add( - input.readMessage( - com.google.cloud.accessapproval.v1.ApprovalRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + approvalRequests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + approvalRequests_.add( + input.readMessage(com.google.cloud.accessapproval.v1.ApprovalRequest.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListApprovalRequestsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { approvalRequests_ = java.util.Collections.unmodifiableList(approvalRequests_); @@ -115,27 +94,22 @@ private ListApprovalRequestsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); } public static final int APPROVAL_REQUESTS_FIELD_NUMBER = 1; private java.util.List approvalRequests_; /** - * - * *
    * Approval request details.
    * 
@@ -143,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ @java.lang.Override - public java.util.List - getApprovalRequestsList() { + public java.util.List getApprovalRequestsList() { return approvalRequests_; } /** - * - * *
    * Approval request details.
    * 
@@ -157,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ @java.lang.Override - public java.util.List + public java.util.List getApprovalRequestsOrBuilderList() { return approvalRequests_; } /** - * - * *
    * Approval request details.
    * 
@@ -175,8 +144,6 @@ public int getApprovalRequestsCount() { return approvalRequests_.size(); } /** - * - * *
    * Approval request details.
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequests(in return approvalRequests_.get(index); } /** - * - * *
    * Approval request details.
    * 
@@ -205,14 +170,11 @@ public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRe public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,29 +183,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more.
    * 
* * 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 { @@ -252,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +225,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 < approvalRequests_.size(); i++) { output.writeMessage(1, approvalRequests_.get(i)); } @@ -281,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < approvalRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, approvalRequests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, approvalRequests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +257,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.accessapproval.v1.ListApprovalRequestsResponse)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other = - (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) obj; + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other = (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) obj; - if (!getApprovalRequestsList().equals(other.getApprovalRequestsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getApprovalRequestsList() + .equals(other.getApprovalRequestsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to listing of ApprovalRequest objects.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) com.google.cloud.accessapproval.v1.ListApprovalRequestsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.newBuilder() @@ -455,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getApprovalRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance(); } @@ -503,8 +456,7 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse buildPartial() { - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse result = - new com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse(this); + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse result = new com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse(this); int from_bitField0_ = bitField0_; if (approvalRequestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -524,50 +476,46 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) { - return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) other); + return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other) { - if (other - == com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other) { + if (other == com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance()) return this; if (approvalRequestsBuilder_ == null) { if (!other.approvalRequests_.isEmpty()) { if (approvalRequests_.isEmpty()) { @@ -586,10 +534,9 @@ public Builder mergeFrom( approvalRequestsBuilder_ = null; approvalRequests_ = other.approvalRequests_; bitField0_ = (bitField0_ & ~0x00000001); - approvalRequestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApprovalRequestsFieldBuilder() - : null; + approvalRequestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getApprovalRequestsFieldBuilder() : null; } else { approvalRequestsBuilder_.addAllMessages(other.approvalRequests_); } @@ -618,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,38 +574,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List approvalRequests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureApprovalRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - approvalRequests_ = - new java.util.ArrayList( - approvalRequests_); + approvalRequests_ = new java.util.ArrayList(approvalRequests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApprovalRequest, - com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, - com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> - approvalRequestsBuilder_; + com.google.cloud.accessapproval.v1.ApprovalRequest, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> approvalRequestsBuilder_; /** - * - * *
      * Approval request details.
      * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - public java.util.List - getApprovalRequestsList() { + public java.util.List getApprovalRequestsList() { if (approvalRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(approvalRequests_); } else { @@ -668,8 +603,6 @@ private void ensureApprovalRequestsIsMutable() { } } /** - * - * *
      * Approval request details.
      * 
@@ -684,8 +617,6 @@ public int getApprovalRequestsCount() { } } /** - * - * *
      * Approval request details.
      * 
@@ -700,8 +631,6 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequests(in } } /** - * - * *
      * Approval request details.
      * 
@@ -723,8 +652,6 @@ public Builder setApprovalRequests( return this; } /** - * - * *
      * Approval request details.
      * 
@@ -743,8 +670,6 @@ public Builder setApprovalRequests( return this; } /** - * - * *
      * Approval request details.
      * 
@@ -765,8 +690,6 @@ public Builder addApprovalRequests(com.google.cloud.accessapproval.v1.ApprovalRe return this; } /** - * - * *
      * Approval request details.
      * 
@@ -788,8 +711,6 @@ public Builder addApprovalRequests( return this; } /** - * - * *
      * Approval request details.
      * 
@@ -808,8 +729,6 @@ public Builder addApprovalRequests( return this; } /** - * - * *
      * Approval request details.
      * 
@@ -828,8 +747,6 @@ public Builder addApprovalRequests( return this; } /** - * - * *
      * Approval request details.
      * 
@@ -840,7 +757,8 @@ public Builder addAllApprovalRequests( java.lang.Iterable values) { if (approvalRequestsBuilder_ == null) { ensureApprovalRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, approvalRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, approvalRequests_); onChanged(); } else { approvalRequestsBuilder_.addAllMessages(values); @@ -848,8 +766,6 @@ public Builder addAllApprovalRequests( return this; } /** - * - * *
      * Approval request details.
      * 
@@ -867,8 +783,6 @@ public Builder clearApprovalRequests() { return this; } /** - * - * *
      * Approval request details.
      * 
@@ -886,8 +800,6 @@ public Builder removeApprovalRequests(int index) { return this; } /** - * - * *
      * Approval request details.
      * 
@@ -899,8 +811,6 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder getApprovalReq return getApprovalRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Approval request details.
      * 
@@ -910,22 +820,19 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder getApprovalReq public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRequestsOrBuilder( int index) { if (approvalRequestsBuilder_ == null) { - return approvalRequests_.get(index); - } else { + return approvalRequests_.get(index); } else { return approvalRequestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Approval request details.
      * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - public java.util.List - getApprovalRequestsOrBuilderList() { + public java.util.List + getApprovalRequestsOrBuilderList() { if (approvalRequestsBuilder_ != null) { return approvalRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -933,8 +840,6 @@ public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRe } } /** - * - * *
      * Approval request details.
      * 
@@ -942,12 +847,10 @@ public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRe * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalRequestsBuilder() { - return getApprovalRequestsFieldBuilder() - .addBuilder(com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); + return getApprovalRequestsFieldBuilder().addBuilder( + com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); } /** - * - * *
      * Approval request details.
      * 
@@ -956,35 +859,26 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalReq */ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalRequestsBuilder( int index) { - return getApprovalRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); + return getApprovalRequestsFieldBuilder().addBuilder( + index, com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); } /** - * - * *
      * Approval request details.
      * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - public java.util.List - getApprovalRequestsBuilderList() { + public java.util.List + getApprovalRequestsBuilderList() { return getApprovalRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApprovalRequest, - com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, - com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> + com.google.cloud.accessapproval.v1.ApprovalRequest, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> getApprovalRequestsFieldBuilder() { if (approvalRequestsBuilder_ == null) { - approvalRequestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApprovalRequest, - com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, - com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder>( + approvalRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.accessapproval.v1.ApprovalRequest, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder>( approvalRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -996,20 +890,18 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalReq private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * 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; @@ -1018,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * 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 { @@ -1040,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1111,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) - private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse(); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse - getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApprovalRequestsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApprovalRequestsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApprovalRequestsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApprovalRequestsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse - getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java index cbeb164a..e1f2776f 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ListApprovalRequestsResponseOrBuilder - extends +public interface ListApprovalRequestsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Approval request details.
    * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - java.util.List getApprovalRequestsList(); + java.util.List + getApprovalRequestsList(); /** - * - * *
    * Approval request details.
    * 
@@ -44,8 +25,6 @@ public interface ListApprovalRequestsResponseOrBuilder */ com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequests(int index); /** - * - * *
    * Approval request details.
    * 
@@ -54,19 +33,15 @@ public interface ListApprovalRequestsResponseOrBuilder */ int getApprovalRequestsCount(); /** - * - * *
    * Approval request details.
    * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - java.util.List + java.util.List getApprovalRequestsOrBuilderList(); /** - * - * *
    * Approval request details.
    * 
@@ -77,27 +52,22 @@ com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRequestsO int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more.
    * 
* * 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.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java similarity index 100% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java similarity index 69% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java index 60345706..0e7003a8 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * The properties associated with the resource of the request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ResourceProperties} */ -public final class ResourceProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResourceProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ResourceProperties) ResourcePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResourceProperties.newBuilder() to construct. private ResourceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ResourceProperties() {} + private ResourceProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private ResourceProperties( case 0: done = true; break; - case 8: - { - excludesDescendants_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + excludesDescendants_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,40 +71,35 @@ private ResourceProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ResourceProperties.class, - com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); + com.google.cloud.accessapproval.v1.ResourceProperties.class, com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); } public static final int EXCLUDES_DESCENDANTS_FIELD_NUMBER = 1; private boolean excludesDescendants_; /** - * - * *
    * Whether an approval will exclude the descendants of the resource being
    * requested.
    * 
* * bool excludes_descendants = 1; - * * @return The excludesDescendants. */ @java.lang.Override @@ -129,7 +108,6 @@ public boolean getExcludesDescendants() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +119,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 (excludesDescendants_ != false) { output.writeBool(1, excludesDescendants_); } @@ -155,7 +134,8 @@ public int getSerializedSize() { size = 0; if (excludesDescendants_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, excludesDescendants_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, excludesDescendants_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -165,15 +145,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.ResourceProperties)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ResourceProperties other = - (com.google.cloud.accessapproval.v1.ResourceProperties) obj; + com.google.cloud.accessapproval.v1.ResourceProperties other = (com.google.cloud.accessapproval.v1.ResourceProperties) obj; - if (getExcludesDescendants() != other.getExcludesDescendants()) return false; + if (getExcludesDescendants() + != other.getExcludesDescendants()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -186,134 +166,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXCLUDES_DESCENDANTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludesDescendants()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExcludesDescendants()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.ResourceProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.ResourceProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.accessapproval.v1.ResourceProperties prototype) { + public static Builder newBuilder(com.google.cloud.accessapproval.v1.ResourceProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The properties associated with the resource of the request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ResourceProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ResourceProperties) com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ResourceProperties.class, - com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); + com.google.cloud.accessapproval.v1.ResourceProperties.class, com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ResourceProperties.newBuilder() @@ -321,15 +292,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +311,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; } @java.lang.Override @@ -360,8 +332,7 @@ public com.google.cloud.accessapproval.v1.ResourceProperties build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ResourceProperties buildPartial() { - com.google.cloud.accessapproval.v1.ResourceProperties result = - new com.google.cloud.accessapproval.v1.ResourceProperties(this); + com.google.cloud.accessapproval.v1.ResourceProperties result = new com.google.cloud.accessapproval.v1.ResourceProperties(this); result.excludesDescendants_ = excludesDescendants_; onBuilt(); return result; @@ -371,39 +342,38 @@ public com.google.cloud.accessapproval.v1.ResourceProperties buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ResourceProperties) { - return mergeFrom((com.google.cloud.accessapproval.v1.ResourceProperties) other); + return mergeFrom((com.google.cloud.accessapproval.v1.ResourceProperties)other); } else { super.mergeFrom(other); return this; @@ -411,8 +381,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ResourceProperties other) { - if (other == com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance()) return this; if (other.getExcludesDescendants() != false) { setExcludesDescendants(other.getExcludesDescendants()); } @@ -435,8 +404,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.ResourceProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.ResourceProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -446,17 +414,14 @@ public Builder mergeFrom( return this; } - private boolean excludesDescendants_; + private boolean excludesDescendants_ ; /** - * - * *
      * Whether an approval will exclude the descendants of the resource being
      * requested.
      * 
* * bool excludes_descendants = 1; - * * @return The excludesDescendants. */ @java.lang.Override @@ -464,45 +429,39 @@ public boolean getExcludesDescendants() { return excludesDescendants_; } /** - * - * *
      * Whether an approval will exclude the descendants of the resource being
      * requested.
      * 
* * bool excludes_descendants = 1; - * * @param value The excludesDescendants to set. * @return This builder for chaining. */ public Builder setExcludesDescendants(boolean value) { - + excludesDescendants_ = value; onChanged(); return this; } /** - * - * *
      * Whether an approval will exclude the descendants of the resource being
      * requested.
      * 
* * bool excludes_descendants = 1; - * * @return This builder for chaining. */ public Builder clearExcludesDescendants() { - + excludesDescendants_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -512,12 +471,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ResourceProperties) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ResourceProperties) private static final com.google.cloud.accessapproval.v1.ResourceProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ResourceProperties(); } @@ -526,16 +485,16 @@ public static com.google.cloud.accessapproval.v1.ResourceProperties getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -550,4 +509,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.ResourceProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java new file mode 100644 index 00000000..cd08968b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/accessapproval/v1/accessapproval.proto + +package com.google.cloud.accessapproval.v1; + +public interface ResourcePropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ResourceProperties) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether an approval will exclude the descendants of the resource being
+   * requested.
+   * 
+ * + * bool excludes_descendants = 1; + * @return The excludesDescendants. + */ + boolean getExcludesDescendants(); +} diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java similarity index 74% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java index efc3d2a4..5414c5df 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Information about the digital signature of the resource.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.SignatureInfo} */ -public final class SignatureInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SignatureInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.SignatureInfo) SignatureInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SignatureInfo.newBuilder() to construct. private SignatureInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SignatureInfo() { signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SignatureInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SignatureInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,32 +53,30 @@ private SignatureInfo( case 0: done = true; break; - case 10: - { - signature_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - verificationInfoCase_ = 2; - verificationInfo_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - verificationInfoCase_ = 3; - verificationInfo_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + + signature_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + verificationInfoCase_ = 2; + verificationInfo_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + verificationInfoCase_ = 3; + verificationInfo_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,40 +84,35 @@ private SignatureInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.SignatureInfo.class, - com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); + com.google.cloud.accessapproval.v1.SignatureInfo.class, com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); } private int verificationInfoCase_ = 0; private java.lang.Object verificationInfo_; - public enum VerificationInfoCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_PUBLIC_KEY_PEM(2), CUSTOMER_KMS_KEY_VERSION(3), VERIFICATIONINFO_NOT_SET(0); private final int value; - private VerificationInfoCase(int value) { this.value = value; } @@ -152,37 +128,31 @@ public static VerificationInfoCase valueOf(int value) { public static VerificationInfoCase forNumber(int value) { switch (value) { - case 2: - return GOOGLE_PUBLIC_KEY_PEM; - case 3: - return CUSTOMER_KMS_KEY_VERSION; - case 0: - return VERIFICATIONINFO_NOT_SET; - default: - return null; + case 2: return GOOGLE_PUBLIC_KEY_PEM; + case 3: return CUSTOMER_KMS_KEY_VERSION; + case 0: return VERIFICATIONINFO_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public VerificationInfoCase getVerificationInfoCase() { - return VerificationInfoCase.forNumber(verificationInfoCase_); + public VerificationInfoCase + getVerificationInfoCase() { + return VerificationInfoCase.forNumber( + verificationInfoCase_); } public static final int SIGNATURE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString signature_; /** - * - * *
    * The digital signature.
    * 
* * bytes signature = 1; - * * @return The signature. */ @java.lang.Override @@ -192,8 +162,6 @@ public com.google.protobuf.ByteString getSignature() { public static final int GOOGLE_PUBLIC_KEY_PEM_FIELD_NUMBER = 2; /** - * - * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -201,15 +169,12 @@ public com.google.protobuf.ByteString getSignature() {
    * 
* * string google_public_key_pem = 2; - * * @return Whether the googlePublicKeyPem field is set. */ public boolean hasGooglePublicKeyPem() { return verificationInfoCase_ == 2; } /** - * - * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -217,7 +182,6 @@ public boolean hasGooglePublicKeyPem() {
    * 
* * string google_public_key_pem = 2; - * * @return The googlePublicKeyPem. */ public java.lang.String getGooglePublicKeyPem() { @@ -228,7 +192,8 @@ public java.lang.String getGooglePublicKeyPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 2) { verificationInfo_ = s; @@ -237,8 +202,6 @@ public java.lang.String getGooglePublicKeyPem() { } } /** - * - * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -246,17 +209,18 @@ public java.lang.String getGooglePublicKeyPem() {
    * 
* * string google_public_key_pem = 2; - * * @return The bytes for googlePublicKeyPem. */ - public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() { + public com.google.protobuf.ByteString + getGooglePublicKeyPemBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 2) { ref = verificationInfo_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (verificationInfoCase_ == 2) { verificationInfo_ = b; } @@ -268,28 +232,22 @@ public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() { public static final int CUSTOMER_KMS_KEY_VERSION_FIELD_NUMBER = 3; /** - * - * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; - * * @return Whether the customerKmsKeyVersion field is set. */ public boolean hasCustomerKmsKeyVersion() { return verificationInfoCase_ == 3; } /** - * - * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; - * * @return The customerKmsKeyVersion. */ public java.lang.String getCustomerKmsKeyVersion() { @@ -300,7 +258,8 @@ public java.lang.String getCustomerKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 3) { verificationInfo_ = s; @@ -309,24 +268,23 @@ public java.lang.String getCustomerKmsKeyVersion() { } } /** - * - * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; - * * @return The bytes for customerKmsKeyVersion. */ - public com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getCustomerKmsKeyVersionBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 3) { ref = verificationInfo_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (verificationInfoCase_ == 3) { verificationInfo_ = b; } @@ -337,7 +295,6 @@ public com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +306,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 (!signature_.isEmpty()) { output.writeBytes(1, signature_); } @@ -369,7 +327,8 @@ public int getSerializedSize() { size = 0; if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, signature_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, signature_); } if (verificationInfoCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, verificationInfo_); @@ -385,22 +344,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.accessapproval.v1.SignatureInfo)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.SignatureInfo other = - (com.google.cloud.accessapproval.v1.SignatureInfo) obj; + com.google.cloud.accessapproval.v1.SignatureInfo other = (com.google.cloud.accessapproval.v1.SignatureInfo) obj; - if (!getSignature().equals(other.getSignature())) return false; + if (!getSignature() + .equals(other.getSignature())) return false; if (!getVerificationInfoCase().equals(other.getVerificationInfoCase())) return false; switch (verificationInfoCase_) { case 2: - if (!getGooglePublicKeyPem().equals(other.getGooglePublicKeyPem())) return false; + if (!getGooglePublicKeyPem() + .equals(other.getGooglePublicKeyPem())) return false; break; case 3: - if (!getCustomerKmsKeyVersion().equals(other.getCustomerKmsKeyVersion())) return false; + if (!getCustomerKmsKeyVersion() + .equals(other.getCustomerKmsKeyVersion())) return false; break; case 0: default: @@ -435,127 +396,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.accessapproval.v1.SignatureInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.accessapproval.v1.SignatureInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.SignatureInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about the digital signature of the resource.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.SignatureInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.SignatureInfo) com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.SignatureInfo.class, - com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); + com.google.cloud.accessapproval.v1.SignatureInfo.class, com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.SignatureInfo.newBuilder() @@ -563,15 +515,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; } @java.lang.Override @@ -604,8 +557,7 @@ public com.google.cloud.accessapproval.v1.SignatureInfo build() { @java.lang.Override public com.google.cloud.accessapproval.v1.SignatureInfo buildPartial() { - com.google.cloud.accessapproval.v1.SignatureInfo result = - new com.google.cloud.accessapproval.v1.SignatureInfo(this); + com.google.cloud.accessapproval.v1.SignatureInfo result = new com.google.cloud.accessapproval.v1.SignatureInfo(this); result.signature_ = signature_; if (verificationInfoCase_ == 2) { result.verificationInfo_ = verificationInfo_; @@ -622,39 +574,38 @@ public com.google.cloud.accessapproval.v1.SignatureInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.SignatureInfo) { - return mergeFrom((com.google.cloud.accessapproval.v1.SignatureInfo) other); + return mergeFrom((com.google.cloud.accessapproval.v1.SignatureInfo)other); } else { super.mergeFrom(other); return this; @@ -662,30 +613,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.SignatureInfo other) { - if (other == com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance()) return this; if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } switch (other.getVerificationInfoCase()) { - case GOOGLE_PUBLIC_KEY_PEM: - { - verificationInfoCase_ = 2; - verificationInfo_ = other.verificationInfo_; - onChanged(); - break; - } - case CUSTOMER_KMS_KEY_VERSION: - { - verificationInfoCase_ = 3; - verificationInfo_ = other.verificationInfo_; - onChanged(); - break; - } - case VERIFICATIONINFO_NOT_SET: - { - break; - } + case GOOGLE_PUBLIC_KEY_PEM: { + verificationInfoCase_ = 2; + verificationInfo_ = other.verificationInfo_; + onChanged(); + break; + } + case CUSTOMER_KMS_KEY_VERSION: { + verificationInfoCase_ = 3; + verificationInfo_ = other.verificationInfo_; + onChanged(); + break; + } + case VERIFICATIONINFO_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -715,12 +662,12 @@ public Builder mergeFrom( } return this; } - private int verificationInfoCase_ = 0; private java.lang.Object verificationInfo_; - - public VerificationInfoCase getVerificationInfoCase() { - return VerificationInfoCase.forNumber(verificationInfoCase_); + public VerificationInfoCase + getVerificationInfoCase() { + return VerificationInfoCase.forNumber( + verificationInfoCase_); } public Builder clearVerificationInfo() { @@ -730,16 +677,14 @@ public Builder clearVerificationInfo() { return this; } + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The digital signature.
      * 
* * bytes signature = 1; - * * @return The signature. */ @java.lang.Override @@ -747,47 +692,39 @@ public com.google.protobuf.ByteString getSignature() { return signature_; } /** - * - * *
      * The digital signature.
      * 
* * bytes signature = 1; - * * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signature_ = value; onChanged(); return this; } /** - * - * *
      * The digital signature.
      * 
* * bytes signature = 1; - * * @return This builder for chaining. */ public Builder clearSignature() { - + signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } /** - * - * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -795,7 +732,6 @@ public Builder clearSignature() {
      * 
* * string google_public_key_pem = 2; - * * @return Whether the googlePublicKeyPem field is set. */ @java.lang.Override @@ -803,8 +739,6 @@ public boolean hasGooglePublicKeyPem() { return verificationInfoCase_ == 2; } /** - * - * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -812,7 +746,6 @@ public boolean hasGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; - * * @return The googlePublicKeyPem. */ @java.lang.Override @@ -822,7 +755,8 @@ public java.lang.String getGooglePublicKeyPem() { ref = verificationInfo_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 2) { verificationInfo_ = s; @@ -833,8 +767,6 @@ public java.lang.String getGooglePublicKeyPem() { } } /** - * - * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -842,18 +774,19 @@ public java.lang.String getGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; - * * @return The bytes for googlePublicKeyPem. */ @java.lang.Override - public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() { + public com.google.protobuf.ByteString + getGooglePublicKeyPemBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 2) { ref = verificationInfo_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (verificationInfoCase_ == 2) { verificationInfo_ = b; } @@ -863,8 +796,6 @@ public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() { } } /** - * - * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -872,22 +803,20 @@ public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() {
      * 
* * string google_public_key_pem = 2; - * * @param value The googlePublicKeyPem to set. * @return This builder for chaining. */ - public Builder setGooglePublicKeyPem(java.lang.String value) { + public Builder setGooglePublicKeyPem( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - verificationInfoCase_ = 2; + throw new NullPointerException(); + } + verificationInfoCase_ = 2; verificationInfo_ = value; onChanged(); return this; } /** - * - * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -895,7 +824,6 @@ public Builder setGooglePublicKeyPem(java.lang.String value) {
      * 
* * string google_public_key_pem = 2; - * * @return This builder for chaining. */ public Builder clearGooglePublicKeyPem() { @@ -907,8 +835,6 @@ public Builder clearGooglePublicKeyPem() { return this; } /** - * - * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -916,15 +842,15 @@ public Builder clearGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; - * * @param value The bytes for googlePublicKeyPem to set. * @return This builder for chaining. */ - public Builder setGooglePublicKeyPemBytes(com.google.protobuf.ByteString value) { + public Builder setGooglePublicKeyPemBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); verificationInfoCase_ = 2; verificationInfo_ = value; onChanged(); @@ -932,14 +858,11 @@ public Builder setGooglePublicKeyPemBytes(com.google.protobuf.ByteString value) } /** - * - * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; - * * @return Whether the customerKmsKeyVersion field is set. */ @java.lang.Override @@ -947,14 +870,11 @@ public boolean hasCustomerKmsKeyVersion() { return verificationInfoCase_ == 3; } /** - * - * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; - * * @return The customerKmsKeyVersion. */ @java.lang.Override @@ -964,7 +884,8 @@ public java.lang.String getCustomerKmsKeyVersion() { ref = verificationInfo_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 3) { verificationInfo_ = s; @@ -975,25 +896,24 @@ public java.lang.String getCustomerKmsKeyVersion() { } } /** - * - * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; - * * @return The bytes for customerKmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getCustomerKmsKeyVersionBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 3) { ref = verificationInfo_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (verificationInfoCase_ == 3) { verificationInfo_ = b; } @@ -1003,35 +923,30 @@ public com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes() { } } /** - * - * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; - * * @param value The customerKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCustomerKmsKeyVersion(java.lang.String value) { + public Builder setCustomerKmsKeyVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - verificationInfoCase_ = 3; + throw new NullPointerException(); + } + verificationInfoCase_ = 3; verificationInfo_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; - * * @return This builder for chaining. */ public Builder clearCustomerKmsKeyVersion() { @@ -1043,30 +958,28 @@ public Builder clearCustomerKmsKeyVersion() { return this; } /** - * - * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; - * * @param value The bytes for customerKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCustomerKmsKeyVersionBytes(com.google.protobuf.ByteString value) { + public Builder setCustomerKmsKeyVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); verificationInfoCase_ = 3; verificationInfo_ = 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); } @@ -1076,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.SignatureInfo) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.SignatureInfo) private static final com.google.cloud.accessapproval.v1.SignatureInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.SignatureInfo(); } @@ -1090,16 +1003,16 @@ public static com.google.cloud.accessapproval.v1.SignatureInfo getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignatureInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignatureInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.SignatureInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java similarity index 71% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java index 05ac5a41..d0106288 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface SignatureInfoOrBuilder - extends +public interface SignatureInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.SignatureInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The digital signature.
    * 
* * bytes signature = 1; - * * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** - * - * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -46,13 +25,10 @@ public interface SignatureInfoOrBuilder
    * 
* * string google_public_key_pem = 2; - * * @return Whether the googlePublicKeyPem field is set. */ boolean hasGooglePublicKeyPem(); /** - * - * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -60,13 +36,10 @@ public interface SignatureInfoOrBuilder
    * 
* * string google_public_key_pem = 2; - * * @return The googlePublicKeyPem. */ java.lang.String getGooglePublicKeyPem(); /** - * - * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -74,48 +47,39 @@ public interface SignatureInfoOrBuilder
    * 
* * string google_public_key_pem = 2; - * * @return The bytes for googlePublicKeyPem. */ - com.google.protobuf.ByteString getGooglePublicKeyPemBytes(); + com.google.protobuf.ByteString + getGooglePublicKeyPemBytes(); /** - * - * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; - * * @return Whether the customerKmsKeyVersion field is set. */ boolean hasCustomerKmsKeyVersion(); /** - * - * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; - * * @return The customerKmsKeyVersion. */ java.lang.String getCustomerKmsKeyVersion(); /** - * - * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; - * * @return The bytes for customerKmsKeyVersion. */ - com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes(); + com.google.protobuf.ByteString + getCustomerKmsKeyVersionBytes(); - public com.google.cloud.accessapproval.v1.SignatureInfo.VerificationInfoCase - getVerificationInfoCase(); + public com.google.cloud.accessapproval.v1.SignatureInfo.VerificationInfoCase getVerificationInfoCase(); } diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java similarity index 72% rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java index 48f107ac..26a9b91a 100644 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** - * - * *
  * Request to update access approval settings.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage} */ -public final class UpdateAccessApprovalSettingsMessage - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateAccessApprovalSettingsMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) UpdateAccessApprovalSettingsMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateAccessApprovalSettingsMessage.newBuilder() to construct. - private UpdateAccessApprovalSettingsMessage( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateAccessApprovalSettingsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAccessApprovalSettingsMessage() {} + private UpdateAccessApprovalSettingsMessage() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAccessApprovalSettingsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateAccessApprovalSettingsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,45 +52,39 @@ private UpdateAccessApprovalSettingsMessage( case 0: done = true; break; - case 10: - { - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder subBuilder = null; - if (settings_ != null) { - subBuilder = settings_.toBuilder(); - } - settings_ = - input.readMessage( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(settings_); - settings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder subBuilder = null; + if (settings_ != null) { + subBuilder = settings_.toBuilder(); + } + settings_ = input.readMessage(com.google.cloud.accessapproval.v1.AccessApprovalSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(settings_); + settings_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,39 +92,34 @@ private UpdateAccessApprovalSettingsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); } public static final int SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.accessapproval.v1.AccessApprovalSettings settings_; /** - * - * *
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * * @return Whether the settings field is set. */ @java.lang.Override @@ -156,25 +127,18 @@ public boolean hasSettings() { return settings_ != null; } /** - * - * *
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * * @return The settings. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessApprovalSettings getSettings() { - return settings_ == null - ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() - : settings_; + return settings_ == null ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() : settings_; } /** - * - * *
    * The new AccessApprovalSettings.
    * 
@@ -189,8 +153,6 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -204,7 +166,6 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -212,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -227,7 +186,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -235,8 +193,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -257,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,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 {
     if (settings_ != null) {
       output.writeMessage(1, getSettings());
     }
@@ -286,10 +242,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (settings_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSettings());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getSettings());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -299,21 +257,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.accessapproval.v1.UpdateAccessApprovalSettingsMessage)) {
       return super.equals(obj);
     }
-    com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other =
-        (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) obj;
+    com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other = (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) obj;
 
     if (hasSettings() != other.hasSettings()) return false;
     if (hasSettings()) {
-      if (!getSettings().equals(other.getSettings())) return false;
+      if (!getSettings()
+          .equals(other.getSettings())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -340,145 +299,134 @@ public int hashCode() {
   }
 
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage prototype) {
+  public static Builder newBuilder(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request to update access approval settings.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); } - // Construct using - // com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.newBuilder() + // Construct using com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,22 +446,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto - .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage - getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage - .getDefaultInstance(); + public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.getDefaultInstance(); } @java.lang.Override public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage build() { - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = - buildPartial(); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -522,8 +467,7 @@ public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage bu @java.lang.Override public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage buildPartial() { - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = - new com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage(this); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = new com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage(this); if (settingsBuilder_ == null) { result.settings_ = settings_; } else { @@ -542,51 +486,46 @@ public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) { - return mergeFrom( - (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) other); + return mergeFrom((com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other) { - if (other - == com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other) { + if (other == com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.getDefaultInstance()) return this; if (other.hasSettings()) { mergeSettings(other.getSettings()); } @@ -612,9 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -626,47 +563,34 @@ public Builder mergeFrom( private com.google.cloud.accessapproval.v1.AccessApprovalSettings settings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessApprovalSettings, - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, - com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> - settingsBuilder_; + com.google.cloud.accessapproval.v1.AccessApprovalSettings, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> settingsBuilder_; /** - * - * *
      * The new AccessApprovalSettings.
      * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** - * - * *
      * The new AccessApprovalSettings.
      * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * * @return The settings. */ public com.google.cloud.accessapproval.v1.AccessApprovalSettings getSettings() { if (settingsBuilder_ == null) { - return settings_ == null - ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() - : settings_; + return settings_ == null ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() : settings_; } else { return settingsBuilder_.getMessage(); } } /** - * - * *
      * The new AccessApprovalSettings.
      * 
@@ -687,8 +611,6 @@ public Builder setSettings(com.google.cloud.accessapproval.v1.AccessApprovalSett return this; } /** - * - * *
      * The new AccessApprovalSettings.
      * 
@@ -707,8 +629,6 @@ public Builder setSettings( return this; } /** - * - * *
      * The new AccessApprovalSettings.
      * 
@@ -719,9 +639,7 @@ public Builder mergeSettings(com.google.cloud.accessapproval.v1.AccessApprovalSe if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = - com.google.cloud.accessapproval.v1.AccessApprovalSettings.newBuilder(settings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.accessapproval.v1.AccessApprovalSettings.newBuilder(settings_).mergeFrom(value).buildPartial(); } else { settings_ = value; } @@ -733,8 +651,6 @@ public Builder mergeSettings(com.google.cloud.accessapproval.v1.AccessApprovalSe return this; } /** - * - * *
      * The new AccessApprovalSettings.
      * 
@@ -753,8 +669,6 @@ public Builder clearSettings() { return this; } /** - * - * *
      * The new AccessApprovalSettings.
      * 
@@ -762,32 +676,26 @@ public Builder clearSettings() { * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; */ public com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder getSettingsBuilder() { - + onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * The new AccessApprovalSettings.
      * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; */ - public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder - getSettingsOrBuilder() { + public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { - return settings_ == null - ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() - : settings_; + return settings_ == null ? + com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() : settings_; } } /** - * - * *
      * The new AccessApprovalSettings.
      * 
@@ -795,17 +703,14 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder getSett * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessApprovalSettings, - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, - com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> + com.google.cloud.accessapproval.v1.AccessApprovalSettings, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { - settingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessApprovalSettings, - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, - com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder>( - getSettings(), getParentForChildren(), isClean()); + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.AccessApprovalSettings, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); settings_ = null; } return settingsBuilder_; @@ -813,13 +718,8 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder getSett 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_; /** - * - * *
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -833,15 +733,12 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder getSett
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -855,21 +752,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -898,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -914,7 +804,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -925,8 +816,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -945,7 +834,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -957,8 +846,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -985,8 +872,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -1002,13 +887,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -1027,14 +910,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -1050,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1077,32 +954,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)
-  private static final com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage();
   }
 
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
-      getDefaultInstance() {
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateAccessApprovalSettingsMessage parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateAccessApprovalSettingsMessage(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateAccessApprovalSettingsMessage parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateAccessApprovalSettingsMessage(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1114,8 +989,9 @@ public com.google.protobuf.Parser getParser
   }
 
   @java.lang.Override
-  public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
-      getDefaultInstanceForType() {
+  public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
similarity index 81%
rename from proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
index a3b023ce..3b25d5f0 100644
--- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/accessapproval/v1/accessapproval.proto
 
 package com.google.cloud.accessapproval.v1;
 
-public interface UpdateAccessApprovalSettingsMessageOrBuilder
-    extends
+public interface UpdateAccessApprovalSettingsMessageOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * * @return Whether the settings field is set. */ boolean hasSettings(); /** - * - * *
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * * @return The settings. */ com.google.cloud.accessapproval.v1.AccessApprovalSettings getSettings(); /** - * - * *
    * The new AccessApprovalSettings.
    * 
@@ -59,8 +35,6 @@ public interface UpdateAccessApprovalSettingsMessageOrBuilder com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSettingsOrBuilder(); /** - * - * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -74,13 +48,10 @@ public interface UpdateAccessApprovalSettingsMessageOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -94,13 +65,10 @@ public interface UpdateAccessApprovalSettingsMessageOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
diff --git a/proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto
similarity index 100%
rename from proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto
rename to owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 00000000..2d37e0f6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.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.accessapproval.v1.samples;
+
+// [START accessapproval_v1_generated_accessapprovaladminclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
+import com.google.cloud.accessapproval.v1.AccessApprovalAdminSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  public static void syncCreateSetCredentialsProvider1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AccessApprovalAdminSettings accessApprovalAdminSettings =
+        AccessApprovalAdminSettings.newBuilder()
+            .setTransportChannelProvider(
+                AccessApprovalAdminSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    AccessApprovalAdminClient accessApprovalAdminClient =
+        AccessApprovalAdminClient.create(accessApprovalAdminSettings);
+  }
+}
+// [END accessapproval_v1_generated_accessapprovaladminclient_create_setcredentialsprovider1_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
similarity index 98%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
index 1b02cef2..ff3f2a24 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
@@ -20,6 +20,7 @@
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
 import com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteAccessApprovalSettings {
 
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
similarity index 84%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
index 3e627556..0b0356e7 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname {
 
@@ -36,5 +36,4 @@ public static void syncDeleteAccessApprovalSettingsAccessapprovalsettingsname()
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
similarity index 85%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
index b61367de..5c01bcfb 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
+import com.google.protobuf.Empty;
 
 public class SyncDeleteAccessApprovalSettingsString {
 
@@ -36,5 +36,4 @@ public static void syncDeleteAccessApprovalSettingsString() throws Exception {
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
similarity index 94%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
index ef4ba95c..9fe5acbf 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_async]
+// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount;
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
similarity index 94%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
index b7a1fd51..b4306d4c 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount;
 import com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage;
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
similarity index 86%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
index 411d218f..176c9d87 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount;
 
@@ -37,5 +36,4 @@ public static void syncGetAccessApprovalServiceAccountString() throws Exception
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
similarity index 86%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
index 8b18dabb..684a6cd7 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettings;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
@@ -37,5 +36,4 @@ public static void syncGetAccessApprovalSettingsAccessapprovalsettingsname() thr
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
similarity index 93%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
index 3ab2afff..2266189f 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_string_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_string_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettings;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
index 5a945fa6..233ea7df 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.ApprovalRequestName;
@@ -38,5 +37,4 @@ public static void syncGetApprovalRequestApprovalrequestname() throws Exception
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
similarity index 93%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
index fb9a6a3d..fd94c4ca 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_foldername_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_foldername_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.FolderName;
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
similarity index 87%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
index b729b59d..fd73aa1e 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.OrganizationName;
@@ -40,5 +39,4 @@ public static void syncListApprovalRequestsOrganizationname() throws Exception {
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
similarity index 93%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
index 0b9a2bc6..1130ee71 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_projectname_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_projectname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.ProjectName;
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
similarity index 86%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
index 5cdc4129..500f80a7 100644
--- a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START
-// accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
+// [START accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettings;
 import com.google.protobuf.FieldMask;
@@ -40,5 +39,4 @@ public static void syncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldma
     }
   }
 }
-// [END
-// accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
+// [END accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java
diff --git a/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java
similarity index 100%
rename from samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java
rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java
diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java
deleted file mode 100644
index 21ffefc9..00000000
--- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java
+++ /dev/null
@@ -1,514 +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/accessapproval/v1/accessapproval.proto
-
-package com.google.cloud.accessapproval.v1;
-
-public final class AccessApprovalProto {
-  private AccessApprovalProto() {}
-
-  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_accessapproval_v1_AccessLocations_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_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/accessapproval/v1/accessa"
-          + "pproval.proto\022\036google.cloud.accessapprov"
-          + "al.v1\032\034google/api/annotations.proto\032\027goo"
-          + "gle/api/client.proto\032\037google/api/field_b"
-          + "ehavior.proto\032\031google/api/resource.proto"
-          + "\032\033google/protobuf/empty.proto\032 google/pr"
-          + "otobuf/field_mask.proto\032\037google/protobuf"
-          + "/timestamp.proto\"`\n\017AccessLocations\022 \n\030p"
-          + "rincipal_office_country\030\001 \001(\t\022+\n#princip"
-          + "al_physical_location_country\030\002 \001(\t\"\240\002\n\014A"
-          + "ccessReason\022?\n\004type\030\001 \001(\01621.google.cloud"
-          + ".accessapproval.v1.AccessReason.Type\022\016\n\006"
-          + "detail\030\002 \001(\t\"\276\001\n\004Type\022\024\n\020TYPE_UNSPECIFIE"
-          + "D\020\000\022\036\n\032CUSTOMER_INITIATED_SUPPORT\020\001\022\034\n\030G"
-          + "OOGLE_INITIATED_SERVICE\020\002\022\033\n\027GOOGLE_INIT"
-          + "IATED_REVIEW\020\003\022\034\n\030THIRD_PARTY_DATA_REQUE"
-          + "ST\020\004\022\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_AL"
-          + "ERT\020\005\"|\n\rSignatureInfo\022\021\n\tsignature\030\001 \001("
-          + "\014\022\037\n\025google_public_key_pem\030\002 \001(\tH\000\022\"\n\030cu"
-          + "stomer_kms_key_version\030\003 \001(\tH\000B\023\n\021verifi"
-          + "cation_info\"\207\002\n\017ApproveDecision\0220\n\014appro"
-          + "ve_time\030\001 \001(\0132\032.google.protobuf.Timestam"
-          + "p\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf"
-          + ".Timestamp\0223\n\017invalidate_time\030\003 \001(\0132\032.go"
-          + "ogle.protobuf.Timestamp\022E\n\016signature_inf"
-          + "o\030\004 \001(\0132-.google.cloud.accessapproval.v1"
-          + ".SignatureInfo\022\025\n\rauto_approved\030\005 \001(\010\"U\n"
-          + "\017DismissDecision\0220\n\014dismiss_time\030\001 \001(\0132\032"
-          + ".google.protobuf.Timestamp\022\020\n\010implicit\030\002"
-          + " \001(\010\"2\n\022ResourceProperties\022\034\n\024excludes_d"
-          + "escendants\030\001 \001(\010\"\227\006\n\017ApprovalRequest\022\014\n\004"
-          + "name\030\001 \001(\t\022\037\n\027requested_resource_name\030\002 "
-          + "\001(\t\022Y\n\035requested_resource_properties\030\t \001"
-          + "(\01322.google.cloud.accessapproval.v1.Reso"
-          + "urceProperties\022F\n\020requested_reason\030\003 \001(\013"
-          + "2,.google.cloud.accessapproval.v1.Access"
-          + "Reason\022L\n\023requested_locations\030\004 \001(\0132/.go"
-          + "ogle.cloud.accessapproval.v1.AccessLocat"
-          + "ions\0220\n\014request_time\030\005 \001(\0132\032.google.prot"
-          + "obuf.Timestamp\0228\n\024requested_expiration\030\006"
-          + " \001(\0132\032.google.protobuf.Timestamp\022B\n\007appr"
-          + "ove\030\007 \001(\0132/.google.cloud.accessapproval."
-          + "v1.ApproveDecisionH\000\022B\n\007dismiss\030\010 \001(\0132/."
-          + "google.cloud.accessapproval.v1.DismissDe"
-          + "cisionH\000:\343\001\352A\337\001\n-accessapproval.googleap"
-          + "is.com/ApprovalRequest\0226projects/{projec"
-          + "t}/approvalRequests/{approval_request}\0224"
-          + "folders/{folder}/approvalRequests/{appro"
-          + "val_request}\022@organizations/{organizatio"
-          + "n}/approvalRequests/{approval_request}B\n"
-          + "\n\010decision\"s\n\017EnrolledService\022\025\n\rcloud_p"
-          + "roduct\030\001 \001(\t\022I\n\020enrollment_level\030\002 \001(\0162/"
-          + ".google.cloud.accessapproval.v1.Enrollme"
-          + "ntLevel\"\234\004\n\026AccessApprovalSettings\022G\n\004na"
-          + "me\030\001 \001(\tB9\372A6\n4accessapproval.googleapis"
-          + ".com/AccessApprovalSettings\022\033\n\023notificat"
-          + "ion_emails\030\002 \003(\t\022J\n\021enrolled_services\030\003 "
-          + "\003(\0132/.google.cloud.accessapproval.v1.Enr"
-          + "olledService\022\036\n\021enrolled_ancestor\030\004 \001(\010B"
-          + "\003\340A\003\022\032\n\022active_key_version\030\006 \001(\t\022,\n\037ance"
-          + "stor_has_active_key_version\030\007 \001(\010B\003\340A\003\022 "
-          + "\n\023invalid_key_version\030\010 \001(\010B\003\340A\003:\303\001\352A\277\001\n"
-          + "4accessapproval.googleapis.com/AccessApp"
-          + "rovalSettings\022)projects/{project}/access"
-          + "ApprovalSettings\022\'folders/{folder}/acces"
-          + "sApprovalSettings\0223organizations/{organi"
-          + "zation}/accessApprovalSettings\"\270\002\n\034Acces"
-          + "sApprovalServiceAccount\022M\n\004name\030\001 \001(\tB?\372"
-          + "A<\n:accessapproval.googleapis.com/Access"
-          + "ApprovalServiceAccount\022\025\n\raccount_email\030"
-          + "\002 \001(\t:\261\001\352A\255\001\n:accessapproval.googleapis."
-          + "com/AccessApprovalServiceAccount\022!projec"
-          + "ts/{project}/serviceAccount\022\037folders/{fo"
-          + "lder}/serviceAccount\022+organizations/{org"
-          + "anization}/serviceAccount\"\230\001\n\033ListApprov"
-          + "alRequestsMessage\022B\n\006parent\030\001 \001(\tB2\372A/\022-"
-          + "accessapproval.googleapis.com/ApprovalRe"
-          + "quest\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005"
-          + "\022\022\n\npage_token\030\004 \001(\t\"\203\001\n\034ListApprovalReq"
-          + "uestsResponse\022J\n\021approval_requests\030\001 \003(\013"
-          + "2/.google.cloud.accessapproval.v1.Approv"
-          + "alRequest\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Ge"
-          + "tApprovalRequestMessage\022@\n\004name\030\001 \001(\tB2\372"
-          + "A/\n-accessapproval.googleapis.com/Approv"
-          + "alRequest\"\222\001\n\035ApproveApprovalRequestMess"
-          + "age\022@\n\004name\030\001 \001(\tB2\372A/\n-accessapproval.g"
-          + "oogleapis.com/ApprovalRequest\022/\n\013expire_"
-          + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"a"
-          + "\n\035DismissApprovalRequestMessage\022@\n\004name\030"
-          + "\001 \001(\tB2\372A/\n-accessapproval.googleapis.co"
-          + "m/ApprovalRequest\"d\n InvalidateApprovalR"
-          + "equestMessage\022@\n\004name\030\001 \001(\tB2\372A/\n-access"
-          + "approval.googleapis.com/ApprovalRequest\""
-          + "k\n GetAccessApprovalSettingsMessage\022G\n\004n"
-          + "ame\030\001 \001(\tB9\372A6\n4accessapproval.googleapi"
-          + "s.com/AccessApprovalSettings\"\240\001\n#UpdateA"
-          + "ccessApprovalSettingsMessage\022H\n\010settings"
-          + "\030\001 \001(\01326.google.cloud.accessapproval.v1."
-          + "AccessApprovalSettings\022/\n\013update_mask\030\002 "
-          + "\001(\0132\032.google.protobuf.FieldMask\"n\n#Delet"
-          + "eAccessApprovalSettingsMessage\022G\n\004name\030\001"
-          + " \001(\tB9\372A6\n4accessapproval.googleapis.com"
-          + "/AccessApprovalSettings\"6\n&GetAccessAppr"
-          + "ovalServiceAccountMessage\022\014\n\004name\030\001 \001(\t*"
-          + "B\n\017EnrollmentLevel\022 \n\034ENROLLMENT_LEVEL_U"
-          + "NSPECIFIED\020\000\022\r\n\tBLOCK_ALL\020\0012\207\027\n\016AccessAp"
-          + "proval\022\252\002\n\024ListApprovalRequests\022;.google"
-          + ".cloud.accessapproval.v1.ListApprovalReq"
-          + "uestsMessage\032<.google.cloud.accessapprov"
-          + "al.v1.ListApprovalRequestsResponse\"\226\001\202\323\344"
-          + "\223\002\206\001\022(/v1/{parent=projects/*}/approvalRe"
-          + "questsZ)\022\'/v1/{parent=folders/*}/approva"
-          + "lRequestsZ/\022-/v1/{parent=organizations/*"
-          + "}/approvalRequests\332A\006parent\022\227\002\n\022GetAppro"
-          + "valRequest\0229.google.cloud.accessapproval"
-          + ".v1.GetApprovalRequestMessage\032/.google.c"
-          + "loud.accessapproval.v1.ApprovalRequest\"\224"
-          + "\001\202\323\344\223\002\206\001\022(/v1/{name=projects/*/approvalR"
-          + "equests/*}Z)\022\'/v1/{name=folders/*/approv"
-          + "alRequests/*}Z/\022-/v1/{name=organizations"
-          + "/*/approvalRequests/*}\332A\004name\022\271\002\n\026Approv"
-          + "eApprovalRequest\022=.google.cloud.accessap"
-          + "proval.v1.ApproveApprovalRequestMessage\032"
-          + "/.google.cloud.accessapproval.v1.Approva"
-          + "lRequest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*"
-          + "/approvalRequests/*}:approve:\001*Z4\"//v1/{"
-          + "name=folders/*/approvalRequests/*}:appro"
-          + "ve:\001*Z:\"5/v1/{name=organizations/*/appro"
-          + "valRequests/*}:approve:\001*\022\271\002\n\026DismissApp"
-          + "rovalRequest\022=.google.cloud.accessapprov"
-          + "al.v1.DismissApprovalRequestMessage\032/.go"
-          + "ogle.cloud.accessapproval.v1.ApprovalReq"
-          + "uest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*/app"
-          + "rovalRequests/*}:dismiss:\001*Z4\"//v1/{name"
-          + "=folders/*/approvalRequests/*}:dismiss:\001"
-          + "*Z:\"5/v1/{name=organizations/*/approvalR"
-          + "equests/*}:dismiss:\001*\022\310\002\n\031InvalidateAppr"
-          + "ovalRequest\022@.google.cloud.accessapprova"
-          + "l.v1.InvalidateApprovalRequestMessage\032/."
-          + "google.cloud.accessapproval.v1.ApprovalR"
-          + "equest\"\267\001\202\323\344\223\002\260\001\"3/v1/{name=projects/*/a"
-          + "pprovalRequests/*}:invalidate:\001*Z7\"2/v1/"
-          + "{name=folders/*/approvalRequests/*}:inva"
-          + "lidate:\001*Z=\"8/v1/{name=organizations/*/a"
-          + "pprovalRequests/*}:invalidate:\001*\022\270\002\n\031Get"
-          + "AccessApprovalSettings\022@.google.cloud.ac"
-          + "cessapproval.v1.GetAccessApprovalSetting"
-          + "sMessage\0326.google.cloud.accessapproval.v"
-          + "1.AccessApprovalSettings\"\240\001\202\323\344\223\002\222\001\022,/v1/"
-          + "{name=projects/*/accessApprovalSettings}"
-          + "Z-\022+/v1/{name=folders/*/accessApprovalSe"
-          + "ttings}Z3\0221/v1/{name=organizations/*/acc"
-          + "essApprovalSettings}\332A\004name\022\207\003\n\034UpdateAc"
-          + "cessApprovalSettings\022C.google.cloud.acce"
-          + "ssapproval.v1.UpdateAccessApprovalSettin"
-          + "gsMessage\0326.google.cloud.accessapproval."
-          + "v1.AccessApprovalSettings\"\351\001\202\323\344\223\002\313\00125/v1"
-          + "/{settings.name=projects/*/accessApprova"
-          + "lSettings}:\010settingsZ@24/v1/{settings.na"
-          + "me=folders/*/accessApprovalSettings}:\010se"
-          + "ttingsZF2:/v1/{settings.name=organizatio"
-          + "ns/*/accessApprovalSettings}:\010settings\332A"
-          + "\024settings,update_mask\022\236\002\n\034DeleteAccessAp"
-          + "provalSettings\022C.google.cloud.accessappr"
-          + "oval.v1.DeleteAccessApprovalSettingsMess"
-          + "age\032\026.google.protobuf.Empty\"\240\001\202\323\344\223\002\222\001*,/"
-          + "v1/{name=projects/*/accessApprovalSettin"
-          + "gs}Z-*+/v1/{name=folders/*/accessApprova"
-          + "lSettings}Z3*1/v1/{name=organizations/*/"
-          + "accessApprovalSettings}\332A\004name\022\261\002\n\037GetAc"
-          + "cessApprovalServiceAccount\022F.google.clou"
-          + "d.accessapproval.v1.GetAccessApprovalSer"
-          + "viceAccountMessage\032<.google.cloud.access"
-          + "approval.v1.AccessApprovalServiceAccount"
-          + "\"\207\001\202\323\344\223\002z\022$/v1/{name=projects/*/serviceA"
-          + "ccount}Z%\022#/v1/{name=folders/*/serviceAc"
-          + "count}Z+\022)/v1/{name=organizations/*/serv"
-          + "iceAccount}\332A\004name\032Q\312A\035accessapproval.go"
-          + "ogleapis.com\322A.https://www.googleapis.co"
-          + "m/auth/cloud-platformB\357\001\n\"com.google.clo"
-          + "ud.accessapproval.v1B\023AccessApprovalProt"
-          + "oP\001ZLgoogle.golang.org/genproto/googleap"
-          + "is/cloud/accessapproval/v1;accessapprova"
-          + "l\252\002\036Google.Cloud.AccessApproval.V1\312\002\036Goo"
-          + "gle\\Cloud\\AccessApproval\\V1\352\002!Google::Cl"
-          + "oud::AccessApproval::V1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.api.ClientProto.getDescriptor(),
-              com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.protobuf.EmptyProto.getDescriptor(),
-              com.google.protobuf.FieldMaskProto.getDescriptor(),
-              com.google.protobuf.TimestampProto.getDescriptor(),
-            });
-    internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor,
-            new java.lang.String[] {
-              "PrincipalOfficeCountry", "PrincipalPhysicalLocationCountry",
-            });
-    internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor,
-            new java.lang.String[] {
-              "Type", "Detail",
-            });
-    internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor,
-            new java.lang.String[] {
-              "Signature", "GooglePublicKeyPem", "CustomerKmsKeyVersion", "VerificationInfo",
-            });
-    internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor,
-            new java.lang.String[] {
-              "ApproveTime", "ExpireTime", "InvalidateTime", "SignatureInfo", "AutoApproved",
-            });
-    internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor,
-            new java.lang.String[] {
-              "DismissTime", "Implicit",
-            });
-    internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor,
-            new java.lang.String[] {
-              "ExcludesDescendants",
-            });
-    internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "RequestedResourceName",
-              "RequestedResourceProperties",
-              "RequestedReason",
-              "RequestedLocations",
-              "RequestTime",
-              "RequestedExpiration",
-              "Approve",
-              "Dismiss",
-              "Decision",
-            });
-    internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor =
-        getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor,
-            new java.lang.String[] {
-              "CloudProduct", "EnrollmentLevel",
-            });
-    internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor =
-        getDescriptor().getMessageTypes().get(8);
-    internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "NotificationEmails",
-              "EnrolledServices",
-              "EnrolledAncestor",
-              "ActiveKeyVersion",
-              "AncestorHasActiveKeyVersion",
-              "InvalidKeyVersion",
-            });
-    internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor =
-        getDescriptor().getMessageTypes().get(9);
-    internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor,
-            new java.lang.String[] {
-              "Name", "AccountEmail",
-            });
-    internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor =
-        getDescriptor().getMessageTypes().get(10);
-    internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor,
-            new java.lang.String[] {
-              "Parent", "Filter", "PageSize", "PageToken",
-            });
-    internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor =
-        getDescriptor().getMessageTypes().get(11);
-    internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor,
-            new java.lang.String[] {
-              "ApprovalRequests", "NextPageToken",
-            });
-    internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor =
-        getDescriptor().getMessageTypes().get(12);
-    internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor =
-        getDescriptor().getMessageTypes().get(13);
-    internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor,
-            new java.lang.String[] {
-              "Name", "ExpireTime",
-            });
-    internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor =
-        getDescriptor().getMessageTypes().get(14);
-    internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor =
-        getDescriptor().getMessageTypes().get(15);
-    internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor =
-        getDescriptor().getMessageTypes().get(16);
-    internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor =
-        getDescriptor().getMessageTypes().get(17);
-    internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor,
-            new java.lang.String[] {
-              "Settings", "UpdateMask",
-            });
-    internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor =
-        getDescriptor().getMessageTypes().get(18);
-    internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor =
-        getDescriptor().getMessageTypes().get(19);
-    internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ClientProto.defaultHost);
-    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
-    registry.add(com.google.api.AnnotationsProto.http);
-    registry.add(com.google.api.ClientProto.methodSignature);
-    registry.add(com.google.api.ClientProto.oauthScopes);
-    registry.add(com.google.api.ResourceProto.resource);
-    registry.add(com.google.api.ResourceProto.resourceReference);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.api.ClientProto.getDescriptor();
-    com.google.api.FieldBehaviorProto.getDescriptor();
-    com.google.api.ResourceProto.getDescriptor();
-    com.google.protobuf.EmptyProto.getDescriptor();
-    com.google.protobuf.FieldMaskProto.getDescriptor();
-    com.google.protobuf.TimestampProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java
deleted file mode 100644
index f4dce922..00000000
--- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/accessapproval/v1/accessapproval.proto
-
-package com.google.cloud.accessapproval.v1;
-
-public interface DismissApprovalRequestMessageOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DismissApprovalRequestMessage)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Name of the ApprovalRequest to dismiss.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the ApprovalRequest to dismiss.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java deleted file mode 100644 index 18ec6266..00000000 --- a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java +++ /dev/null @@ -1,39 +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/accessapproval/v1/accessapproval.proto - -package com.google.cloud.accessapproval.v1; - -public interface ResourcePropertiesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ResourceProperties) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether an approval will exclude the descendants of the resource being
-   * requested.
-   * 
- * - * bool excludes_descendants = 1; - * - * @return The excludesDescendants. - */ - boolean getExcludesDescendants(); -} From 54a428d1996fa8ad1d44da162ee74f4dd8c63e70 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:10:53 +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 --- .../v1/AccessApprovalAdminClient.java | 24 +- .../v1/AccessApprovalAdminSettings.java | 13 +- .../accessapproval/v1/gapic_metadata.json | 0 .../cloud/accessapproval/v1/package-info.java | 0 .../v1/stub/AccessApprovalStub.java | 0 .../v1/stub/AccessApprovalStubSettings.java | 24 +- .../GrpcAccessApprovalCallableFactory.java | 0 .../v1/stub/GrpcAccessApprovalStub.java | 1 - ...HttpJsonAccessApprovalCallableFactory.java | 0 .../v1/stub/HttpJsonAccessApprovalStub.java | 0 ...AccessApprovalAdminClientHttpJsonTest.java | 0 .../v1/AccessApprovalAdminClientTest.java | 0 .../accessapproval/v1/MockAccessApproval.java | 0 .../v1/MockAccessApprovalImpl.java | 0 .../accessapproval/v1/AccessApprovalGrpc.java | 1593 +++++++++++++++++ .../accessapproval/v1/AccessApprovalGrpc.java | 1209 ------------- .../v1/AccessApprovalProto.java | 465 ----- ...ismissApprovalRequestMessageOrBuilder.java | 29 - .../v1/ResourcePropertiesOrBuilder.java | 20 - .../v1/AccessApprovalProto.java | 514 ++++++ .../v1/AccessApprovalServiceAccount.java | 414 +++-- ...AccessApprovalServiceAccountOrBuilder.java | 36 +- .../v1/AccessApprovalSettings.java | 765 +++++--- .../v1/AccessApprovalSettingsName.java | 0 .../v1/AccessApprovalSettingsOrBuilder.java | 81 +- .../accessapproval/v1/AccessLocations.java | 401 +++-- .../v1/AccessLocationsOrBuilder.java | 36 +- .../cloud/accessapproval/v1/AccessReason.java | 463 +++-- .../v1/AccessReasonOrBuilder.java | 33 +- .../accessapproval/v1/ApprovalRequest.java | 1217 ++++++++----- .../v1/ApprovalRequestName.java | 0 .../v1/ApprovalRequestOrBuilder.java | 104 +- .../v1/ApproveApprovalRequestMessage.java | 429 +++-- ...pproveApprovalRequestMessageOrBuilder.java | 35 +- .../accessapproval/v1/ApproveDecision.java | 666 ++++--- .../v1/ApproveDecisionOrBuilder.java | 53 +- .../DeleteAccessApprovalSettingsMessage.java | 354 ++-- ...ccessApprovalSettingsMessageOrBuilder.java | 27 +- .../v1/DismissApprovalRequestMessage.java | 335 ++-- ...ismissApprovalRequestMessageOrBuilder.java | 50 + .../accessapproval/v1/DismissDecision.java | 368 ++-- .../v1/DismissDecisionOrBuilder.java | 29 +- .../accessapproval/v1/EnrolledService.java | 383 ++-- .../v1/EnrolledServiceOrBuilder.java | 33 +- .../accessapproval/v1/EnrollmentLevel.java | 79 +- .../cloud/accessapproval/v1/FolderName.java | 0 ...etAccessApprovalServiceAccountMessage.java | 371 ++-- ...pprovalServiceAccountMessageOrBuilder.java | 27 +- .../v1/GetAccessApprovalSettingsMessage.java | 350 ++-- ...ccessApprovalSettingsMessageOrBuilder.java | 27 +- .../v1/GetApprovalRequestMessage.java | 321 ++-- .../GetApprovalRequestMessageOrBuilder.java | 27 +- .../v1/InvalidateApprovalRequestMessage.java | 350 ++-- ...lidateApprovalRequestMessageOrBuilder.java | 27 +- .../v1/ListApprovalRequestsMessage.java | 526 +++--- .../ListApprovalRequestsMessageOrBuilder.java | 48 +- .../v1/ListApprovalRequestsResponse.java | 471 +++-- ...ListApprovalRequestsResponseOrBuilder.java | 42 +- .../accessapproval/v1/OrganizationName.java | 0 .../cloud/accessapproval/v1/ProjectName.java | 0 .../accessapproval/v1/ResourceProperties.java | 275 +-- .../v1/ResourcePropertiesOrBuilder.java | 39 + .../accessapproval/v1/SignatureInfo.java | 497 ++--- .../v1/SignatureInfoOrBuilder.java | 48 +- .../UpdateAccessApprovalSettingsMessage.java | 476 +++-- ...ccessApprovalSettingsMessageOrBuilder.java | 34 +- .../accessapproval/v1/accessapproval.proto | 0 .../AsyncApproveApprovalRequest.java | 0 .../SyncApproveApprovalRequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncDeleteAccessApprovalSettings.java | 0 .../SyncDeleteAccessApprovalSettings.java | 1 - ...valSettingsAccessapprovalsettingsname.java | 7 +- ...yncDeleteAccessApprovalSettingsString.java | 7 +- .../AsyncDismissApprovalRequest.java | 0 .../SyncDismissApprovalRequest.java | 0 .../AsyncGetAccessApprovalServiceAccount.java | 3 +- .../SyncGetAccessApprovalServiceAccount.java | 3 +- ...GetAccessApprovalServiceAccountString.java | 6 +- .../AsyncGetAccessApprovalSettings.java | 0 .../SyncGetAccessApprovalSettings.java | 0 ...valSettingsAccessapprovalsettingsname.java | 6 +- .../SyncGetAccessApprovalSettingsString.java | 3 +- .../AsyncGetApprovalRequest.java | 0 .../SyncGetApprovalRequest.java | 0 ...GetApprovalRequestApprovalrequestname.java | 6 +- .../SyncGetApprovalRequestString.java | 0 .../AsyncInvalidateApprovalRequest.java | 0 .../SyncInvalidateApprovalRequest.java | 0 .../AsyncListApprovalRequests.java | 0 .../AsyncListApprovalRequestsPaged.java | 0 .../SyncListApprovalRequests.java | 0 .../SyncListApprovalRequestsFoldername.java | 3 +- ...cListApprovalRequestsOrganizationname.java | 6 +- .../SyncListApprovalRequestsProjectname.java | 3 +- .../SyncListApprovalRequestsString.java | 0 .../AsyncUpdateAccessApprovalSettings.java | 0 .../SyncUpdateAccessApprovalSettings.java | 0 ...ttingsAccessapprovalsettingsFieldmask.java | 6 +- .../SyncGetApprovalRequest.java | 0 .../SyncGetApprovalRequest.java | 0 103 files changed, 8713 insertions(+), 5586 deletions(-) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java (98%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java (99%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java (100%) rename {owl-bot-staging/v1/google-cloud-accessapproval => google-cloud-accessapproval}/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java (100%) create mode 100644 grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java create mode 100644 proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java (89%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java (67%) create mode 100644 proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java (69%) create mode 100644 proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-accessapproval-v1 => proto-google-cloud-accessapproval-v1}/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java (84%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java (85%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java index 57c8c169..88dbfd23 100644 --- a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java +++ b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java @@ -87,13 +87,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. 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. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. 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. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. 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. *
* @@ -1164,8 +1164,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListApprovalRequestsPagedResponse extends AbstractPagedListResponse< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, ApprovalRequest, - ListApprovalRequestsPage, ListApprovalRequestsFixedSizeCollection> { + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, + ApprovalRequest, + ListApprovalRequestsPage, + ListApprovalRequestsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1186,7 +1189,9 @@ private ListApprovalRequestsPagedResponse(ListApprovalRequestsPage page) { public static class ListApprovalRequestsPage extends AbstractPage< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, ApprovalRequest, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, + ApprovalRequest, ListApprovalRequestsPage> { private ListApprovalRequestsPage( @@ -1219,8 +1224,11 @@ public ApiFuture createPageAsync( public static class ListApprovalRequestsFixedSizeCollection extends AbstractFixedSizeCollection< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, ApprovalRequest, - ListApprovalRequestsPage, ListApprovalRequestsFixedSizeCollection> { + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, + ApprovalRequest, + ListApprovalRequestsPage, + ListApprovalRequestsFixedSizeCollection> { private ListApprovalRequestsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java index f908d7e5..8bd2bb08 100644 --- a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java +++ b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.accessapproval.v1.stub.AccessApprovalStubSettings; @@ -44,10 +43,10 @@ *

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

    - *
  • The default service address (accessapproval.googleapis.com) and default port (443) are + *
  • The default service address (accessapproval.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. + *
  • 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 @@ -78,7 +77,8 @@ public class AccessApprovalAdminSettings extends ClientSettings listApprovalRequestsSettings() { return ((AccessApprovalStubSettings) getStubSettings()).listApprovalRequestsSettings(); @@ -250,7 +250,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listApprovalRequests. */ public PagedCallSettings.Builder< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings() { return getStubSettingsBuilder().listApprovalRequestsSettings(); diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStub.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java index bb81cb78..c88f92a8 100644 --- a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java +++ b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java @@ -73,10 +73,10 @@ *

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

    - *
  • The default service address (accessapproval.googleapis.com) and default port (443) are + *
  • The default service address (accessapproval.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. + *
  • 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 @@ -109,7 +109,8 @@ public class AccessApprovalStubSettings extends StubSettingsbuilder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings; private final UnaryCallSettings @@ -172,11 +173,13 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> LIST_APPROVAL_REQUESTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -195,7 +198,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listApprovalRequests. */ public PagedCallSettings< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings() { return listApprovalRequestsSettings; @@ -373,7 +377,8 @@ protected AccessApprovalStubSettings(Builder settingsBuilder) throws IOException public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings; private final UnaryCallSettings.Builder @@ -592,7 +597,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listApprovalRequests. */ public PagedCallSettings.Builder< - ListApprovalRequestsMessage, ListApprovalRequestsResponse, + ListApprovalRequestsMessage, + ListApprovalRequestsResponse, ListApprovalRequestsPagedResponse> listApprovalRequestsSettings() { return listApprovalRequestsSettings; diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java index a2210a5f..3b3da7bb 100644 --- a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java +++ b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java @@ -43,7 +43,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/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java b/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java rename to google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java b/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java rename to google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java b/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java rename to google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java b/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java rename to google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApproval.java diff --git a/owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java b/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java rename to google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/MockAccessApprovalImpl.java diff --git a/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java b/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java new file mode 100644 index 00000000..a35c0204 --- /dev/null +++ b/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java @@ -0,0 +1,1593 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.accessapproval.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * This API allows a customer to manage accesses to cloud resources by
+ * Google personnel. It defines the following resource model:
+ * - The API has a collection of
+ *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+ *   resources, named `approvalRequests/{approval_request}`
+ * - The API has top-level settings per Project/Folder/Organization, named
+ *   `accessApprovalSettings`
+ * The service also periodically emails a list of recipients, defined at the
+ * Project/Folder/Organization level in the accessApprovalSettings, when there
+ * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+ * also optionally be published to a Pub/Sub topic owned by the customer
+ * (contact support if you would like to enable Pub/Sub notifications).
+ * ApprovalRequests can be approved or dismissed. Google personnel can only
+ * access the indicated resource or resources if the request is approved
+ * (subject to some exclusions:
+ * https://cloud.google.com/access-approval/docs/overview#exclusions).
+ * Note: Using Access Approval functionality will mean that Google may not be
+ * able to meet the SLAs for your chosen products, as any support response times
+ * may be dramatically increased. As such the SLAs do not apply to any service
+ * disruption to the extent impacted by Customer's use of Access Approval. Do
+ * not enable Access Approval for projects where you may require high service
+ * availability and rapid response by Google Cloud Support.
+ * After a request is approved or dismissed, no further action may be taken on
+ * it. Requests with the requested_expiration in the past or with no activity
+ * for 14 days are considered dismissed. When an approval expires, the request
+ * is considered dismissed.
+ * If a request is not approved or dismissed, we call it pending.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/accessapproval/v1/accessapproval.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AccessApprovalGrpc { + + private AccessApprovalGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.accessapproval.v1.AccessApproval"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> + getListApprovalRequestsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApprovalRequests", + requestType = com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, + responseType = com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> + getListApprovalRequestsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> + getListApprovalRequestsMethod; + if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) + == null) { + AccessApprovalGrpc.getListApprovalRequestsMethod = + getListApprovalRequestsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListApprovalRequests")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier("ListApprovalRequests")) + .build(); + } + } + } + return getListApprovalRequestsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getGetApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getGetApprovalRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getGetApprovalRequestMethod; + if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) + == null) { + AccessApprovalGrpc.getGetApprovalRequestMethod = + getGetApprovalRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier("GetApprovalRequest")) + .build(); + } + } + } + return getGetApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getApproveApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getApproveApprovalRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getApproveApprovalRequestMethod; + if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) + == null) { + AccessApprovalGrpc.getApproveApprovalRequestMethod = + getApproveApprovalRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ApproveApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier("ApproveApprovalRequest")) + .build(); + } + } + } + return getApproveApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getDismissApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DismissApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getDismissApprovalRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getDismissApprovalRequestMethod; + if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) + == null) { + AccessApprovalGrpc.getDismissApprovalRequestMethod = + getDismissApprovalRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DismissApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier("DismissApprovalRequest")) + .build(); + } + } + } + return getDismissApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getInvalidateApprovalRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InvalidateApprovalRequest", + requestType = com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, + responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getInvalidateApprovalRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest> + getInvalidateApprovalRequestMethod; + if ((getInvalidateApprovalRequestMethod = AccessApprovalGrpc.getInvalidateApprovalRequestMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getInvalidateApprovalRequestMethod = + AccessApprovalGrpc.getInvalidateApprovalRequestMethod) + == null) { + AccessApprovalGrpc.getInvalidateApprovalRequestMethod = + getInvalidateApprovalRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "InvalidateApprovalRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.ApprovalRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier("InvalidateApprovalRequest")) + .build(); + } + } + } + return getInvalidateApprovalRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getGetAccessApprovalSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalSettings", + requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, + responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getGetAccessApprovalSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getGetAccessApprovalSettingsMethod; + if ((getGetAccessApprovalSettingsMethod = AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getGetAccessApprovalSettingsMethod = + AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) + == null) { + AccessApprovalGrpc.getGetAccessApprovalSettingsMethod = + getGetAccessApprovalSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAccessApprovalSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.AccessApprovalSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier("GetAccessApprovalSettings")) + .build(); + } + } + } + return getGetAccessApprovalSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getUpdateAccessApprovalSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccessApprovalSettings", + requestType = com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, + responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getUpdateAccessApprovalSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getUpdateAccessApprovalSettingsMethod; + if ((getUpdateAccessApprovalSettingsMethod = + AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getUpdateAccessApprovalSettingsMethod = + AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) + == null) { + AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod = + getUpdateAccessApprovalSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAccessApprovalSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.AccessApprovalSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier( + "UpdateAccessApprovalSettings")) + .build(); + } + } + } + return getUpdateAccessApprovalSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, + com.google.protobuf.Empty> + getDeleteAccessApprovalSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccessApprovalSettings", + requestType = com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, + com.google.protobuf.Empty> + getDeleteAccessApprovalSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, + com.google.protobuf.Empty> + getDeleteAccessApprovalSettingsMethod; + if ((getDeleteAccessApprovalSettingsMethod = + AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getDeleteAccessApprovalSettingsMethod = + AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) + == null) { + AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod = + getDeleteAccessApprovalSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAccessApprovalSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier( + "DeleteAccessApprovalSettings")) + .build(); + } + } + } + return getDeleteAccessApprovalSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> + getGetAccessApprovalServiceAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalServiceAccount", + requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, + responseType = com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> + getGetAccessApprovalServiceAccountMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> + getGetAccessApprovalServiceAccountMethod; + if ((getGetAccessApprovalServiceAccountMethod = + AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) + == null) { + synchronized (AccessApprovalGrpc.class) { + if ((getGetAccessApprovalServiceAccountMethod = + AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) + == null) { + AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod = + getGetAccessApprovalServiceAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAccessApprovalServiceAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1 + .GetAccessApprovalServiceAccountMessage.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessApprovalMethodDescriptorSupplier( + "GetAccessApprovalServiceAccount")) + .build(); + } + } + } + return getGetAccessApprovalServiceAccountMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AccessApprovalStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessApprovalStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalStub(channel, callOptions); + } + }; + return AccessApprovalStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AccessApprovalBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessApprovalBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalBlockingStub(channel, callOptions); + } + }; + return AccessApprovalBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AccessApprovalFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessApprovalFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalFutureStub(channel, callOptions); + } + }; + return AccessApprovalFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public abstract static class AccessApprovalImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public void listApprovalRequests( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListApprovalRequestsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public void getApprovalRequest( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetApprovalRequestMethod(), responseObserver); + } + + /** + * + * + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public void approveApprovalRequest( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveApprovalRequestMethod(), responseObserver); + } + + /** + * + * + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public void dismissApprovalRequest( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDismissApprovalRequestMethod(), responseObserver); + } + + /** + * + * + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public void invalidateApprovalRequest( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInvalidateApprovalRequestMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public void getAccessApprovalSettings( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessApprovalSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public void updateAccessApprovalSettings( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccessApprovalSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public void deleteAccessApprovalSettings( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccessApprovalSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public void getAccessApprovalServiceAccount( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessApprovalServiceAccountMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListApprovalRequestsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse>( + this, METHODID_LIST_APPROVAL_REQUESTS))) + .addMethod( + getGetApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_GET_APPROVAL_REQUEST))) + .addMethod( + getApproveApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_APPROVE_APPROVAL_REQUEST))) + .addMethod( + getDismissApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_DISMISS_APPROVAL_REQUEST))) + .addMethod( + getInvalidateApprovalRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, + com.google.cloud.accessapproval.v1.ApprovalRequest>( + this, METHODID_INVALIDATE_APPROVAL_REQUEST))) + .addMethod( + getGetAccessApprovalSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings>( + this, METHODID_GET_ACCESS_APPROVAL_SETTINGS))) + .addMethod( + getUpdateAccessApprovalSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, + com.google.cloud.accessapproval.v1.AccessApprovalSettings>( + this, METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS))) + .addMethod( + getDeleteAccessApprovalSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, + com.google.protobuf.Empty>(this, METHODID_DELETE_ACCESS_APPROVAL_SETTINGS))) + .addMethod( + getGetAccessApprovalServiceAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount>( + this, METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT))) + .build(); + } + } + + /** + * + * + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static final class AccessApprovalStub + extends io.grpc.stub.AbstractAsyncStub { + private AccessApprovalStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessApprovalStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public void listApprovalRequests( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public void getApprovalRequest( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public void approveApprovalRequest( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public void dismissApprovalRequest( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public void invalidateApprovalRequest( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public void getAccessApprovalSettings( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public void updateAccessApprovalSettings( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public void deleteAccessApprovalSettings( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public void getAccessApprovalServiceAccount( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static final class AccessApprovalBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AccessApprovalBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessApprovalBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse listApprovalRequests( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApprovalRequestsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequest( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApprovalRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest approveApprovalRequest( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveApprovalRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest dismissApprovalRequest( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDismissApprovalRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.ApprovalRequest invalidateApprovalRequest( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getInvalidateApprovalRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.AccessApprovalSettings getAccessApprovalSettings( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessApprovalSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.AccessApprovalSettings updateAccessApprovalSettings( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccessApprovalSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public com.google.protobuf.Empty deleteAccessApprovalSettings( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccessApprovalSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount + getAccessApprovalServiceAccount( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessApprovalServiceAccountMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * This API allows a customer to manage accesses to cloud resources by
+   * Google personnel. It defines the following resource model:
+   * - The API has a collection of
+   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
+   *   resources, named `approvalRequests/{approval_request}`
+   * - The API has top-level settings per Project/Folder/Organization, named
+   *   `accessApprovalSettings`
+   * The service also periodically emails a list of recipients, defined at the
+   * Project/Folder/Organization level in the accessApprovalSettings, when there
+   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
+   * also optionally be published to a Pub/Sub topic owned by the customer
+   * (contact support if you would like to enable Pub/Sub notifications).
+   * ApprovalRequests can be approved or dismissed. Google personnel can only
+   * access the indicated resource or resources if the request is approved
+   * (subject to some exclusions:
+   * https://cloud.google.com/access-approval/docs/overview#exclusions).
+   * Note: Using Access Approval functionality will mean that Google may not be
+   * able to meet the SLAs for your chosen products, as any support response times
+   * may be dramatically increased. As such the SLAs do not apply to any service
+   * disruption to the extent impacted by Customer's use of Access Approval. Do
+   * not enable Access Approval for projects where you may require high service
+   * availability and rapid response by Google Cloud Support.
+   * After a request is approved or dismissed, no further action may be taken on
+   * it. Requests with the requested_expiration in the past or with no activity
+   * for 14 days are considered dismissed. When an approval expires, the request
+   * is considered dismissed.
+   * If a request is not approved or dismissed, we call it pending.
+   * 
+ */ + public static final class AccessApprovalFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AccessApprovalFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessApprovalFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessApprovalFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists approval requests associated with a project, folder, or organization.
+     * Approval requests can be filtered by state (pending, active, dismissed).
+     * The order is reverse chronological.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse> + listApprovalRequests( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.ApprovalRequest> + getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Approves a request and returns the updated ApprovalRequest.
+     * Returns NOT_FOUND if the request does not exist. Returns
+     * FAILED_PRECONDITION if the request exists but is not in a pending state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.ApprovalRequest> + approveApprovalRequest( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Dismisses a request. Returns the updated ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It is equivalent in effect to ignoring the request
+     * altogether.
+     * Returns NOT_FOUND if the request does not exist.
+     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
+     * state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.ApprovalRequest> + dismissApprovalRequest( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Invalidates an existing ApprovalRequest. Returns the updated
+     * ApprovalRequest.
+     * NOTE: This does not deny access to the resource if another request has been
+     * made and approved. It only invalidates a single approval.
+     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
+     * state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.ApprovalRequest> + invalidateApprovalRequest( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the settings associated with a project, folder, or organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + getAccessApprovalSettings( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings associated with a project, folder, or organization.
+     * Settings to update are determined by the value of field_mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.AccessApprovalSettings> + updateAccessApprovalSettings( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the settings associated with a project, folder, or organization.
+     * This will have the effect of disabling Access Approval for the project,
+     * folder, or organization, but only if all ancestors also have Access
+     * Approval disabled. If Access Approval is enabled at a higher level of the
+     * hierarchy, then Access Approval will still be enabled at this level as
+     * the settings are inherited.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccessApprovalSettings( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the service account that is used by Access Approval to access KMS
+     * keys for signing approved approval requests.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount> + getAccessApprovalServiceAccount( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_LIST_APPROVAL_REQUESTS = 0; + private static final int METHODID_GET_APPROVAL_REQUEST = 1; + private static final int METHODID_APPROVE_APPROVAL_REQUEST = 2; + private static final int METHODID_DISMISS_APPROVAL_REQUEST = 3; + private static final int METHODID_INVALIDATE_APPROVAL_REQUEST = 4; + private static final int METHODID_GET_ACCESS_APPROVAL_SETTINGS = 5; + private static final int METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS = 6; + private static final int METHODID_DELETE_ACCESS_APPROVAL_SETTINGS = 7; + private static final int METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT = 8; + + 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 AccessApprovalImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AccessApprovalImplBase 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_LIST_APPROVAL_REQUESTS: + serviceImpl.listApprovalRequests( + (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse>) + responseObserver); + break; + case METHODID_GET_APPROVAL_REQUEST: + serviceImpl.getApprovalRequest( + (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_APPROVE_APPROVAL_REQUEST: + serviceImpl.approveApprovalRequest( + (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DISMISS_APPROVAL_REQUEST: + serviceImpl.dismissApprovalRequest( + (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_INVALIDATE_APPROVAL_REQUEST: + serviceImpl.invalidateApprovalRequest( + (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACCESS_APPROVAL_SETTINGS: + serviceImpl.getAccessApprovalSettings( + (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.accessapproval.v1.AccessApprovalSettings>) + responseObserver); + break; + case METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS: + serviceImpl.updateAccessApprovalSettings( + (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.accessapproval.v1.AccessApprovalSettings>) + responseObserver); + break; + case METHODID_DELETE_ACCESS_APPROVAL_SETTINGS: + serviceImpl.deleteAccessApprovalSettings( + (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT: + serviceImpl.getAccessApprovalServiceAccount( + (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AccessApprovalBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AccessApprovalBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AccessApproval"); + } + } + + private static final class AccessApprovalFileDescriptorSupplier + extends AccessApprovalBaseDescriptorSupplier { + AccessApprovalFileDescriptorSupplier() {} + } + + private static final class AccessApprovalMethodDescriptorSupplier + extends AccessApprovalBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AccessApprovalMethodDescriptorSupplier(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 (AccessApprovalGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AccessApprovalFileDescriptorSupplier()) + .addMethod(getListApprovalRequestsMethod()) + .addMethod(getGetApprovalRequestMethod()) + .addMethod(getApproveApprovalRequestMethod()) + .addMethod(getDismissApprovalRequestMethod()) + .addMethod(getInvalidateApprovalRequestMethod()) + .addMethod(getGetAccessApprovalSettingsMethod()) + .addMethod(getUpdateAccessApprovalSettingsMethod()) + .addMethod(getDeleteAccessApprovalSettingsMethod()) + .addMethod(getGetAccessApprovalServiceAccountMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java deleted file mode 100644 index 545f7873..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java +++ /dev/null @@ -1,1209 +0,0 @@ -package com.google.cloud.accessapproval.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * This API allows a customer to manage accesses to cloud resources by
- * Google personnel. It defines the following resource model:
- * - The API has a collection of
- *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
- *   resources, named `approvalRequests/{approval_request}`
- * - The API has top-level settings per Project/Folder/Organization, named
- *   `accessApprovalSettings`
- * The service also periodically emails a list of recipients, defined at the
- * Project/Folder/Organization level in the accessApprovalSettings, when there
- * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
- * also optionally be published to a Pub/Sub topic owned by the customer
- * (contact support if you would like to enable Pub/Sub notifications).
- * ApprovalRequests can be approved or dismissed. Google personnel can only
- * access the indicated resource or resources if the request is approved
- * (subject to some exclusions:
- * https://cloud.google.com/access-approval/docs/overview#exclusions).
- * Note: Using Access Approval functionality will mean that Google may not be
- * able to meet the SLAs for your chosen products, as any support response times
- * may be dramatically increased. As such the SLAs do not apply to any service
- * disruption to the extent impacted by Customer's use of Access Approval. Do
- * not enable Access Approval for projects where you may require high service
- * availability and rapid response by Google Cloud Support.
- * After a request is approved or dismissed, no further action may be taken on
- * it. Requests with the requested_expiration in the past or with no activity
- * for 14 days are considered dismissed. When an approval expires, the request
- * is considered dismissed.
- * If a request is not approved or dismissed, we call it pending.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/accessapproval/v1/accessapproval.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AccessApprovalGrpc { - - private AccessApprovalGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.accessapproval.v1.AccessApproval"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListApprovalRequestsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApprovalRequests", - requestType = com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, - responseType = com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListApprovalRequestsMethod() { - io.grpc.MethodDescriptor getListApprovalRequestsMethod; - if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getListApprovalRequestsMethod = AccessApprovalGrpc.getListApprovalRequestsMethod) == null) { - AccessApprovalGrpc.getListApprovalRequestsMethod = getListApprovalRequestsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApprovalRequests")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("ListApprovalRequests")) - .build(); - } - } - } - return getListApprovalRequestsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetApprovalRequestMethod() { - io.grpc.MethodDescriptor getGetApprovalRequestMethod; - if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getGetApprovalRequestMethod = AccessApprovalGrpc.getGetApprovalRequestMethod) == null) { - AccessApprovalGrpc.getGetApprovalRequestMethod = getGetApprovalRequestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("GetApprovalRequest")) - .build(); - } - } - } - return getGetApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor getApproveApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApproveApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApproveApprovalRequestMethod() { - io.grpc.MethodDescriptor getApproveApprovalRequestMethod; - if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getApproveApprovalRequestMethod = AccessApprovalGrpc.getApproveApprovalRequestMethod) == null) { - AccessApprovalGrpc.getApproveApprovalRequestMethod = getApproveApprovalRequestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("ApproveApprovalRequest")) - .build(); - } - } - } - return getApproveApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor getDismissApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DismissApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDismissApprovalRequestMethod() { - io.grpc.MethodDescriptor getDismissApprovalRequestMethod; - if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getDismissApprovalRequestMethod = AccessApprovalGrpc.getDismissApprovalRequestMethod) == null) { - AccessApprovalGrpc.getDismissApprovalRequestMethod = getDismissApprovalRequestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DismissApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("DismissApprovalRequest")) - .build(); - } - } - } - return getDismissApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor getInvalidateApprovalRequestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InvalidateApprovalRequest", - requestType = com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, - responseType = com.google.cloud.accessapproval.v1.ApprovalRequest.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInvalidateApprovalRequestMethod() { - io.grpc.MethodDescriptor getInvalidateApprovalRequestMethod; - if ((getInvalidateApprovalRequestMethod = AccessApprovalGrpc.getInvalidateApprovalRequestMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getInvalidateApprovalRequestMethod = AccessApprovalGrpc.getInvalidateApprovalRequestMethod) == null) { - AccessApprovalGrpc.getInvalidateApprovalRequestMethod = getInvalidateApprovalRequestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InvalidateApprovalRequest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("InvalidateApprovalRequest")) - .build(); - } - } - } - return getInvalidateApprovalRequestMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAccessApprovalSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalSettings", - requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, - responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccessApprovalSettingsMethod() { - io.grpc.MethodDescriptor getGetAccessApprovalSettingsMethod; - if ((getGetAccessApprovalSettingsMethod = AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getGetAccessApprovalSettingsMethod = AccessApprovalGrpc.getGetAccessApprovalSettingsMethod) == null) { - AccessApprovalGrpc.getGetAccessApprovalSettingsMethod = getGetAccessApprovalSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessApprovalSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("GetAccessApprovalSettings")) - .build(); - } - } - } - return getGetAccessApprovalSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAccessApprovalSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccessApprovalSettings", - requestType = com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, - responseType = com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAccessApprovalSettingsMethod() { - io.grpc.MethodDescriptor getUpdateAccessApprovalSettingsMethod; - if ((getUpdateAccessApprovalSettingsMethod = AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getUpdateAccessApprovalSettingsMethod = AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod) == null) { - AccessApprovalGrpc.getUpdateAccessApprovalSettingsMethod = getUpdateAccessApprovalSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessApprovalSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("UpdateAccessApprovalSettings")) - .build(); - } - } - } - return getUpdateAccessApprovalSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAccessApprovalSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAccessApprovalSettings", - requestType = com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAccessApprovalSettingsMethod() { - io.grpc.MethodDescriptor getDeleteAccessApprovalSettingsMethod; - if ((getDeleteAccessApprovalSettingsMethod = AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getDeleteAccessApprovalSettingsMethod = AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod) == null) { - AccessApprovalGrpc.getDeleteAccessApprovalSettingsMethod = getDeleteAccessApprovalSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccessApprovalSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("DeleteAccessApprovalSettings")) - .build(); - } - } - } - return getDeleteAccessApprovalSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAccessApprovalServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccessApprovalServiceAccount", - requestType = com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, - responseType = com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccessApprovalServiceAccountMethod() { - io.grpc.MethodDescriptor getGetAccessApprovalServiceAccountMethod; - if ((getGetAccessApprovalServiceAccountMethod = AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) == null) { - synchronized (AccessApprovalGrpc.class) { - if ((getGetAccessApprovalServiceAccountMethod = AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod) == null) { - AccessApprovalGrpc.getGetAccessApprovalServiceAccountMethod = getGetAccessApprovalServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessApprovalServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance())) - .setSchemaDescriptor(new AccessApprovalMethodDescriptorSupplier("GetAccessApprovalServiceAccount")) - .build(); - } - } - } - return getGetAccessApprovalServiceAccountMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AccessApprovalStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AccessApprovalStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalStub(channel, callOptions); - } - }; - return AccessApprovalStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AccessApprovalBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AccessApprovalBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalBlockingStub(channel, callOptions); - } - }; - return AccessApprovalBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AccessApprovalFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AccessApprovalFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalFutureStub(channel, callOptions); - } - }; - return AccessApprovalFutureStub.newStub(factory, channel); - } - - /** - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static abstract class AccessApprovalImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public void listApprovalRequests(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApprovalRequestsMethod(), responseObserver); - } - - /** - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public void getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApprovalRequestMethod(), responseObserver); - } - - /** - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public void approveApprovalRequest(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApproveApprovalRequestMethod(), responseObserver); - } - - /** - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public void dismissApprovalRequest(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDismissApprovalRequestMethod(), responseObserver); - } - - /** - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public void invalidateApprovalRequest(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInvalidateApprovalRequestMethod(), responseObserver); - } - - /** - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public void getAccessApprovalSettings(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccessApprovalSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public void updateAccessApprovalSettings(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccessApprovalSettingsMethod(), responseObserver); - } - - /** - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public void deleteAccessApprovalSettings(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAccessApprovalSettingsMethod(), responseObserver); - } - - /** - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public void getAccessApprovalServiceAccount(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccessApprovalServiceAccountMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListApprovalRequestsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage, - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse>( - this, METHODID_LIST_APPROVAL_REQUESTS))) - .addMethod( - getGetApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_GET_APPROVAL_REQUEST))) - .addMethod( - getApproveApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_APPROVE_APPROVAL_REQUEST))) - .addMethod( - getDismissApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_DISMISS_APPROVAL_REQUEST))) - .addMethod( - getInvalidateApprovalRequestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage, - com.google.cloud.accessapproval.v1.ApprovalRequest>( - this, METHODID_INVALIDATE_APPROVAL_REQUEST))) - .addMethod( - getGetAccessApprovalSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings>( - this, METHODID_GET_ACCESS_APPROVAL_SETTINGS))) - .addMethod( - getUpdateAccessApprovalSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage, - com.google.cloud.accessapproval.v1.AccessApprovalSettings>( - this, METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS))) - .addMethod( - getDeleteAccessApprovalSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage, - com.google.protobuf.Empty>( - this, METHODID_DELETE_ACCESS_APPROVAL_SETTINGS))) - .addMethod( - getGetAccessApprovalServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage, - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount>( - this, METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT))) - .build(); - } - } - - /** - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static final class AccessApprovalStub extends io.grpc.stub.AbstractAsyncStub { - private AccessApprovalStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AccessApprovalStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalStub(channel, callOptions); - } - - /** - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public void listApprovalRequests(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public void getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public void approveApprovalRequest(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public void dismissApprovalRequest(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public void invalidateApprovalRequest(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public void getAccessApprovalSettings(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public void updateAccessApprovalSettings(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public void deleteAccessApprovalSettings(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public void getAccessApprovalServiceAccount(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static final class AccessApprovalBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AccessApprovalBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AccessApprovalBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse listApprovalRequests(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApprovalRequestsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequest(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApprovalRequestMethod(), getCallOptions(), request); - } - - /** - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest approveApprovalRequest(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApproveApprovalRequestMethod(), getCallOptions(), request); - } - - /** - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest dismissApprovalRequest(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDismissApprovalRequestMethod(), getCallOptions(), request); - } - - /** - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public com.google.cloud.accessapproval.v1.ApprovalRequest invalidateApprovalRequest(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInvalidateApprovalRequestMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public com.google.cloud.accessapproval.v1.AccessApprovalSettings getAccessApprovalSettings(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccessApprovalSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public com.google.cloud.accessapproval.v1.AccessApprovalSettings updateAccessApprovalSettings(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccessApprovalSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public com.google.protobuf.Empty deleteAccessApprovalSettings(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccessApprovalSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getAccessApprovalServiceAccount(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccessApprovalServiceAccountMethod(), getCallOptions(), request); - } - } - - /** - *
-   * This API allows a customer to manage accesses to cloud resources by
-   * Google personnel. It defines the following resource model:
-   * - The API has a collection of
-   *   [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
-   *   resources, named `approvalRequests/{approval_request}`
-   * - The API has top-level settings per Project/Folder/Organization, named
-   *   `accessApprovalSettings`
-   * The service also periodically emails a list of recipients, defined at the
-   * Project/Folder/Organization level in the accessApprovalSettings, when there
-   * is a pending ApprovalRequest for them to act on. The ApprovalRequests can
-   * also optionally be published to a Pub/Sub topic owned by the customer
-   * (contact support if you would like to enable Pub/Sub notifications).
-   * ApprovalRequests can be approved or dismissed. Google personnel can only
-   * access the indicated resource or resources if the request is approved
-   * (subject to some exclusions:
-   * https://cloud.google.com/access-approval/docs/overview#exclusions).
-   * Note: Using Access Approval functionality will mean that Google may not be
-   * able to meet the SLAs for your chosen products, as any support response times
-   * may be dramatically increased. As such the SLAs do not apply to any service
-   * disruption to the extent impacted by Customer's use of Access Approval. Do
-   * not enable Access Approval for projects where you may require high service
-   * availability and rapid response by Google Cloud Support.
-   * After a request is approved or dismissed, no further action may be taken on
-   * it. Requests with the requested_expiration in the past or with no activity
-   * for 14 days are considered dismissed. When an approval expires, the request
-   * is considered dismissed.
-   * If a request is not approved or dismissed, we call it pending.
-   * 
- */ - public static final class AccessApprovalFutureStub extends io.grpc.stub.AbstractFutureStub { - private AccessApprovalFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AccessApprovalFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AccessApprovalFutureStub(channel, callOptions); - } - - /** - *
-     * Lists approval requests associated with a project, folder, or organization.
-     * Approval requests can be filtered by state (pending, active, dismissed).
-     * The order is reverse chronological.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listApprovalRequests( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApprovalRequestsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an approval request. Returns NOT_FOUND if the request does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getApprovalRequest( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApprovalRequestMethod(), getCallOptions()), request); - } - - /** - *
-     * Approves a request and returns the updated ApprovalRequest.
-     * Returns NOT_FOUND if the request does not exist. Returns
-     * FAILED_PRECONDITION if the request exists but is not in a pending state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture approveApprovalRequest( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApproveApprovalRequestMethod(), getCallOptions()), request); - } - - /** - *
-     * Dismisses a request. Returns the updated ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It is equivalent in effect to ignoring the request
-     * altogether.
-     * Returns NOT_FOUND if the request does not exist.
-     * Returns FAILED_PRECONDITION if the request exists but is not in a pending
-     * state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture dismissApprovalRequest( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDismissApprovalRequestMethod(), getCallOptions()), request); - } - - /** - *
-     * Invalidates an existing ApprovalRequest. Returns the updated
-     * ApprovalRequest.
-     * NOTE: This does not deny access to the resource if another request has been
-     * made and approved. It only invalidates a single approval.
-     * Returns FAILED_PRECONDITION if the request exists but is not in an approved
-     * state.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture invalidateApprovalRequest( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInvalidateApprovalRequestMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the settings associated with a project, folder, or organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccessApprovalSettings( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccessApprovalSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the settings associated with a project, folder, or organization.
-     * Settings to update are determined by the value of field_mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAccessApprovalSettings( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccessApprovalSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the settings associated with a project, folder, or organization.
-     * This will have the effect of disabling Access Approval for the project,
-     * folder, or organization, but only if all ancestors also have Access
-     * Approval disabled. If Access Approval is enabled at a higher level of the
-     * hierarchy, then Access Approval will still be enabled at this level as
-     * the settings are inherited.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAccessApprovalSettings( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccessApprovalSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the service account that is used by Access Approval to access KMS
-     * keys for signing approved approval requests.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccessApprovalServiceAccount( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccessApprovalServiceAccountMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_APPROVAL_REQUESTS = 0; - private static final int METHODID_GET_APPROVAL_REQUEST = 1; - private static final int METHODID_APPROVE_APPROVAL_REQUEST = 2; - private static final int METHODID_DISMISS_APPROVAL_REQUEST = 3; - private static final int METHODID_INVALIDATE_APPROVAL_REQUEST = 4; - private static final int METHODID_GET_ACCESS_APPROVAL_SETTINGS = 5; - private static final int METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS = 6; - private static final int METHODID_DELETE_ACCESS_APPROVAL_SETTINGS = 7; - private static final int METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT = 8; - - 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 AccessApprovalImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AccessApprovalImplBase 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_LIST_APPROVAL_REQUESTS: - serviceImpl.listApprovalRequests((com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_APPROVAL_REQUEST: - serviceImpl.getApprovalRequest((com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPROVE_APPROVAL_REQUEST: - serviceImpl.approveApprovalRequest((com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISMISS_APPROVAL_REQUEST: - serviceImpl.dismissApprovalRequest((com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INVALIDATE_APPROVAL_REQUEST: - serviceImpl.invalidateApprovalRequest((com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCESS_APPROVAL_SETTINGS: - serviceImpl.getAccessApprovalSettings((com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ACCESS_APPROVAL_SETTINGS: - serviceImpl.updateAccessApprovalSettings((com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ACCESS_APPROVAL_SETTINGS: - serviceImpl.deleteAccessApprovalSettings((com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCESS_APPROVAL_SERVICE_ACCOUNT: - serviceImpl.getAccessApprovalServiceAccount((com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AccessApprovalBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AccessApprovalBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AccessApproval"); - } - } - - private static final class AccessApprovalFileDescriptorSupplier - extends AccessApprovalBaseDescriptorSupplier { - AccessApprovalFileDescriptorSupplier() {} - } - - private static final class AccessApprovalMethodDescriptorSupplier - extends AccessApprovalBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AccessApprovalMethodDescriptorSupplier(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 (AccessApprovalGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AccessApprovalFileDescriptorSupplier()) - .addMethod(getListApprovalRequestsMethod()) - .addMethod(getGetApprovalRequestMethod()) - .addMethod(getApproveApprovalRequestMethod()) - .addMethod(getDismissApprovalRequestMethod()) - .addMethod(getInvalidateApprovalRequestMethod()) - .addMethod(getGetAccessApprovalSettingsMethod()) - .addMethod(getUpdateAccessApprovalSettingsMethod()) - .addMethod(getDeleteAccessApprovalSettingsMethod()) - .addMethod(getGetAccessApprovalServiceAccountMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java deleted file mode 100644 index b7be7963..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java +++ /dev/null @@ -1,465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/accessapproval/v1/accessapproval.proto - -package com.google.cloud.accessapproval.v1; - -public final class AccessApprovalProto { - private AccessApprovalProto() {} - 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_accessapproval_v1_AccessLocations_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_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/accessapproval/v1/accessa" + - "pproval.proto\022\036google.cloud.accessapprov" + - "al.v1\032\034google/api/annotations.proto\032\027goo" + - "gle/api/client.proto\032\037google/api/field_b" + - "ehavior.proto\032\031google/api/resource.proto" + - "\032\033google/protobuf/empty.proto\032 google/pr" + - "otobuf/field_mask.proto\032\037google/protobuf" + - "/timestamp.proto\"`\n\017AccessLocations\022 \n\030p" + - "rincipal_office_country\030\001 \001(\t\022+\n#princip" + - "al_physical_location_country\030\002 \001(\t\"\240\002\n\014A" + - "ccessReason\022?\n\004type\030\001 \001(\01621.google.cloud" + - ".accessapproval.v1.AccessReason.Type\022\016\n\006" + - "detail\030\002 \001(\t\"\276\001\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + - "D\020\000\022\036\n\032CUSTOMER_INITIATED_SUPPORT\020\001\022\034\n\030G" + - "OOGLE_INITIATED_SERVICE\020\002\022\033\n\027GOOGLE_INIT" + - "IATED_REVIEW\020\003\022\034\n\030THIRD_PARTY_DATA_REQUE" + - "ST\020\004\022\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_AL" + - "ERT\020\005\"|\n\rSignatureInfo\022\021\n\tsignature\030\001 \001(" + - "\014\022\037\n\025google_public_key_pem\030\002 \001(\tH\000\022\"\n\030cu" + - "stomer_kms_key_version\030\003 \001(\tH\000B\023\n\021verifi" + - "cation_info\"\207\002\n\017ApproveDecision\0220\n\014appro" + - "ve_time\030\001 \001(\0132\032.google.protobuf.Timestam" + - "p\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf" + - ".Timestamp\0223\n\017invalidate_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022E\n\016signature_inf" + - "o\030\004 \001(\0132-.google.cloud.accessapproval.v1" + - ".SignatureInfo\022\025\n\rauto_approved\030\005 \001(\010\"U\n" + - "\017DismissDecision\0220\n\014dismiss_time\030\001 \001(\0132\032" + - ".google.protobuf.Timestamp\022\020\n\010implicit\030\002" + - " \001(\010\"2\n\022ResourceProperties\022\034\n\024excludes_d" + - "escendants\030\001 \001(\010\"\227\006\n\017ApprovalRequest\022\014\n\004" + - "name\030\001 \001(\t\022\037\n\027requested_resource_name\030\002 " + - "\001(\t\022Y\n\035requested_resource_properties\030\t \001" + - "(\01322.google.cloud.accessapproval.v1.Reso" + - "urceProperties\022F\n\020requested_reason\030\003 \001(\013" + - "2,.google.cloud.accessapproval.v1.Access" + - "Reason\022L\n\023requested_locations\030\004 \001(\0132/.go" + - "ogle.cloud.accessapproval.v1.AccessLocat" + - "ions\0220\n\014request_time\030\005 \001(\0132\032.google.prot" + - "obuf.Timestamp\0228\n\024requested_expiration\030\006" + - " \001(\0132\032.google.protobuf.Timestamp\022B\n\007appr" + - "ove\030\007 \001(\0132/.google.cloud.accessapproval." + - "v1.ApproveDecisionH\000\022B\n\007dismiss\030\010 \001(\0132/." + - "google.cloud.accessapproval.v1.DismissDe" + - "cisionH\000:\343\001\352A\337\001\n-accessapproval.googleap" + - "is.com/ApprovalRequest\0226projects/{projec" + - "t}/approvalRequests/{approval_request}\0224" + - "folders/{folder}/approvalRequests/{appro" + - "val_request}\022@organizations/{organizatio" + - "n}/approvalRequests/{approval_request}B\n" + - "\n\010decision\"s\n\017EnrolledService\022\025\n\rcloud_p" + - "roduct\030\001 \001(\t\022I\n\020enrollment_level\030\002 \001(\0162/" + - ".google.cloud.accessapproval.v1.Enrollme" + - "ntLevel\"\234\004\n\026AccessApprovalSettings\022G\n\004na" + - "me\030\001 \001(\tB9\372A6\n4accessapproval.googleapis" + - ".com/AccessApprovalSettings\022\033\n\023notificat" + - "ion_emails\030\002 \003(\t\022J\n\021enrolled_services\030\003 " + - "\003(\0132/.google.cloud.accessapproval.v1.Enr" + - "olledService\022\036\n\021enrolled_ancestor\030\004 \001(\010B" + - "\003\340A\003\022\032\n\022active_key_version\030\006 \001(\t\022,\n\037ance" + - "stor_has_active_key_version\030\007 \001(\010B\003\340A\003\022 " + - "\n\023invalid_key_version\030\010 \001(\010B\003\340A\003:\303\001\352A\277\001\n" + - "4accessapproval.googleapis.com/AccessApp" + - "rovalSettings\022)projects/{project}/access" + - "ApprovalSettings\022\'folders/{folder}/acces" + - "sApprovalSettings\0223organizations/{organi" + - "zation}/accessApprovalSettings\"\270\002\n\034Acces" + - "sApprovalServiceAccount\022M\n\004name\030\001 \001(\tB?\372" + - "A<\n:accessapproval.googleapis.com/Access" + - "ApprovalServiceAccount\022\025\n\raccount_email\030" + - "\002 \001(\t:\261\001\352A\255\001\n:accessapproval.googleapis." + - "com/AccessApprovalServiceAccount\022!projec" + - "ts/{project}/serviceAccount\022\037folders/{fo" + - "lder}/serviceAccount\022+organizations/{org" + - "anization}/serviceAccount\"\230\001\n\033ListApprov" + - "alRequestsMessage\022B\n\006parent\030\001 \001(\tB2\372A/\022-" + - "accessapproval.googleapis.com/ApprovalRe" + - "quest\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + - "\022\022\n\npage_token\030\004 \001(\t\"\203\001\n\034ListApprovalReq" + - "uestsResponse\022J\n\021approval_requests\030\001 \003(\013" + - "2/.google.cloud.accessapproval.v1.Approv" + - "alRequest\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Ge" + - "tApprovalRequestMessage\022@\n\004name\030\001 \001(\tB2\372" + - "A/\n-accessapproval.googleapis.com/Approv" + - "alRequest\"\222\001\n\035ApproveApprovalRequestMess" + - "age\022@\n\004name\030\001 \001(\tB2\372A/\n-accessapproval.g" + - "oogleapis.com/ApprovalRequest\022/\n\013expire_" + - "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"a" + - "\n\035DismissApprovalRequestMessage\022@\n\004name\030" + - "\001 \001(\tB2\372A/\n-accessapproval.googleapis.co" + - "m/ApprovalRequest\"d\n InvalidateApprovalR" + - "equestMessage\022@\n\004name\030\001 \001(\tB2\372A/\n-access" + - "approval.googleapis.com/ApprovalRequest\"" + - "k\n GetAccessApprovalSettingsMessage\022G\n\004n" + - "ame\030\001 \001(\tB9\372A6\n4accessapproval.googleapi" + - "s.com/AccessApprovalSettings\"\240\001\n#UpdateA" + - "ccessApprovalSettingsMessage\022H\n\010settings" + - "\030\001 \001(\01326.google.cloud.accessapproval.v1." + - "AccessApprovalSettings\022/\n\013update_mask\030\002 " + - "\001(\0132\032.google.protobuf.FieldMask\"n\n#Delet" + - "eAccessApprovalSettingsMessage\022G\n\004name\030\001" + - " \001(\tB9\372A6\n4accessapproval.googleapis.com" + - "/AccessApprovalSettings\"6\n&GetAccessAppr" + - "ovalServiceAccountMessage\022\014\n\004name\030\001 \001(\t*" + - "B\n\017EnrollmentLevel\022 \n\034ENROLLMENT_LEVEL_U" + - "NSPECIFIED\020\000\022\r\n\tBLOCK_ALL\020\0012\207\027\n\016AccessAp" + - "proval\022\252\002\n\024ListApprovalRequests\022;.google" + - ".cloud.accessapproval.v1.ListApprovalReq" + - "uestsMessage\032<.google.cloud.accessapprov" + - "al.v1.ListApprovalRequestsResponse\"\226\001\202\323\344" + - "\223\002\206\001\022(/v1/{parent=projects/*}/approvalRe" + - "questsZ)\022\'/v1/{parent=folders/*}/approva" + - "lRequestsZ/\022-/v1/{parent=organizations/*" + - "}/approvalRequests\332A\006parent\022\227\002\n\022GetAppro" + - "valRequest\0229.google.cloud.accessapproval" + - ".v1.GetApprovalRequestMessage\032/.google.c" + - "loud.accessapproval.v1.ApprovalRequest\"\224" + - "\001\202\323\344\223\002\206\001\022(/v1/{name=projects/*/approvalR" + - "equests/*}Z)\022\'/v1/{name=folders/*/approv" + - "alRequests/*}Z/\022-/v1/{name=organizations" + - "/*/approvalRequests/*}\332A\004name\022\271\002\n\026Approv" + - "eApprovalRequest\022=.google.cloud.accessap" + - "proval.v1.ApproveApprovalRequestMessage\032" + - "/.google.cloud.accessapproval.v1.Approva" + - "lRequest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*" + - "/approvalRequests/*}:approve:\001*Z4\"//v1/{" + - "name=folders/*/approvalRequests/*}:appro" + - "ve:\001*Z:\"5/v1/{name=organizations/*/appro" + - "valRequests/*}:approve:\001*\022\271\002\n\026DismissApp" + - "rovalRequest\022=.google.cloud.accessapprov" + - "al.v1.DismissApprovalRequestMessage\032/.go" + - "ogle.cloud.accessapproval.v1.ApprovalReq" + - "uest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*/app" + - "rovalRequests/*}:dismiss:\001*Z4\"//v1/{name" + - "=folders/*/approvalRequests/*}:dismiss:\001" + - "*Z:\"5/v1/{name=organizations/*/approvalR" + - "equests/*}:dismiss:\001*\022\310\002\n\031InvalidateAppr" + - "ovalRequest\022@.google.cloud.accessapprova" + - "l.v1.InvalidateApprovalRequestMessage\032/." + - "google.cloud.accessapproval.v1.ApprovalR" + - "equest\"\267\001\202\323\344\223\002\260\001\"3/v1/{name=projects/*/a" + - "pprovalRequests/*}:invalidate:\001*Z7\"2/v1/" + - "{name=folders/*/approvalRequests/*}:inva" + - "lidate:\001*Z=\"8/v1/{name=organizations/*/a" + - "pprovalRequests/*}:invalidate:\001*\022\270\002\n\031Get" + - "AccessApprovalSettings\022@.google.cloud.ac" + - "cessapproval.v1.GetAccessApprovalSetting" + - "sMessage\0326.google.cloud.accessapproval.v" + - "1.AccessApprovalSettings\"\240\001\202\323\344\223\002\222\001\022,/v1/" + - "{name=projects/*/accessApprovalSettings}" + - "Z-\022+/v1/{name=folders/*/accessApprovalSe" + - "ttings}Z3\0221/v1/{name=organizations/*/acc" + - "essApprovalSettings}\332A\004name\022\207\003\n\034UpdateAc" + - "cessApprovalSettings\022C.google.cloud.acce" + - "ssapproval.v1.UpdateAccessApprovalSettin" + - "gsMessage\0326.google.cloud.accessapproval." + - "v1.AccessApprovalSettings\"\351\001\202\323\344\223\002\313\00125/v1" + - "/{settings.name=projects/*/accessApprova" + - "lSettings}:\010settingsZ@24/v1/{settings.na" + - "me=folders/*/accessApprovalSettings}:\010se" + - "ttingsZF2:/v1/{settings.name=organizatio" + - "ns/*/accessApprovalSettings}:\010settings\332A" + - "\024settings,update_mask\022\236\002\n\034DeleteAccessAp" + - "provalSettings\022C.google.cloud.accessappr" + - "oval.v1.DeleteAccessApprovalSettingsMess" + - "age\032\026.google.protobuf.Empty\"\240\001\202\323\344\223\002\222\001*,/" + - "v1/{name=projects/*/accessApprovalSettin" + - "gs}Z-*+/v1/{name=folders/*/accessApprova" + - "lSettings}Z3*1/v1/{name=organizations/*/" + - "accessApprovalSettings}\332A\004name\022\261\002\n\037GetAc" + - "cessApprovalServiceAccount\022F.google.clou" + - "d.accessapproval.v1.GetAccessApprovalSer" + - "viceAccountMessage\032<.google.cloud.access" + - "approval.v1.AccessApprovalServiceAccount" + - "\"\207\001\202\323\344\223\002z\022$/v1/{name=projects/*/serviceA" + - "ccount}Z%\022#/v1/{name=folders/*/serviceAc" + - "count}Z+\022)/v1/{name=organizations/*/serv" + - "iceAccount}\332A\004name\032Q\312A\035accessapproval.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformB\357\001\n\"com.google.clo" + - "ud.accessapproval.v1B\023AccessApprovalProt" + - "oP\001ZLgoogle.golang.org/genproto/googleap" + - "is/cloud/accessapproval/v1;accessapprova" + - "l\252\002\036Google.Cloud.AccessApproval.V1\312\002\036Goo" + - "gle\\Cloud\\AccessApproval\\V1\352\002!Google::Cl" + - "oud::AccessApproval::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor, - new java.lang.String[] { "PrincipalOfficeCountry", "PrincipalPhysicalLocationCountry", }); - internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor, - new java.lang.String[] { "Type", "Detail", }); - internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor, - new java.lang.String[] { "Signature", "GooglePublicKeyPem", "CustomerKmsKeyVersion", "VerificationInfo", }); - internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor, - new java.lang.String[] { "ApproveTime", "ExpireTime", "InvalidateTime", "SignatureInfo", "AutoApproved", }); - internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor, - new java.lang.String[] { "DismissTime", "Implicit", }); - internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor, - new java.lang.String[] { "ExcludesDescendants", }); - internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor, - new java.lang.String[] { "Name", "RequestedResourceName", "RequestedResourceProperties", "RequestedReason", "RequestedLocations", "RequestTime", "RequestedExpiration", "Approve", "Dismiss", "Decision", }); - internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor, - new java.lang.String[] { "CloudProduct", "EnrollmentLevel", }); - internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor, - new java.lang.String[] { "Name", "NotificationEmails", "EnrolledServices", "EnrolledAncestor", "ActiveKeyVersion", "AncestorHasActiveKeyVersion", "InvalidKeyVersion", }); - internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor, - new java.lang.String[] { "Name", "AccountEmail", }); - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor, - new java.lang.String[] { "ApprovalRequests", "NextPageToken", }); - internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor, - new java.lang.String[] { "Name", "ExpireTime", }); - internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor, - new java.lang.String[] { "Settings", "UpdateMask", }); - internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java deleted file mode 100644 index cae1ce38..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/accessapproval/v1/accessapproval.proto - -package com.google.cloud.accessapproval.v1; - -public interface DismissApprovalRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the ApprovalRequest to dismiss.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the ApprovalRequest to dismiss.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java deleted file mode 100644 index cd08968b..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/accessapproval/v1/accessapproval.proto - -package com.google.cloud.accessapproval.v1; - -public interface ResourcePropertiesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ResourceProperties) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether an approval will exclude the descendants of the resource being
-   * requested.
-   * 
- * - * bool excludes_descendants = 1; - * @return The excludesDescendants. - */ - boolean getExcludesDescendants(); -} diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java new file mode 100644 index 00000000..21ffefc9 --- /dev/null +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalProto.java @@ -0,0 +1,514 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/accessapproval/v1/accessapproval.proto + +package com.google.cloud.accessapproval.v1; + +public final class AccessApprovalProto { + private AccessApprovalProto() {} + + 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_accessapproval_v1_AccessLocations_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_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/accessapproval/v1/accessa" + + "pproval.proto\022\036google.cloud.accessapprov" + + "al.v1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"`\n\017AccessLocations\022 \n\030p" + + "rincipal_office_country\030\001 \001(\t\022+\n#princip" + + "al_physical_location_country\030\002 \001(\t\"\240\002\n\014A" + + "ccessReason\022?\n\004type\030\001 \001(\01621.google.cloud" + + ".accessapproval.v1.AccessReason.Type\022\016\n\006" + + "detail\030\002 \001(\t\"\276\001\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\036\n\032CUSTOMER_INITIATED_SUPPORT\020\001\022\034\n\030G" + + "OOGLE_INITIATED_SERVICE\020\002\022\033\n\027GOOGLE_INIT" + + "IATED_REVIEW\020\003\022\034\n\030THIRD_PARTY_DATA_REQUE" + + "ST\020\004\022\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_AL" + + "ERT\020\005\"|\n\rSignatureInfo\022\021\n\tsignature\030\001 \001(" + + "\014\022\037\n\025google_public_key_pem\030\002 \001(\tH\000\022\"\n\030cu" + + "stomer_kms_key_version\030\003 \001(\tH\000B\023\n\021verifi" + + "cation_info\"\207\002\n\017ApproveDecision\0220\n\014appro" + + "ve_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "p\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\0223\n\017invalidate_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022E\n\016signature_inf" + + "o\030\004 \001(\0132-.google.cloud.accessapproval.v1" + + ".SignatureInfo\022\025\n\rauto_approved\030\005 \001(\010\"U\n" + + "\017DismissDecision\0220\n\014dismiss_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022\020\n\010implicit\030\002" + + " \001(\010\"2\n\022ResourceProperties\022\034\n\024excludes_d" + + "escendants\030\001 \001(\010\"\227\006\n\017ApprovalRequest\022\014\n\004" + + "name\030\001 \001(\t\022\037\n\027requested_resource_name\030\002 " + + "\001(\t\022Y\n\035requested_resource_properties\030\t \001" + + "(\01322.google.cloud.accessapproval.v1.Reso" + + "urceProperties\022F\n\020requested_reason\030\003 \001(\013" + + "2,.google.cloud.accessapproval.v1.Access" + + "Reason\022L\n\023requested_locations\030\004 \001(\0132/.go" + + "ogle.cloud.accessapproval.v1.AccessLocat" + + "ions\0220\n\014request_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\0228\n\024requested_expiration\030\006" + + " \001(\0132\032.google.protobuf.Timestamp\022B\n\007appr" + + "ove\030\007 \001(\0132/.google.cloud.accessapproval." + + "v1.ApproveDecisionH\000\022B\n\007dismiss\030\010 \001(\0132/." + + "google.cloud.accessapproval.v1.DismissDe" + + "cisionH\000:\343\001\352A\337\001\n-accessapproval.googleap" + + "is.com/ApprovalRequest\0226projects/{projec" + + "t}/approvalRequests/{approval_request}\0224" + + "folders/{folder}/approvalRequests/{appro" + + "val_request}\022@organizations/{organizatio" + + "n}/approvalRequests/{approval_request}B\n" + + "\n\010decision\"s\n\017EnrolledService\022\025\n\rcloud_p" + + "roduct\030\001 \001(\t\022I\n\020enrollment_level\030\002 \001(\0162/" + + ".google.cloud.accessapproval.v1.Enrollme" + + "ntLevel\"\234\004\n\026AccessApprovalSettings\022G\n\004na" + + "me\030\001 \001(\tB9\372A6\n4accessapproval.googleapis" + + ".com/AccessApprovalSettings\022\033\n\023notificat" + + "ion_emails\030\002 \003(\t\022J\n\021enrolled_services\030\003 " + + "\003(\0132/.google.cloud.accessapproval.v1.Enr" + + "olledService\022\036\n\021enrolled_ancestor\030\004 \001(\010B" + + "\003\340A\003\022\032\n\022active_key_version\030\006 \001(\t\022,\n\037ance" + + "stor_has_active_key_version\030\007 \001(\010B\003\340A\003\022 " + + "\n\023invalid_key_version\030\010 \001(\010B\003\340A\003:\303\001\352A\277\001\n" + + "4accessapproval.googleapis.com/AccessApp" + + "rovalSettings\022)projects/{project}/access" + + "ApprovalSettings\022\'folders/{folder}/acces" + + "sApprovalSettings\0223organizations/{organi" + + "zation}/accessApprovalSettings\"\270\002\n\034Acces" + + "sApprovalServiceAccount\022M\n\004name\030\001 \001(\tB?\372" + + "A<\n:accessapproval.googleapis.com/Access" + + "ApprovalServiceAccount\022\025\n\raccount_email\030" + + "\002 \001(\t:\261\001\352A\255\001\n:accessapproval.googleapis." + + "com/AccessApprovalServiceAccount\022!projec" + + "ts/{project}/serviceAccount\022\037folders/{fo" + + "lder}/serviceAccount\022+organizations/{org" + + "anization}/serviceAccount\"\230\001\n\033ListApprov" + + "alRequestsMessage\022B\n\006parent\030\001 \001(\tB2\372A/\022-" + + "accessapproval.googleapis.com/ApprovalRe" + + "quest\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\022\022\n\npage_token\030\004 \001(\t\"\203\001\n\034ListApprovalReq" + + "uestsResponse\022J\n\021approval_requests\030\001 \003(\013" + + "2/.google.cloud.accessapproval.v1.Approv" + + "alRequest\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Ge" + + "tApprovalRequestMessage\022@\n\004name\030\001 \001(\tB2\372" + + "A/\n-accessapproval.googleapis.com/Approv" + + "alRequest\"\222\001\n\035ApproveApprovalRequestMess" + + "age\022@\n\004name\030\001 \001(\tB2\372A/\n-accessapproval.g" + + "oogleapis.com/ApprovalRequest\022/\n\013expire_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"a" + + "\n\035DismissApprovalRequestMessage\022@\n\004name\030" + + "\001 \001(\tB2\372A/\n-accessapproval.googleapis.co" + + "m/ApprovalRequest\"d\n InvalidateApprovalR" + + "equestMessage\022@\n\004name\030\001 \001(\tB2\372A/\n-access" + + "approval.googleapis.com/ApprovalRequest\"" + + "k\n GetAccessApprovalSettingsMessage\022G\n\004n" + + "ame\030\001 \001(\tB9\372A6\n4accessapproval.googleapi" + + "s.com/AccessApprovalSettings\"\240\001\n#UpdateA" + + "ccessApprovalSettingsMessage\022H\n\010settings" + + "\030\001 \001(\01326.google.cloud.accessapproval.v1." + + "AccessApprovalSettings\022/\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMask\"n\n#Delet" + + "eAccessApprovalSettingsMessage\022G\n\004name\030\001" + + " \001(\tB9\372A6\n4accessapproval.googleapis.com" + + "/AccessApprovalSettings\"6\n&GetAccessAppr" + + "ovalServiceAccountMessage\022\014\n\004name\030\001 \001(\t*" + + "B\n\017EnrollmentLevel\022 \n\034ENROLLMENT_LEVEL_U" + + "NSPECIFIED\020\000\022\r\n\tBLOCK_ALL\020\0012\207\027\n\016AccessAp" + + "proval\022\252\002\n\024ListApprovalRequests\022;.google" + + ".cloud.accessapproval.v1.ListApprovalReq" + + "uestsMessage\032<.google.cloud.accessapprov" + + "al.v1.ListApprovalRequestsResponse\"\226\001\202\323\344" + + "\223\002\206\001\022(/v1/{parent=projects/*}/approvalRe" + + "questsZ)\022\'/v1/{parent=folders/*}/approva" + + "lRequestsZ/\022-/v1/{parent=organizations/*" + + "}/approvalRequests\332A\006parent\022\227\002\n\022GetAppro" + + "valRequest\0229.google.cloud.accessapproval" + + ".v1.GetApprovalRequestMessage\032/.google.c" + + "loud.accessapproval.v1.ApprovalRequest\"\224" + + "\001\202\323\344\223\002\206\001\022(/v1/{name=projects/*/approvalR" + + "equests/*}Z)\022\'/v1/{name=folders/*/approv" + + "alRequests/*}Z/\022-/v1/{name=organizations" + + "/*/approvalRequests/*}\332A\004name\022\271\002\n\026Approv" + + "eApprovalRequest\022=.google.cloud.accessap" + + "proval.v1.ApproveApprovalRequestMessage\032" + + "/.google.cloud.accessapproval.v1.Approva" + + "lRequest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*" + + "/approvalRequests/*}:approve:\001*Z4\"//v1/{" + + "name=folders/*/approvalRequests/*}:appro" + + "ve:\001*Z:\"5/v1/{name=organizations/*/appro" + + "valRequests/*}:approve:\001*\022\271\002\n\026DismissApp" + + "rovalRequest\022=.google.cloud.accessapprov" + + "al.v1.DismissApprovalRequestMessage\032/.go" + + "ogle.cloud.accessapproval.v1.ApprovalReq" + + "uest\"\256\001\202\323\344\223\002\247\001\"0/v1/{name=projects/*/app" + + "rovalRequests/*}:dismiss:\001*Z4\"//v1/{name" + + "=folders/*/approvalRequests/*}:dismiss:\001" + + "*Z:\"5/v1/{name=organizations/*/approvalR" + + "equests/*}:dismiss:\001*\022\310\002\n\031InvalidateAppr" + + "ovalRequest\022@.google.cloud.accessapprova" + + "l.v1.InvalidateApprovalRequestMessage\032/." + + "google.cloud.accessapproval.v1.ApprovalR" + + "equest\"\267\001\202\323\344\223\002\260\001\"3/v1/{name=projects/*/a" + + "pprovalRequests/*}:invalidate:\001*Z7\"2/v1/" + + "{name=folders/*/approvalRequests/*}:inva" + + "lidate:\001*Z=\"8/v1/{name=organizations/*/a" + + "pprovalRequests/*}:invalidate:\001*\022\270\002\n\031Get" + + "AccessApprovalSettings\022@.google.cloud.ac" + + "cessapproval.v1.GetAccessApprovalSetting" + + "sMessage\0326.google.cloud.accessapproval.v" + + "1.AccessApprovalSettings\"\240\001\202\323\344\223\002\222\001\022,/v1/" + + "{name=projects/*/accessApprovalSettings}" + + "Z-\022+/v1/{name=folders/*/accessApprovalSe" + + "ttings}Z3\0221/v1/{name=organizations/*/acc" + + "essApprovalSettings}\332A\004name\022\207\003\n\034UpdateAc" + + "cessApprovalSettings\022C.google.cloud.acce" + + "ssapproval.v1.UpdateAccessApprovalSettin" + + "gsMessage\0326.google.cloud.accessapproval." + + "v1.AccessApprovalSettings\"\351\001\202\323\344\223\002\313\00125/v1" + + "/{settings.name=projects/*/accessApprova" + + "lSettings}:\010settingsZ@24/v1/{settings.na" + + "me=folders/*/accessApprovalSettings}:\010se" + + "ttingsZF2:/v1/{settings.name=organizatio" + + "ns/*/accessApprovalSettings}:\010settings\332A" + + "\024settings,update_mask\022\236\002\n\034DeleteAccessAp" + + "provalSettings\022C.google.cloud.accessappr" + + "oval.v1.DeleteAccessApprovalSettingsMess" + + "age\032\026.google.protobuf.Empty\"\240\001\202\323\344\223\002\222\001*,/" + + "v1/{name=projects/*/accessApprovalSettin" + + "gs}Z-*+/v1/{name=folders/*/accessApprova" + + "lSettings}Z3*1/v1/{name=organizations/*/" + + "accessApprovalSettings}\332A\004name\022\261\002\n\037GetAc" + + "cessApprovalServiceAccount\022F.google.clou" + + "d.accessapproval.v1.GetAccessApprovalSer" + + "viceAccountMessage\032<.google.cloud.access" + + "approval.v1.AccessApprovalServiceAccount" + + "\"\207\001\202\323\344\223\002z\022$/v1/{name=projects/*/serviceA" + + "ccount}Z%\022#/v1/{name=folders/*/serviceAc" + + "count}Z+\022)/v1/{name=organizations/*/serv" + + "iceAccount}\332A\004name\032Q\312A\035accessapproval.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\357\001\n\"com.google.clo" + + "ud.accessapproval.v1B\023AccessApprovalProt" + + "oP\001ZLgoogle.golang.org/genproto/googleap" + + "is/cloud/accessapproval/v1;accessapprova" + + "l\252\002\036Google.Cloud.AccessApproval.V1\312\002\036Goo" + + "gle\\Cloud\\AccessApproval\\V1\352\002!Google::Cl" + + "oud::AccessApproval::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor, + new java.lang.String[] { + "PrincipalOfficeCountry", "PrincipalPhysicalLocationCountry", + }); + internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor, + new java.lang.String[] { + "Type", "Detail", + }); + internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor, + new java.lang.String[] { + "Signature", "GooglePublicKeyPem", "CustomerKmsKeyVersion", "VerificationInfo", + }); + internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor, + new java.lang.String[] { + "ApproveTime", "ExpireTime", "InvalidateTime", "SignatureInfo", "AutoApproved", + }); + internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor, + new java.lang.String[] { + "DismissTime", "Implicit", + }); + internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor, + new java.lang.String[] { + "ExcludesDescendants", + }); + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor, + new java.lang.String[] { + "Name", + "RequestedResourceName", + "RequestedResourceProperties", + "RequestedReason", + "RequestedLocations", + "RequestTime", + "RequestedExpiration", + "Approve", + "Dismiss", + "Decision", + }); + internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor, + new java.lang.String[] { + "CloudProduct", "EnrollmentLevel", + }); + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor, + new java.lang.String[] { + "Name", + "NotificationEmails", + "EnrolledServices", + "EnrolledAncestor", + "ActiveKeyVersion", + "AncestorHasActiveKeyVersion", + "InvalidKeyVersion", + }); + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor, + new java.lang.String[] { + "Name", "AccountEmail", + }); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor, + new java.lang.String[] { + "ApprovalRequests", "NextPageToken", + }); + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor, + new java.lang.String[] { + "Name", "ExpireTime", + }); + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor, + new java.lang.String[] { + "Settings", "UpdateMask", + }); + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java index 1ff48ec6..f56a17b7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccount.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Access Approval service account related to a project/folder/organization.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalServiceAccount} */ -public final class AccessApprovalServiceAccount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessApprovalServiceAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) AccessApprovalServiceAccountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessApprovalServiceAccount.newBuilder() to construct. private AccessApprovalServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessApprovalServiceAccount() { name_ = ""; accountEmail_ = ""; @@ -26,16 +44,15 @@ private AccessApprovalServiceAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessApprovalServiceAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessApprovalServiceAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private AccessApprovalServiceAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - accountEmail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + accountEmail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private AccessApprovalServiceAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -111,6 +134,7 @@ private AccessApprovalServiceAccount(
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -119,14 +143,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -135,16 +160,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -155,11 +179,14 @@ public java.lang.String getName() { public static final int ACCOUNT_EMAIL_FIELD_NUMBER = 2; private volatile java.lang.Object accountEmail_; /** + * + * *
    * Email address of the service account.
    * 
* * string account_email = 2; + * * @return The accountEmail. */ @java.lang.Override @@ -168,29 +195,29 @@ public java.lang.String getAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountEmail_ = s; return s; } } /** + * + * *
    * Email address of the service account.
    * 
* * string account_email = 2; + * * @return The bytes for accountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccountEmailBytes() { + public com.google.protobuf.ByteString getAccountEmailBytes() { java.lang.Object ref = accountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountEmail_ = b; return b; } else { @@ -199,6 +226,7 @@ public java.lang.String getAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +238,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -241,17 +268,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other = (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) obj; + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other = + (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAccountEmail() - .equals(other.getAccountEmail())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAccountEmail().equals(other.getAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -273,117 +299,127 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Access Approval service account related to a project/folder/organization.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalServiceAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) com.google.cloud.accessapproval.v1.AccessApprovalServiceAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.class, + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.newBuilder() @@ -391,16 +427,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,13 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount + getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance(); } @@ -433,7 +469,8 @@ public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount buildPartial() { - com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount result = new com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount(this); + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount result = + new com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount(this); result.name_ = name_; result.accountEmail_ = accountEmail_; onBuilt(); @@ -444,46 +481,50 @@ public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount)other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other) { - if (other == com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount other) { + if (other + == com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -511,7 +552,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -523,6 +566,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -531,13 +576,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -546,6 +591,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -554,15 +601,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -570,6 +616,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -578,20 +626,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -600,15 +650,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the Access Approval service account. Format is one of:
      *   * "projects/{project}/serviceAccount"
@@ -617,16 +670,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -634,18 +687,20 @@ public Builder setNameBytes( private java.lang.Object accountEmail_ = ""; /** + * + * *
      * Email address of the service account.
      * 
* * string account_email = 2; + * * @return The accountEmail. */ public java.lang.String getAccountEmail() { java.lang.Object ref = accountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountEmail_ = s; return s; @@ -654,20 +709,21 @@ public java.lang.String getAccountEmail() { } } /** + * + * *
      * Email address of the service account.
      * 
* * string account_email = 2; + * * @return The bytes for accountEmail. */ - public com.google.protobuf.ByteString - getAccountEmailBytes() { + public com.google.protobuf.ByteString getAccountEmailBytes() { java.lang.Object ref = accountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountEmail_ = b; return b; } else { @@ -675,61 +731,68 @@ public java.lang.String getAccountEmail() { } } /** + * + * *
      * Email address of the service account.
      * 
* * string account_email = 2; + * * @param value The accountEmail to set. * @return This builder for chaining. */ - public Builder setAccountEmail( - java.lang.String value) { + public Builder setAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accountEmail_ = value; onChanged(); return this; } /** + * + * *
      * Email address of the service account.
      * 
* * string account_email = 2; + * * @return This builder for chaining. */ public Builder clearAccountEmail() { - + accountEmail_ = getDefaultInstance().getAccountEmail(); onChanged(); return this; } /** + * + * *
      * Email address of the service account.
      * 
* * string account_email = 2; + * * @param value The bytes for accountEmail to set. * @return This builder for chaining. */ - public Builder setAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountEmail_ = 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); } @@ -739,30 +802,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) - private static final com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount(); } - public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessApprovalServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessApprovalServiceAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessApprovalServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessApprovalServiceAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -774,9 +839,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java index a45ee198..7a85b41b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalServiceAccountOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessApprovalServiceAccountOrBuilder extends +public interface AccessApprovalServiceAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessApprovalServiceAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -16,10 +34,13 @@ public interface AccessApprovalServiceAccountOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the Access Approval service account. Format is one of:
    *   * "projects/{project}/serviceAccount"
@@ -28,28 +49,33 @@ public interface AccessApprovalServiceAccountOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Email address of the service account.
    * 
* * string account_email = 2; + * * @return The accountEmail. */ java.lang.String getAccountEmail(); /** + * + * *
    * Email address of the service account.
    * 
* * string account_email = 2; + * * @return The bytes for accountEmail. */ - com.google.protobuf.ByteString - getAccountEmailBytes(); + com.google.protobuf.ByteString getAccountEmailBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java index 9dec875b..1e02306f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettings.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Settings on a Project/Folder/Organization related to Access Approval.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalSettings} */ -public final class AccessApprovalSettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessApprovalSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessApprovalSettings) AccessApprovalSettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessApprovalSettings.newBuilder() to construct. private AccessApprovalSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessApprovalSettings() { name_ = ""; notificationEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,16 +46,15 @@ private AccessApprovalSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessApprovalSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessApprovalSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,58 +74,65 @@ private AccessApprovalSettings( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationEmails_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - notificationEmails_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - enrolledServices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationEmails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notificationEmails_.add(s); + break; } - enrolledServices_.add( - input.readMessage(com.google.cloud.accessapproval.v1.EnrolledService.parser(), extensionRegistry)); - break; - } - case 32: { - - enrolledAncestor_ = input.readBool(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - activeKeyVersion_ = s; - break; - } - case 56: { - - ancestorHasActiveKeyVersion_ = input.readBool(); - break; - } - case 64: { + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + enrolledServices_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + enrolledServices_.add( + input.readMessage( + com.google.cloud.accessapproval.v1.EnrolledService.parser(), + extensionRegistry)); + break; + } + case 32: + { + enrolledAncestor_ = input.readBool(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - invalidKeyVersion_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + activeKeyVersion_ = s; + break; + } + case 56: + { + ancestorHasActiveKeyVersion_ = input.readBool(); + break; + } + case 64: + { + invalidKeyVersion_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,8 +140,7 @@ private AccessApprovalSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationEmails_ = notificationEmails_.getUnmodifiableView(); @@ -129,22 +152,27 @@ private AccessApprovalSettings( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -153,6 +181,7 @@ private AccessApprovalSettings(
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -161,14 +190,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -177,16 +207,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -197,6 +226,8 @@ public java.lang.String getName() { public static final int NOTIFICATION_EMAILS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList notificationEmails_; /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -205,13 +236,15 @@ public java.lang.String getName() {
    * 
* * repeated string notification_emails = 2; + * * @return A list containing the notificationEmails. */ - public com.google.protobuf.ProtocolStringList - getNotificationEmailsList() { + public com.google.protobuf.ProtocolStringList getNotificationEmailsList() { return notificationEmails_; } /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -220,12 +253,15 @@ public java.lang.String getName() {
    * 
* * repeated string notification_emails = 2; + * * @return The count of notificationEmails. */ public int getNotificationEmailsCount() { return notificationEmails_.size(); } /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -234,6 +270,7 @@ public int getNotificationEmailsCount() {
    * 
* * repeated string notification_emails = 2; + * * @param index The index of the element to return. * @return The notificationEmails at the given index. */ @@ -241,6 +278,8 @@ public java.lang.String getNotificationEmails(int index) { return notificationEmails_.get(index); } /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -249,17 +288,19 @@ public java.lang.String getNotificationEmails(int index) {
    * 
* * repeated string notification_emails = 2; + * * @param index The index of the value to return. * @return The bytes of the notificationEmails at the given index. */ - public com.google.protobuf.ByteString - getNotificationEmailsBytes(int index) { + public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) { return notificationEmails_.getByteString(index); } public static final int ENROLLED_SERVICES_FIELD_NUMBER = 3; private java.util.List enrolledServices_; /** + * + * *
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -276,10 +317,13 @@ public java.lang.String getNotificationEmails(int index) {
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
   @java.lang.Override
-  public java.util.List getEnrolledServicesList() {
+  public java.util.List
+      getEnrolledServicesList() {
     return enrolledServices_;
   }
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -296,11 +340,13 @@ public java.util.List getEnr
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getEnrolledServicesOrBuilderList() {
     return enrolledServices_;
   }
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -321,6 +367,8 @@ public int getEnrolledServicesCount() {
     return enrolledServices_.size();
   }
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -341,6 +389,8 @@ public com.google.cloud.accessapproval.v1.EnrolledService getEnrolledServices(in
     return enrolledServices_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -365,6 +415,8 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
   public static final int ENROLLED_ANCESTOR_FIELD_NUMBER = 4;
   private boolean enrolledAncestor_;
   /**
+   *
+   *
    * 
    * Output only. This field is read only (not settable via
    * UpdateAccessApprovalSettings method). If the field is true, that
@@ -374,6 +426,7 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
    * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The enrolledAncestor. */ @java.lang.Override @@ -384,6 +437,8 @@ public boolean getEnrolledAncestor() { public static final int ACTIVE_KEY_VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object activeKeyVersion_; /** + * + * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -392,6 +447,7 @@ public boolean getEnrolledAncestor() {
    * 
* * string active_key_version = 6; + * * @return The activeKeyVersion. */ @java.lang.Override @@ -400,14 +456,15 @@ public java.lang.String getActiveKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeKeyVersion_ = s; return s; } } /** + * + * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -416,16 +473,15 @@ public java.lang.String getActiveKeyVersion() {
    * 
* * string active_key_version = 6; + * * @return The bytes for activeKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getActiveKeyVersionBytes() { + public com.google.protobuf.ByteString getActiveKeyVersionBytes() { java.lang.Object ref = activeKeyVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); activeKeyVersion_ = b; return b; } else { @@ -436,6 +492,8 @@ public java.lang.String getActiveKeyVersion() { public static final int ANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBER = 7; private boolean ancestorHasActiveKeyVersion_; /** + * + * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that an ancestor of this
@@ -443,7 +501,9 @@ public java.lang.String getActiveKeyVersion() {
    * unset for the organization since organizations do not have ancestors).
    * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The ancestorHasActiveKeyVersion. */ @java.lang.Override @@ -454,6 +514,8 @@ public boolean getAncestorHasActiveKeyVersion() { public static final int INVALID_KEY_VERSION_FIELD_NUMBER = 8; private boolean invalidKeyVersion_; /** + * + * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that there is some
@@ -465,6 +527,7 @@ public boolean getAncestorHasActiveKeyVersion() {
    * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The invalidKeyVersion. */ @java.lang.Override @@ -473,6 +536,7 @@ public boolean getInvalidKeyVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -484,8 +548,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -528,23 +591,20 @@ public int getSerializedSize() { size += 1 * getNotificationEmailsList().size(); } for (int i = 0; i < enrolledServices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, enrolledServices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, enrolledServices_.get(i)); } if (enrolledAncestor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, enrolledAncestor_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enrolledAncestor_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeKeyVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, activeKeyVersion_); } if (ancestorHasActiveKeyVersion_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, ancestorHasActiveKeyVersion_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, ancestorHasActiveKeyVersion_); } if (invalidKeyVersion_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, invalidKeyVersion_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, invalidKeyVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -554,27 +614,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.accessapproval.v1.AccessApprovalSettings)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessApprovalSettings other = (com.google.cloud.accessapproval.v1.AccessApprovalSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getNotificationEmailsList() - .equals(other.getNotificationEmailsList())) return false; - if (!getEnrolledServicesList() - .equals(other.getEnrolledServicesList())) return false; - if (getEnrolledAncestor() - != other.getEnrolledAncestor()) return false; - if (!getActiveKeyVersion() - .equals(other.getActiveKeyVersion())) return false; - if (getAncestorHasActiveKeyVersion() - != other.getAncestorHasActiveKeyVersion()) return false; - if (getInvalidKeyVersion() - != other.getInvalidKeyVersion()) return false; + com.google.cloud.accessapproval.v1.AccessApprovalSettings other = + (com.google.cloud.accessapproval.v1.AccessApprovalSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNotificationEmailsList().equals(other.getNotificationEmailsList())) return false; + if (!getEnrolledServicesList().equals(other.getEnrolledServicesList())) return false; + if (getEnrolledAncestor() != other.getEnrolledAncestor()) return false; + if (!getActiveKeyVersion().equals(other.getActiveKeyVersion())) return false; + if (getAncestorHasActiveKeyVersion() != other.getAncestorHasActiveKeyVersion()) return false; + if (getInvalidKeyVersion() != other.getInvalidKeyVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -597,133 +651,140 @@ public int hashCode() { hash = (53 * hash) + getEnrolledServicesList().hashCode(); } hash = (37 * hash) + ENROLLED_ANCESTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnrolledAncestor()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnrolledAncestor()); hash = (37 * hash) + ACTIVE_KEY_VERSION_FIELD_NUMBER; hash = (53 * hash) + getActiveKeyVersion().hashCode(); hash = (37 * hash) + ANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAncestorHasActiveKeyVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAncestorHasActiveKeyVersion()); hash = (37 * hash) + INVALID_KEY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInvalidKeyVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvalidKeyVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessApprovalSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessApprovalSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.AccessApprovalSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings on a Project/Folder/Organization related to Access Approval.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessApprovalSettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessApprovalSettings) com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); + com.google.cloud.accessapproval.v1.AccessApprovalSettings.class, + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessApprovalSettings.newBuilder() @@ -731,17 +792,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEnrolledServicesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +828,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessApprovalSettings_descriptor; } @java.lang.Override @@ -788,7 +849,8 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessApprovalSettings buildPartial() { - com.google.cloud.accessapproval.v1.AccessApprovalSettings result = new com.google.cloud.accessapproval.v1.AccessApprovalSettings(this); + com.google.cloud.accessapproval.v1.AccessApprovalSettings result = + new com.google.cloud.accessapproval.v1.AccessApprovalSettings(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -817,38 +879,39 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessApprovalSettings) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalSettings)other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessApprovalSettings) other); } else { super.mergeFrom(other); return this; @@ -856,7 +919,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessApprovalSettings other) { - if (other == com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -889,9 +953,10 @@ public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessApprovalSettin enrolledServicesBuilder_ = null; enrolledServices_ = other.enrolledServices_; bitField0_ = (bitField0_ & ~0x00000002); - enrolledServicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnrolledServicesFieldBuilder() : null; + enrolledServicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEnrolledServicesFieldBuilder() + : null; } else { enrolledServicesBuilder_.addAllMessages(other.enrolledServices_); } @@ -929,7 +994,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.AccessApprovalSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.AccessApprovalSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -938,10 +1004,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -950,13 +1019,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -965,6 +1034,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -973,15 +1044,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -989,6 +1059,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -997,20 +1069,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1019,15 +1093,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the settings. Format is one of:
      *   * "projects/{project}/accessApprovalSettings"
@@ -1036,29 +1113,33 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList notificationEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList notificationEmails_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNotificationEmailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { notificationEmails_ = new com.google.protobuf.LazyStringArrayList(notificationEmails_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1067,13 +1148,15 @@ private void ensureNotificationEmailsIsMutable() {
      * 
* * repeated string notification_emails = 2; + * * @return A list containing the notificationEmails. */ - public com.google.protobuf.ProtocolStringList - getNotificationEmailsList() { + public com.google.protobuf.ProtocolStringList getNotificationEmailsList() { return notificationEmails_.getUnmodifiableView(); } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1082,12 +1165,15 @@ private void ensureNotificationEmailsIsMutable() {
      * 
* * repeated string notification_emails = 2; + * * @return The count of notificationEmails. */ public int getNotificationEmailsCount() { return notificationEmails_.size(); } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1096,6 +1182,7 @@ public int getNotificationEmailsCount() {
      * 
* * repeated string notification_emails = 2; + * * @param index The index of the element to return. * @return The notificationEmails at the given index. */ @@ -1103,6 +1190,8 @@ public java.lang.String getNotificationEmails(int index) { return notificationEmails_.get(index); } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1111,14 +1200,16 @@ public java.lang.String getNotificationEmails(int index) {
      * 
* * repeated string notification_emails = 2; + * * @param index The index of the value to return. * @return The bytes of the notificationEmails at the given index. */ - public com.google.protobuf.ByteString - getNotificationEmailsBytes(int index) { + public com.google.protobuf.ByteString getNotificationEmailsBytes(int index) { return notificationEmails_.getByteString(index); } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1127,21 +1218,23 @@ public java.lang.String getNotificationEmails(int index) {
      * 
* * repeated string notification_emails = 2; + * * @param index The index to set the value at. * @param value The notificationEmails to set. * @return This builder for chaining. */ - public Builder setNotificationEmails( - int index, java.lang.String value) { + public Builder setNotificationEmails(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNotificationEmailsIsMutable(); + throw new NullPointerException(); + } + ensureNotificationEmailsIsMutable(); notificationEmails_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1150,20 +1243,22 @@ public Builder setNotificationEmails(
      * 
* * repeated string notification_emails = 2; + * * @param value The notificationEmails to add. * @return This builder for chaining. */ - public Builder addNotificationEmails( - java.lang.String value) { + public Builder addNotificationEmails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNotificationEmailsIsMutable(); + throw new NullPointerException(); + } + ensureNotificationEmailsIsMutable(); notificationEmails_.add(value); onChanged(); return this; } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1172,18 +1267,19 @@ public Builder addNotificationEmails(
      * 
* * repeated string notification_emails = 2; + * * @param values The notificationEmails to add. * @return This builder for chaining. */ - public Builder addAllNotificationEmails( - java.lang.Iterable values) { + public Builder addAllNotificationEmails(java.lang.Iterable values) { ensureNotificationEmailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notificationEmails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationEmails_); onChanged(); return this; } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1192,6 +1288,7 @@ public Builder addAllNotificationEmails(
      * 
* * repeated string notification_emails = 2; + * * @return This builder for chaining. */ public Builder clearNotificationEmails() { @@ -1201,6 +1298,8 @@ public Builder clearNotificationEmails() { return this; } /** + * + * *
      * A list of email addresses to which notifications relating to approval
      * requests should be sent. Notifications relating to a resource will be sent
@@ -1209,15 +1308,15 @@ public Builder clearNotificationEmails() {
      * 
* * repeated string notification_emails = 2; + * * @param value The bytes of the notificationEmails to add. * @return This builder for chaining. */ - public Builder addNotificationEmailsBytes( - com.google.protobuf.ByteString value) { + public Builder addNotificationEmailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNotificationEmailsIsMutable(); notificationEmails_.add(value); onChanged(); @@ -1225,18 +1324,26 @@ public Builder addNotificationEmailsBytes( } private java.util.List enrolledServices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEnrolledServicesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - enrolledServices_ = new java.util.ArrayList(enrolledServices_); + enrolledServices_ = + new java.util.ArrayList( + enrolledServices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.EnrolledService, com.google.cloud.accessapproval.v1.EnrolledService.Builder, com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder> enrolledServicesBuilder_; + com.google.cloud.accessapproval.v1.EnrolledService, + com.google.cloud.accessapproval.v1.EnrolledService.Builder, + com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder> + enrolledServicesBuilder_; /** + * + * *
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1252,7 +1359,8 @@ private void ensureEnrolledServicesIsMutable() {
      *
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
-    public java.util.List getEnrolledServicesList() {
+    public java.util.List
+        getEnrolledServicesList() {
       if (enrolledServicesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(enrolledServices_);
       } else {
@@ -1260,6 +1368,8 @@ public java.util.List getEnr
       }
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1283,6 +1393,8 @@ public int getEnrolledServicesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1306,6 +1418,8 @@ public com.google.cloud.accessapproval.v1.EnrolledService getEnrolledServices(in
       }
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1336,6 +1450,8 @@ public Builder setEnrolledServices(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1363,6 +1479,8 @@ public Builder setEnrolledServices(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1392,6 +1510,8 @@ public Builder addEnrolledServices(com.google.cloud.accessapproval.v1.EnrolledSe
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1422,6 +1542,8 @@ public Builder addEnrolledServices(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1449,6 +1571,8 @@ public Builder addEnrolledServices(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1476,6 +1600,8 @@ public Builder addEnrolledServices(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1495,8 +1621,7 @@ public Builder addAllEnrolledServices(
         java.lang.Iterable values) {
       if (enrolledServicesBuilder_ == null) {
         ensureEnrolledServicesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, enrolledServices_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enrolledServices_);
         onChanged();
       } else {
         enrolledServicesBuilder_.addAllMessages(values);
@@ -1504,6 +1629,8 @@ public Builder addAllEnrolledServices(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1530,6 +1657,8 @@ public Builder clearEnrolledServices() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1556,6 +1685,8 @@ public Builder removeEnrolledServices(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1576,6 +1707,8 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder getEnrolledSer
       return getEnrolledServicesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1594,11 +1727,14 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder getEnrolledSer
     public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesOrBuilder(
         int index) {
       if (enrolledServicesBuilder_ == null) {
-        return enrolledServices_.get(index);  } else {
+        return enrolledServices_.get(index);
+      } else {
         return enrolledServicesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1614,8 +1750,8 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
      *
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
-    public java.util.List 
-         getEnrolledServicesOrBuilderList() {
+    public java.util.List
+        getEnrolledServicesOrBuilderList() {
       if (enrolledServicesBuilder_ != null) {
         return enrolledServicesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1623,6 +1759,8 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
       }
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1639,10 +1777,12 @@ public com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledSe
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
     public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledServicesBuilder() {
-      return getEnrolledServicesFieldBuilder().addBuilder(
-          com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
+      return getEnrolledServicesFieldBuilder()
+          .addBuilder(com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1660,10 +1800,13 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
      */
     public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledServicesBuilder(
         int index) {
-      return getEnrolledServicesFieldBuilder().addBuilder(
-          index, com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
+      return getEnrolledServicesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Google Cloud Services for which the given resource has Access
      * Approval enrolled. Access requests for the resource given by name against
@@ -1679,16 +1822,22 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
      *
      * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
      */
-    public java.util.List 
-         getEnrolledServicesBuilderList() {
+    public java.util.List
+        getEnrolledServicesBuilderList() {
       return getEnrolledServicesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.accessapproval.v1.EnrolledService, com.google.cloud.accessapproval.v1.EnrolledService.Builder, com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder> 
+            com.google.cloud.accessapproval.v1.EnrolledService,
+            com.google.cloud.accessapproval.v1.EnrolledService.Builder,
+            com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder>
         getEnrolledServicesFieldBuilder() {
       if (enrolledServicesBuilder_ == null) {
-        enrolledServicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.accessapproval.v1.EnrolledService, com.google.cloud.accessapproval.v1.EnrolledService.Builder, com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder>(
+        enrolledServicesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.accessapproval.v1.EnrolledService,
+                com.google.cloud.accessapproval.v1.EnrolledService.Builder,
+                com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder>(
                 enrolledServices_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1698,8 +1847,10 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
       return enrolledServicesBuilder_;
     }
 
-    private boolean enrolledAncestor_ ;
+    private boolean enrolledAncestor_;
     /**
+     *
+     *
      * 
      * Output only. This field is read only (not settable via
      * UpdateAccessApprovalSettings method). If the field is true, that
@@ -1709,6 +1860,7 @@ public com.google.cloud.accessapproval.v1.EnrolledService.Builder addEnrolledSer
      * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The enrolledAncestor. */ @java.lang.Override @@ -1716,6 +1868,8 @@ public boolean getEnrolledAncestor() { return enrolledAncestor_; } /** + * + * *
      * Output only. This field is read only (not settable via
      * UpdateAccessApprovalSettings method). If the field is true, that
@@ -1725,16 +1879,19 @@ public boolean getEnrolledAncestor() {
      * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The enrolledAncestor to set. * @return This builder for chaining. */ public Builder setEnrolledAncestor(boolean value) { - + enrolledAncestor_ = value; onChanged(); return this; } /** + * + * *
      * Output only. This field is read only (not settable via
      * UpdateAccessApprovalSettings method). If the field is true, that
@@ -1744,10 +1901,11 @@ public Builder setEnrolledAncestor(boolean value) {
      * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEnrolledAncestor() { - + enrolledAncestor_ = false; onChanged(); return this; @@ -1755,6 +1913,8 @@ public Builder clearEnrolledAncestor() { private java.lang.Object activeKeyVersion_ = ""; /** + * + * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1763,13 +1923,13 @@ public Builder clearEnrolledAncestor() {
      * 
* * string active_key_version = 6; + * * @return The activeKeyVersion. */ public java.lang.String getActiveKeyVersion() { java.lang.Object ref = activeKeyVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeKeyVersion_ = s; return s; @@ -1778,6 +1938,8 @@ public java.lang.String getActiveKeyVersion() { } } /** + * + * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1786,15 +1948,14 @@ public java.lang.String getActiveKeyVersion() {
      * 
* * string active_key_version = 6; + * * @return The bytes for activeKeyVersion. */ - public com.google.protobuf.ByteString - getActiveKeyVersionBytes() { + public com.google.protobuf.ByteString getActiveKeyVersionBytes() { java.lang.Object ref = activeKeyVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); activeKeyVersion_ = b; return b; } else { @@ -1802,6 +1963,8 @@ public java.lang.String getActiveKeyVersion() { } } /** + * + * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1810,20 +1973,22 @@ public java.lang.String getActiveKeyVersion() {
      * 
* * string active_key_version = 6; + * * @param value The activeKeyVersion to set. * @return This builder for chaining. */ - public Builder setActiveKeyVersion( - java.lang.String value) { + public Builder setActiveKeyVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + activeKeyVersion_ = value; onChanged(); return this; } /** + * + * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1832,15 +1997,18 @@ public Builder setActiveKeyVersion(
      * 
* * string active_key_version = 6; + * * @return This builder for chaining. */ public Builder clearActiveKeyVersion() { - + activeKeyVersion_ = getDefaultInstance().getActiveKeyVersion(); onChanged(); return this; } /** + * + * *
      * The asymmetric crypto key version to use for signing approval requests.
      * Empty active_key_version indicates that a Google-managed key should be used
@@ -1849,23 +2017,25 @@ public Builder clearActiveKeyVersion() {
      * 
* * string active_key_version = 6; + * * @param value The bytes for activeKeyVersion to set. * @return This builder for chaining. */ - public Builder setActiveKeyVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setActiveKeyVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + activeKeyVersion_ = value; onChanged(); return this; } - private boolean ancestorHasActiveKeyVersion_ ; + private boolean ancestorHasActiveKeyVersion_; /** + * + * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that an ancestor of this
@@ -1873,7 +2043,9 @@ public Builder setActiveKeyVersionBytes(
      * unset for the organization since organizations do not have ancestors).
      * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The ancestorHasActiveKeyVersion. */ @java.lang.Override @@ -1881,6 +2053,8 @@ public boolean getAncestorHasActiveKeyVersion() { return ancestorHasActiveKeyVersion_; } /** + * + * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that an ancestor of this
@@ -1888,17 +2062,21 @@ public boolean getAncestorHasActiveKeyVersion() {
      * unset for the organization since organizations do not have ancestors).
      * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The ancestorHasActiveKeyVersion to set. * @return This builder for chaining. */ public Builder setAncestorHasActiveKeyVersion(boolean value) { - + ancestorHasActiveKeyVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that an ancestor of this
@@ -1906,18 +2084,22 @@ public Builder setAncestorHasActiveKeyVersion(boolean value) {
      * unset for the organization since organizations do not have ancestors).
      * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearAncestorHasActiveKeyVersion() { - + ancestorHasActiveKeyVersion_ = false; onChanged(); return this; } - private boolean invalidKeyVersion_ ; + private boolean invalidKeyVersion_; /** + * + * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that there is some
@@ -1929,6 +2111,7 @@ public Builder clearAncestorHasActiveKeyVersion() {
      * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The invalidKeyVersion. */ @java.lang.Override @@ -1936,6 +2119,8 @@ public boolean getInvalidKeyVersion() { return invalidKeyVersion_; } /** + * + * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that there is some
@@ -1947,16 +2132,19 @@ public boolean getInvalidKeyVersion() {
      * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The invalidKeyVersion to set. * @return This builder for chaining. */ public Builder setInvalidKeyVersion(boolean value) { - + invalidKeyVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
      * method). If the field is true, that indicates that there is some
@@ -1968,17 +2156,18 @@ public Builder setInvalidKeyVersion(boolean value) {
      * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInvalidKeyVersion() { - + invalidKeyVersion_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1988,12 +2177,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessApprovalSettings) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessApprovalSettings) private static final com.google.cloud.accessapproval.v1.AccessApprovalSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessApprovalSettings(); } @@ -2002,16 +2191,16 @@ public static com.google.cloud.accessapproval.v1.AccessApprovalSettings getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessApprovalSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessApprovalSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessApprovalSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessApprovalSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2026,6 +2215,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.AccessApprovalSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java similarity index 89% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java index 70e382d8..8f546444 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessApprovalSettingsOrBuilder extends +public interface AccessApprovalSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessApprovalSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -16,10 +34,13 @@ public interface AccessApprovalSettingsOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the settings. Format is one of:
    *   * "projects/{project}/accessApprovalSettings"
@@ -28,12 +49,14 @@ public interface AccessApprovalSettingsOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -42,11 +65,13 @@ public interface AccessApprovalSettingsOrBuilder extends
    * 
* * repeated string notification_emails = 2; + * * @return A list containing the notificationEmails. */ - java.util.List - getNotificationEmailsList(); + java.util.List getNotificationEmailsList(); /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -55,10 +80,13 @@ public interface AccessApprovalSettingsOrBuilder extends
    * 
* * repeated string notification_emails = 2; + * * @return The count of notificationEmails. */ int getNotificationEmailsCount(); /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -67,11 +95,14 @@ public interface AccessApprovalSettingsOrBuilder extends
    * 
* * repeated string notification_emails = 2; + * * @param index The index of the element to return. * @return The notificationEmails at the given index. */ java.lang.String getNotificationEmails(int index); /** + * + * *
    * A list of email addresses to which notifications relating to approval
    * requests should be sent. Notifications relating to a resource will be sent
@@ -80,13 +111,15 @@ public interface AccessApprovalSettingsOrBuilder extends
    * 
* * repeated string notification_emails = 2; + * * @param index The index of the value to return. * @return The bytes of the notificationEmails at the given index. */ - com.google.protobuf.ByteString - getNotificationEmailsBytes(int index); + com.google.protobuf.ByteString getNotificationEmailsBytes(int index); /** + * + * *
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -102,9 +135,10 @@ public interface AccessApprovalSettingsOrBuilder extends
    *
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
-  java.util.List 
-      getEnrolledServicesList();
+  java.util.List getEnrolledServicesList();
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -122,6 +156,8 @@ public interface AccessApprovalSettingsOrBuilder extends
    */
   com.google.cloud.accessapproval.v1.EnrolledService getEnrolledServices(int index);
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -139,6 +175,8 @@ public interface AccessApprovalSettingsOrBuilder extends
    */
   int getEnrolledServicesCount();
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -154,9 +192,11 @@ public interface AccessApprovalSettingsOrBuilder extends
    *
    * repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;
    */
-  java.util.List 
+  java.util.List
       getEnrolledServicesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of Google Cloud Services for which the given resource has Access
    * Approval enrolled. Access requests for the resource given by name against
@@ -176,6 +216,8 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
       int index);
 
   /**
+   *
+   *
    * 
    * Output only. This field is read only (not settable via
    * UpdateAccessApprovalSettings method). If the field is true, that
@@ -185,11 +227,14 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The enrolledAncestor. */ boolean getEnrolledAncestor(); /** + * + * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -198,10 +243,13 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * string active_key_version = 6; + * * @return The activeKeyVersion. */ java.lang.String getActiveKeyVersion(); /** + * + * *
    * The asymmetric crypto key version to use for signing approval requests.
    * Empty active_key_version indicates that a Google-managed key should be used
@@ -210,12 +258,14 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * string active_key_version = 6; + * * @return The bytes for activeKeyVersion. */ - com.google.protobuf.ByteString - getActiveKeyVersionBytes(); + com.google.protobuf.ByteString getActiveKeyVersionBytes(); /** + * + * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that an ancestor of this
@@ -223,12 +273,16 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * unset for the organization since organizations do not have ancestors).
    * 
* - * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The ancestorHasActiveKeyVersion. */ boolean getAncestorHasActiveKeyVersion(); /** + * + * *
    * Output only. This field is read only (not settable via UpdateAccessApprovalSettings
    * method). If the field is true, that indicates that there is some
@@ -240,6 +294,7 @@ com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder getEnrolledServicesO
    * 
* * bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The invalidKeyVersion. */ boolean getInvalidKeyVersion(); diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java index 57120891..ac9c02d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocations.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Home office and physical location of the principal.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessLocations} */ -public final class AccessLocations extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessLocations extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessLocations) AccessLocationsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessLocations.newBuilder() to construct. private AccessLocations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessLocations() { principalOfficeCountry_ = ""; principalPhysicalLocationCountry_ = ""; @@ -26,16 +44,15 @@ private AccessLocations() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessLocations(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessLocations( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private AccessLocations( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - principalOfficeCountry_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + principalOfficeCountry_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - principalPhysicalLocationCountry_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + principalPhysicalLocationCountry_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private AccessLocations( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessLocations.class, com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); + com.google.cloud.accessapproval.v1.AccessLocations.class, + com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); } public static final int PRINCIPAL_OFFICE_COUNTRY_FIELD_NUMBER = 1; private volatile java.lang.Object principalOfficeCountry_; /** + * + * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -120,6 +143,7 @@ private AccessLocations(
    * 
* * string principal_office_country = 1; + * * @return The principalOfficeCountry. */ @java.lang.Override @@ -128,14 +152,15 @@ public java.lang.String getPrincipalOfficeCountry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalOfficeCountry_ = s; return s; } } /** + * + * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -153,16 +178,15 @@ public java.lang.String getPrincipalOfficeCountry() {
    * 
* * string principal_office_country = 1; + * * @return The bytes for principalOfficeCountry. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrincipalOfficeCountryBytes() { + public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() { java.lang.Object ref = principalOfficeCountry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalOfficeCountry_ = b; return b; } else { @@ -173,6 +197,8 @@ public java.lang.String getPrincipalOfficeCountry() { public static final int PRINCIPAL_PHYSICAL_LOCATION_COUNTRY_FIELD_NUMBER = 2; private volatile java.lang.Object principalPhysicalLocationCountry_; /** + * + * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -190,6 +216,7 @@ public java.lang.String getPrincipalOfficeCountry() {
    * 
* * string principal_physical_location_country = 2; + * * @return The principalPhysicalLocationCountry. */ @java.lang.Override @@ -198,14 +225,15 @@ public java.lang.String getPrincipalPhysicalLocationCountry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalPhysicalLocationCountry_ = s; return s; } } /** + * + * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -223,16 +251,15 @@ public java.lang.String getPrincipalPhysicalLocationCountry() {
    * 
* * string principal_physical_location_country = 2; + * * @return The bytes for principalPhysicalLocationCountry. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrincipalPhysicalLocationCountryBytes() { + public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes() { java.lang.Object ref = principalPhysicalLocationCountry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalPhysicalLocationCountry_ = b; return b; } else { @@ -241,6 +268,7 @@ public java.lang.String getPrincipalPhysicalLocationCountry() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,13 +280,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(principalOfficeCountry_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalOfficeCountry_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalPhysicalLocationCountry_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principalPhysicalLocationCountry_); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, principalPhysicalLocationCountry_); } unknownFields.writeTo(output); } @@ -273,7 +301,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalOfficeCountry_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalPhysicalLocationCountry_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principalPhysicalLocationCountry_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 2, principalPhysicalLocationCountry_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,17 +313,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.accessapproval.v1.AccessLocations)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessLocations other = (com.google.cloud.accessapproval.v1.AccessLocations) obj; + com.google.cloud.accessapproval.v1.AccessLocations other = + (com.google.cloud.accessapproval.v1.AccessLocations) obj; - if (!getPrincipalOfficeCountry() - .equals(other.getPrincipalOfficeCountry())) return false; - if (!getPrincipalPhysicalLocationCountry() - .equals(other.getPrincipalPhysicalLocationCountry())) return false; + if (!getPrincipalOfficeCountry().equals(other.getPrincipalOfficeCountry())) return false; + if (!getPrincipalPhysicalLocationCountry().equals(other.getPrincipalPhysicalLocationCountry())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -315,117 +345,126 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessLocations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessLocations parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessLocations parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessLocations prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Home office and physical location of the principal.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.AccessLocations} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessLocations) com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessLocations_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessLocations.class, com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); + com.google.cloud.accessapproval.v1.AccessLocations.class, + com.google.cloud.accessapproval.v1.AccessLocations.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessLocations.newBuilder() @@ -433,16 +472,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessLocations_descriptor; } @java.lang.Override @@ -475,7 +513,8 @@ public com.google.cloud.accessapproval.v1.AccessLocations build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessLocations buildPartial() { - com.google.cloud.accessapproval.v1.AccessLocations result = new com.google.cloud.accessapproval.v1.AccessLocations(this); + com.google.cloud.accessapproval.v1.AccessLocations result = + new com.google.cloud.accessapproval.v1.AccessLocations(this); result.principalOfficeCountry_ = principalOfficeCountry_; result.principalPhysicalLocationCountry_ = principalPhysicalLocationCountry_; onBuilt(); @@ -486,38 +525,39 @@ public com.google.cloud.accessapproval.v1.AccessLocations buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessLocations) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessLocations)other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessLocations) other); } else { super.mergeFrom(other); return this; @@ -525,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessLocations other) { - if (other == com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance()) + return this; if (!other.getPrincipalOfficeCountry().isEmpty()) { principalOfficeCountry_ = other.principalOfficeCountry_; onChanged(); @@ -553,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.AccessLocations) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.AccessLocations) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,6 +607,8 @@ public Builder mergeFrom( private java.lang.Object principalOfficeCountry_ = ""; /** + * + * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -582,13 +626,13 @@ public Builder mergeFrom(
      * 
* * string principal_office_country = 1; + * * @return The principalOfficeCountry. */ public java.lang.String getPrincipalOfficeCountry() { java.lang.Object ref = principalOfficeCountry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalOfficeCountry_ = s; return s; @@ -597,6 +641,8 @@ public java.lang.String getPrincipalOfficeCountry() { } } /** + * + * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -614,15 +660,14 @@ public java.lang.String getPrincipalOfficeCountry() {
      * 
* * string principal_office_country = 1; + * * @return The bytes for principalOfficeCountry. */ - public com.google.protobuf.ByteString - getPrincipalOfficeCountryBytes() { + public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes() { java.lang.Object ref = principalOfficeCountry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalOfficeCountry_ = b; return b; } else { @@ -630,6 +675,8 @@ public java.lang.String getPrincipalOfficeCountry() { } } /** + * + * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -647,20 +694,22 @@ public java.lang.String getPrincipalOfficeCountry() {
      * 
* * string principal_office_country = 1; + * * @param value The principalOfficeCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalOfficeCountry( - java.lang.String value) { + public Builder setPrincipalOfficeCountry(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalOfficeCountry_ = value; onChanged(); return this; } /** + * + * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -678,15 +727,18 @@ public Builder setPrincipalOfficeCountry(
      * 
* * string principal_office_country = 1; + * * @return This builder for chaining. */ public Builder clearPrincipalOfficeCountry() { - + principalOfficeCountry_ = getDefaultInstance().getPrincipalOfficeCountry(); onChanged(); return this; } /** + * + * *
      * The "home office" location of the principal. A two-letter country code
      * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -704,16 +756,16 @@ public Builder clearPrincipalOfficeCountry() {
      * 
* * string principal_office_country = 1; + * * @param value The bytes for principalOfficeCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalOfficeCountryBytes( - com.google.protobuf.ByteString value) { + public Builder setPrincipalOfficeCountryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalOfficeCountry_ = value; onChanged(); return this; @@ -721,6 +773,8 @@ public Builder setPrincipalOfficeCountryBytes( private java.lang.Object principalPhysicalLocationCountry_ = ""; /** + * + * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -738,13 +792,13 @@ public Builder setPrincipalOfficeCountryBytes(
      * 
* * string principal_physical_location_country = 2; + * * @return The principalPhysicalLocationCountry. */ public java.lang.String getPrincipalPhysicalLocationCountry() { java.lang.Object ref = principalPhysicalLocationCountry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalPhysicalLocationCountry_ = s; return s; @@ -753,6 +807,8 @@ public java.lang.String getPrincipalPhysicalLocationCountry() { } } /** + * + * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -770,15 +826,14 @@ public java.lang.String getPrincipalPhysicalLocationCountry() {
      * 
* * string principal_physical_location_country = 2; + * * @return The bytes for principalPhysicalLocationCountry. */ - public com.google.protobuf.ByteString - getPrincipalPhysicalLocationCountryBytes() { + public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes() { java.lang.Object ref = principalPhysicalLocationCountry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalPhysicalLocationCountry_ = b; return b; } else { @@ -786,6 +841,8 @@ public java.lang.String getPrincipalPhysicalLocationCountry() { } } /** + * + * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -803,20 +860,22 @@ public java.lang.String getPrincipalPhysicalLocationCountry() {
      * 
* * string principal_physical_location_country = 2; + * * @param value The principalPhysicalLocationCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalPhysicalLocationCountry( - java.lang.String value) { + public Builder setPrincipalPhysicalLocationCountry(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalPhysicalLocationCountry_ = value; onChanged(); return this; } /** + * + * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -834,15 +893,19 @@ public Builder setPrincipalPhysicalLocationCountry(
      * 
* * string principal_physical_location_country = 2; + * * @return This builder for chaining. */ public Builder clearPrincipalPhysicalLocationCountry() { - - principalPhysicalLocationCountry_ = getDefaultInstance().getPrincipalPhysicalLocationCountry(); + + principalPhysicalLocationCountry_ = + getDefaultInstance().getPrincipalPhysicalLocationCountry(); onChanged(); return this; } /** + * + * *
      * Physical location of the principal at the time of the access. A
      * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -860,23 +923,23 @@ public Builder clearPrincipalPhysicalLocationCountry() {
      * 
* * string principal_physical_location_country = 2; + * * @param value The bytes for principalPhysicalLocationCountry to set. * @return This builder for chaining. */ - public Builder setPrincipalPhysicalLocationCountryBytes( - com.google.protobuf.ByteString value) { + public Builder setPrincipalPhysicalLocationCountryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalPhysicalLocationCountry_ = 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); } @@ -886,12 +949,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessLocations) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessLocations) private static final com.google.cloud.accessapproval.v1.AccessLocations DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessLocations(); } @@ -900,16 +963,16 @@ public static com.google.cloud.accessapproval.v1.AccessLocations getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessLocations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessLocations(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessLocations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessLocations(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.AccessLocations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java index 69391601..1c3dbd93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessLocationsOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessLocationsOrBuilder extends +public interface AccessLocationsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessLocations) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -25,10 +43,13 @@ public interface AccessLocationsOrBuilder extends
    * 
* * string principal_office_country = 1; + * * @return The principalOfficeCountry. */ java.lang.String getPrincipalOfficeCountry(); /** + * + * *
    * The "home office" location of the principal. A two-letter country code
    * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
@@ -46,12 +67,14 @@ public interface AccessLocationsOrBuilder extends
    * 
* * string principal_office_country = 1; + * * @return The bytes for principalOfficeCountry. */ - com.google.protobuf.ByteString - getPrincipalOfficeCountryBytes(); + com.google.protobuf.ByteString getPrincipalOfficeCountryBytes(); /** + * + * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -69,10 +92,13 @@ public interface AccessLocationsOrBuilder extends
    * 
* * string principal_physical_location_country = 2; + * * @return The principalPhysicalLocationCountry. */ java.lang.String getPrincipalPhysicalLocationCountry(); /** + * + * *
    * Physical location of the principal at the time of the access. A
    * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
@@ -90,8 +116,8 @@ public interface AccessLocationsOrBuilder extends
    * 
* * string principal_physical_location_country = 2; + * * @return The bytes for principalPhysicalLocationCountry. */ - com.google.protobuf.ByteString - getPrincipalPhysicalLocationCountryBytes(); + com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java index baf2d09e..b27d098f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReason.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -/** - * Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} - */ -public final class AccessReason extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} */ +public final class AccessReason extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.AccessReason) AccessReasonOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessReason.newBuilder() to construct. private AccessReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessReason() { type_ = 0; detail_ = ""; @@ -22,16 +36,15 @@ private AccessReason() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessReason(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessReason( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,25 +63,27 @@ private AccessReason( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - detail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + detail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,36 +91,41 @@ private AccessReason( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessReason.class, com.google.cloud.accessapproval.v1.AccessReason.Builder.class); + com.google.cloud.accessapproval.v1.AccessReason.class, + com.google.cloud.accessapproval.v1.AccessReason.Builder.class); } /** + * + * *
    * Type of access justification.
    * 
* * Protobuf enum {@code google.cloud.accessapproval.v1.AccessReason.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value for proto, shouldn't be used.
      * 
@@ -114,6 +134,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Customer made a request or raised an issue that required the principal to
      * access customer data. `detail` is of the form ("#####" is the issue ID):
@@ -129,6 +151,8 @@ public enum Type
      */
     CUSTOMER_INITIATED_SUPPORT(1),
     /**
+     *
+     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services. Often this access is used to confirm that
@@ -140,6 +164,8 @@ public enum Type
      */
     GOOGLE_INITIATED_SERVICE(2),
     /**
+     *
+     *
      * 
      * Google initiated service for security, fraud, abuse, or compliance
      * purposes.
@@ -149,6 +175,8 @@ public enum Type
      */
     GOOGLE_INITIATED_REVIEW(3),
     /**
+     *
+     *
      * 
      * The principal was compelled to access customer data in order to respond
      * to a legal third party data request or process, including legal processes
@@ -159,6 +187,8 @@ public enum Type
      */
     THIRD_PARTY_DATA_REQUEST(4),
     /**
+     *
+     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services or a known outage.
@@ -171,6 +201,8 @@ public enum Type
     ;
 
     /**
+     *
+     *
      * 
      * Default value for proto, shouldn't be used.
      * 
@@ -179,6 +211,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Customer made a request or raised an issue that required the principal to
      * access customer data. `detail` is of the form ("#####" is the issue ID):
@@ -194,6 +228,8 @@ public enum Type
      */
     public static final int CUSTOMER_INITIATED_SUPPORT_VALUE = 1;
     /**
+     *
+     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services. Often this access is used to confirm that
@@ -205,6 +241,8 @@ public enum Type
      */
     public static final int GOOGLE_INITIATED_SERVICE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Google initiated service for security, fraud, abuse, or compliance
      * purposes.
@@ -214,6 +252,8 @@ public enum Type
      */
     public static final int GOOGLE_INITIATED_REVIEW_VALUE = 3;
     /**
+     *
+     *
      * 
      * The principal was compelled to access customer data in order to respond
      * to a legal third party data request or process, including legal processes
@@ -224,6 +264,8 @@ public enum Type
      */
     public static final int THIRD_PARTY_DATA_REQUEST_VALUE = 4;
     /**
+     *
+     *
      * 
      * The principal accessed customer data in order to diagnose or resolve a
      * suspected issue in services or a known outage.
@@ -233,7 +275,6 @@ public enum Type
      */
     public static final int GOOGLE_RESPONSE_TO_PRODUCTION_ALERT_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -258,52 +299,55 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return CUSTOMER_INITIATED_SUPPORT;
-        case 2: return GOOGLE_INITIATED_SERVICE;
-        case 3: return GOOGLE_INITIATED_REVIEW;
-        case 4: return THIRD_PARTY_DATA_REQUEST;
-        case 5: return GOOGLE_RESPONSE_TO_PRODUCTION_ALERT;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return CUSTOMER_INITIATED_SUPPORT;
+        case 2:
+          return GOOGLE_INITIATED_SERVICE;
+        case 3:
+          return GOOGLE_INITIATED_REVIEW;
+        case 4:
+          return THIRD_PARTY_DATA_REQUEST;
+        case 5:
+          return GOOGLE_RESPONSE_TO_PRODUCTION_ALERT;
+        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<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Type findValueByNumber(int number) {
-              return Type.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 Type findValueByNumber(int number) {
+            return Type.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.accessapproval.v1.AccessReason.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -323,38 +367,52 @@ private Type(int value) {
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_;
   /**
+   *
+   *
    * 
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason.Type getType() { + @java.lang.Override + public com.google.cloud.accessapproval.v1.AccessReason.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.AccessReason.Type result = com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); - return result == null ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED : result; + com.google.cloud.accessapproval.v1.AccessReason.Type result = + com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); + return result == null + ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED + : result; } public static final int DETAIL_FIELD_NUMBER = 2; private volatile java.lang.Object detail_; /** + * + * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; + * * @return The detail. */ @java.lang.Override @@ -363,29 +421,29 @@ public java.lang.String getDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** + * + * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; + * * @return The bytes for detail. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { + public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -394,6 +452,7 @@ public java.lang.String getDetail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,9 +464,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { @@ -422,9 +481,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.accessapproval.v1.AccessReason.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); @@ -437,16 +496,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.AccessReason)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.AccessReason other = (com.google.cloud.accessapproval.v1.AccessReason) obj; + com.google.cloud.accessapproval.v1.AccessReason other = + (com.google.cloud.accessapproval.v1.AccessReason) obj; if (type_ != other.type_) return false; - if (!getDetail() - .equals(other.getDetail())) return false; + if (!getDetail().equals(other.getDetail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -467,114 +526,119 @@ public int hashCode() { return hash; } - public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessReason 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.accessapproval.v1.AccessReason parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.AccessReason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.AccessReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessReason parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.AccessReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.AccessReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.accessapproval.v1.AccessReason} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.AccessReason) com.google.cloud.accessapproval.v1.AccessReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.AccessReason.class, com.google.cloud.accessapproval.v1.AccessReason.Builder.class); + com.google.cloud.accessapproval.v1.AccessReason.class, + com.google.cloud.accessapproval.v1.AccessReason.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.AccessReason.newBuilder() @@ -582,16 +646,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -603,9 +666,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_AccessReason_descriptor; } @java.lang.Override @@ -624,7 +687,8 @@ public com.google.cloud.accessapproval.v1.AccessReason build() { @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason buildPartial() { - com.google.cloud.accessapproval.v1.AccessReason result = new com.google.cloud.accessapproval.v1.AccessReason(this); + com.google.cloud.accessapproval.v1.AccessReason result = + new com.google.cloud.accessapproval.v1.AccessReason(this); result.type_ = type_; result.detail_ = detail_; onBuilt(); @@ -635,38 +699,39 @@ public com.google.cloud.accessapproval.v1.AccessReason buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.AccessReason) { - return mergeFrom((com.google.cloud.accessapproval.v1.AccessReason)other); + return mergeFrom((com.google.cloud.accessapproval.v1.AccessReason) other); } else { super.mergeFrom(other); return this; @@ -674,7 +739,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.AccessReason other) { - if (other == com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -713,51 +779,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.AccessReason.Type result = com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); - return result == null ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED : result; + com.google.cloud.accessapproval.v1.AccessReason.Type result = + com.google.cloud.accessapproval.v1.AccessReason.Type.valueOf(type_); + return result == null + ? com.google.cloud.accessapproval.v1.AccessReason.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -765,21 +847,24 @@ public Builder setType(com.google.cloud.accessapproval.v1.AccessReason.Type valu if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of access justification.
      * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -787,18 +872,20 @@ public Builder clearType() { private java.lang.Object detail_ = ""; /** + * + * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; + * * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; @@ -807,20 +894,21 @@ public java.lang.String getDetail() { } } /** + * + * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; + * * @return The bytes for detail. */ - public com.google.protobuf.ByteString - getDetailBytes() { + public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -828,61 +916,68 @@ public java.lang.String getDetail() { } } /** + * + * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; + * * @param value The detail to set. * @return This builder for chaining. */ - public Builder setDetail( - java.lang.String value) { + public Builder setDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** + * + * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; + * * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** + * + * *
      * More detail about certain reason types. See comments for each type above.
      * 
* * string detail = 2; + * * @param value The bytes for detail to set. * @return This builder for chaining. */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.AccessReason) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.AccessReason) private static final com.google.cloud.accessapproval.v1.AccessReason DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.AccessReason(); } @@ -906,16 +1001,16 @@ public static com.google.cloud.accessapproval.v1.AccessReason getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessReason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessReason(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessReason(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.AccessReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java index e763460f..54741da3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessReasonOrBuilder.java @@ -1,48 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface AccessReasonOrBuilder extends +public interface AccessReasonOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.AccessReason) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Type of access justification.
    * 
* * .google.cloud.accessapproval.v1.AccessReason.Type type = 1; + * * @return The type. */ com.google.cloud.accessapproval.v1.AccessReason.Type getType(); /** + * + * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; + * * @return The detail. */ java.lang.String getDetail(); /** + * + * *
    * More detail about certain reason types. See comments for each type above.
    * 
* * string detail = 2; + * * @return The bytes for detail. */ - com.google.protobuf.ByteString - getDetailBytes(); + com.google.protobuf.ByteString getDetailBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java index 6a42afdf..1555c445 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequest.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * A request for the customer to approve access to a resource.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApprovalRequest} */ -public final class ApprovalRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ApprovalRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ApprovalRequest) ApprovalRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ApprovalRequest.newBuilder() to construct. private ApprovalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ApprovalRequest() { name_ = ""; requestedResourceName_ = ""; @@ -26,16 +44,15 @@ private ApprovalRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ApprovalRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ApprovalRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,118 +71,145 @@ private ApprovalRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedResourceName_ = s; - break; - } - case 26: { - com.google.cloud.accessapproval.v1.AccessReason.Builder subBuilder = null; - if (requestedReason_ != null) { - subBuilder = requestedReason_.toBuilder(); - } - requestedReason_ = input.readMessage(com.google.cloud.accessapproval.v1.AccessReason.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedReason_); - requestedReason_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.cloud.accessapproval.v1.AccessLocations.Builder subBuilder = null; - if (requestedLocations_ != null) { - subBuilder = requestedLocations_.toBuilder(); + requestedResourceName_ = s; + break; } - requestedLocations_ = input.readMessage(com.google.cloud.accessapproval.v1.AccessLocations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedLocations_); - requestedLocations_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.accessapproval.v1.AccessReason.Builder subBuilder = null; + if (requestedReason_ != null) { + subBuilder = requestedReason_.toBuilder(); + } + requestedReason_ = + input.readMessage( + com.google.cloud.accessapproval.v1.AccessReason.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedReason_); + requestedReason_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (requestTime_ != null) { - subBuilder = requestTime_.toBuilder(); + case 34: + { + com.google.cloud.accessapproval.v1.AccessLocations.Builder subBuilder = null; + if (requestedLocations_ != null) { + subBuilder = requestedLocations_.toBuilder(); + } + requestedLocations_ = + input.readMessage( + com.google.cloud.accessapproval.v1.AccessLocations.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedLocations_); + requestedLocations_ = subBuilder.buildPartial(); + } + + break; } - requestTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestTime_); - requestTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (requestTime_ != null) { + subBuilder = requestTime_.toBuilder(); + } + requestTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestTime_); + requestTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (requestedExpiration_ != null) { - subBuilder = requestedExpiration_.toBuilder(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (requestedExpiration_ != null) { + subBuilder = requestedExpiration_.toBuilder(); + } + requestedExpiration_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedExpiration_); + requestedExpiration_ = subBuilder.buildPartial(); + } + + break; } - requestedExpiration_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedExpiration_); - requestedExpiration_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.accessapproval.v1.ApproveDecision.Builder subBuilder = null; + if (decisionCase_ == 7) { + subBuilder = + ((com.google.cloud.accessapproval.v1.ApproveDecision) decision_).toBuilder(); + } + decision_ = + input.readMessage( + com.google.cloud.accessapproval.v1.ApproveDecision.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.accessapproval.v1.ApproveDecision) decision_); + decision_ = subBuilder.buildPartial(); + } + decisionCase_ = 7; + break; } - - break; - } - case 58: { - com.google.cloud.accessapproval.v1.ApproveDecision.Builder subBuilder = null; - if (decisionCase_ == 7) { - subBuilder = ((com.google.cloud.accessapproval.v1.ApproveDecision) decision_).toBuilder(); - } - decision_ = - input.readMessage(com.google.cloud.accessapproval.v1.ApproveDecision.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.accessapproval.v1.ApproveDecision) decision_); - decision_ = subBuilder.buildPartial(); - } - decisionCase_ = 7; - break; - } - case 66: { - com.google.cloud.accessapproval.v1.DismissDecision.Builder subBuilder = null; - if (decisionCase_ == 8) { - subBuilder = ((com.google.cloud.accessapproval.v1.DismissDecision) decision_).toBuilder(); - } - decision_ = - input.readMessage(com.google.cloud.accessapproval.v1.DismissDecision.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.accessapproval.v1.DismissDecision) decision_); - decision_ = subBuilder.buildPartial(); + case 66: + { + com.google.cloud.accessapproval.v1.DismissDecision.Builder subBuilder = null; + if (decisionCase_ == 8) { + subBuilder = + ((com.google.cloud.accessapproval.v1.DismissDecision) decision_).toBuilder(); + } + decision_ = + input.readMessage( + com.google.cloud.accessapproval.v1.DismissDecision.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.accessapproval.v1.DismissDecision) decision_); + decision_ = subBuilder.buildPartial(); + } + decisionCase_ = 8; + break; } - decisionCase_ = 8; - break; - } - case 74: { - com.google.cloud.accessapproval.v1.ResourceProperties.Builder subBuilder = null; - if (requestedResourceProperties_ != null) { - subBuilder = requestedResourceProperties_.toBuilder(); - } - requestedResourceProperties_ = input.readMessage(com.google.cloud.accessapproval.v1.ResourceProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedResourceProperties_); - requestedResourceProperties_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.accessapproval.v1.ResourceProperties.Builder subBuilder = null; + if (requestedResourceProperties_ != null) { + subBuilder = requestedResourceProperties_.toBuilder(); + } + requestedResourceProperties_ = + input.readMessage( + com.google.cloud.accessapproval.v1.ResourceProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestedResourceProperties_); + requestedResourceProperties_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -173,35 +217,40 @@ private ApprovalRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApprovalRequest.class, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); + com.google.cloud.accessapproval.v1.ApprovalRequest.class, + com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); } private int decisionCase_ = 0; private java.lang.Object decision_; + public enum DecisionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { APPROVE(7), DISMISS(8), DECISION_NOT_SET(0); private final int value; + private DecisionCase(int value) { this.value = value; } @@ -217,32 +266,38 @@ public static DecisionCase valueOf(int value) { public static DecisionCase forNumber(int value) { switch (value) { - case 7: return APPROVE; - case 8: return DISMISS; - case 0: return DECISION_NOT_SET; - default: return null; + case 7: + return APPROVE; + case 8: + return DISMISS; + case 0: + return DECISION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DecisionCase - getDecisionCase() { - return DecisionCase.forNumber( - decisionCase_); + public DecisionCase getDecisionCase() { + return DecisionCase.forNumber(decisionCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -251,30 +306,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * 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 { @@ -285,6 +340,8 @@ public java.lang.String getName() { public static final int REQUESTED_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object requestedResourceName_; /** + * + * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -296,6 +353,7 @@ public java.lang.String getName() {
    * 
* * string requested_resource_name = 2; + * * @return The requestedResourceName. */ @java.lang.Override @@ -304,14 +362,15 @@ public java.lang.String getRequestedResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedResourceName_ = s; return s; } } /** + * + * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -323,16 +382,15 @@ public java.lang.String getRequestedResourceName() {
    * 
* * string requested_resource_name = 2; + * * @return The bytes for requestedResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestedResourceNameBytes() { + public com.google.protobuf.ByteString getRequestedResourceNameBytes() { java.lang.Object ref = requestedResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestedResourceName_ = b; return b; } else { @@ -343,11 +401,15 @@ public java.lang.String getRequestedResourceName() { public static final int REQUESTED_RESOURCE_PROPERTIES_FIELD_NUMBER = 9; private com.google.cloud.accessapproval.v1.ResourceProperties requestedResourceProperties_; /** + * + * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * + * * @return Whether the requestedResourceProperties field is set. */ @java.lang.Override @@ -355,37 +417,50 @@ public boolean hasRequestedResourceProperties() { return requestedResourceProperties_ != null; } /** + * + * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * + * * @return The requestedResourceProperties. */ @java.lang.Override public com.google.cloud.accessapproval.v1.ResourceProperties getRequestedResourceProperties() { - return requestedResourceProperties_ == null ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() : requestedResourceProperties_; + return requestedResourceProperties_ == null + ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() + : requestedResourceProperties_; } /** + * + * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ @java.lang.Override - public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder() { + public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder + getRequestedResourcePropertiesOrBuilder() { return getRequestedResourceProperties(); } public static final int REQUESTED_REASON_FIELD_NUMBER = 3; private com.google.cloud.accessapproval.v1.AccessReason requestedReason_; /** + * + * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; + * * @return Whether the requestedReason field is set. */ @java.lang.Override @@ -393,18 +468,25 @@ public boolean hasRequestedReason() { return requestedReason_ != null; } /** + * + * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; + * * @return The requestedReason. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessReason getRequestedReason() { - return requestedReason_ == null ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() : requestedReason_; + return requestedReason_ == null + ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() + : requestedReason_; } /** + * + * *
    * The justification for which approval is being requested.
    * 
@@ -419,11 +501,14 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas public static final int REQUESTED_LOCATIONS_FIELD_NUMBER = 4; private com.google.cloud.accessapproval.v1.AccessLocations requestedLocations_; /** + * + * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; + * * @return Whether the requestedLocations field is set. */ @java.lang.Override @@ -431,18 +516,25 @@ public boolean hasRequestedLocations() { return requestedLocations_ != null; } /** + * + * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; + * * @return The requestedLocations. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations() { - return requestedLocations_ == null ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() : requestedLocations_; + return requestedLocations_ == null + ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() + : requestedLocations_; } /** + * + * *
    * The locations for which approval is being requested.
    * 
@@ -450,18 +542,22 @@ public com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations( * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ @java.lang.Override - public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedLocationsOrBuilder() { + public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder + getRequestedLocationsOrBuilder() { return getRequestedLocations(); } public static final int REQUEST_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp requestTime_; /** + * + * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; + * * @return Whether the requestTime field is set. */ @java.lang.Override @@ -469,11 +565,14 @@ public boolean hasRequestTime() { return requestTime_ != null; } /** + * + * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; + * * @return The requestTime. */ @java.lang.Override @@ -481,6 +580,8 @@ public com.google.protobuf.Timestamp getRequestTime() { return requestTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestTime_; } /** + * + * *
    * The time at which approval was requested.
    * 
@@ -495,12 +596,15 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { public static final int REQUESTED_EXPIRATION_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp requestedExpiration_; /** + * + * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; + * * @return Whether the requestedExpiration field is set. */ @java.lang.Override @@ -508,19 +612,26 @@ public boolean hasRequestedExpiration() { return requestedExpiration_ != null; } /** + * + * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; + * * @return The requestedExpiration. */ @java.lang.Override public com.google.protobuf.Timestamp getRequestedExpiration() { - return requestedExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestedExpiration_; + return requestedExpiration_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : requestedExpiration_; } /** + * + * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
@@ -535,11 +646,14 @@ public com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder()
 
   public static final int APPROVE_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; + * * @return Whether the approve field is set. */ @java.lang.Override @@ -547,21 +661,26 @@ public boolean hasApprove() { return decisionCase_ == 7; } /** + * + * *
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; + * * @return The approve. */ @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveDecision getApprove() { if (decisionCase_ == 7) { - return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; + return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; } return com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance(); } /** + * + * *
    * Access was approved.
    * 
@@ -571,18 +690,21 @@ public com.google.cloud.accessapproval.v1.ApproveDecision getApprove() { @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrBuilder() { if (decisionCase_ == 7) { - return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; + return (com.google.cloud.accessapproval.v1.ApproveDecision) decision_; } return com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance(); } public static final int DISMISS_FIELD_NUMBER = 8; /** + * + * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; + * * @return Whether the dismiss field is set. */ @java.lang.Override @@ -590,21 +712,26 @@ public boolean hasDismiss() { return decisionCase_ == 8; } /** + * + * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; + * * @return The dismiss. */ @java.lang.Override public com.google.cloud.accessapproval.v1.DismissDecision getDismiss() { if (decisionCase_ == 8) { - return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; + return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; } return com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance(); } /** + * + * *
    * The request was dismissed.
    * 
@@ -614,12 +741,13 @@ public com.google.cloud.accessapproval.v1.DismissDecision getDismiss() { @java.lang.Override public com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder getDismissOrBuilder() { if (decisionCase_ == 8) { - return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; + return (com.google.cloud.accessapproval.v1.DismissDecision) decision_; } return com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,8 +759,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -676,32 +803,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestedResourceName_); } if (requestedReason_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRequestedReason()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestedReason()); } if (requestedLocations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getRequestedLocations()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRequestedLocations()); } if (requestTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRequestTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRequestTime()); } if (requestedExpiration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getRequestedExpiration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRequestedExpiration()); } if (decisionCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.accessapproval.v1.ApproveDecision) decision_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.accessapproval.v1.ApproveDecision) decision_); } if (decisionCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.accessapproval.v1.DismissDecision) decision_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.accessapproval.v1.DismissDecision) decision_); } if (requestedResourceProperties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getRequestedResourceProperties()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getRequestedResourceProperties()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -711,51 +837,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.ApprovalRequest)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ApprovalRequest other = (com.google.cloud.accessapproval.v1.ApprovalRequest) obj; + com.google.cloud.accessapproval.v1.ApprovalRequest other = + (com.google.cloud.accessapproval.v1.ApprovalRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestedResourceName() - .equals(other.getRequestedResourceName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestedResourceName().equals(other.getRequestedResourceName())) return false; if (hasRequestedResourceProperties() != other.hasRequestedResourceProperties()) return false; if (hasRequestedResourceProperties()) { - if (!getRequestedResourceProperties() - .equals(other.getRequestedResourceProperties())) return false; + if (!getRequestedResourceProperties().equals(other.getRequestedResourceProperties())) + return false; } if (hasRequestedReason() != other.hasRequestedReason()) return false; if (hasRequestedReason()) { - if (!getRequestedReason() - .equals(other.getRequestedReason())) return false; + if (!getRequestedReason().equals(other.getRequestedReason())) return false; } if (hasRequestedLocations() != other.hasRequestedLocations()) return false; if (hasRequestedLocations()) { - if (!getRequestedLocations() - .equals(other.getRequestedLocations())) return false; + if (!getRequestedLocations().equals(other.getRequestedLocations())) return false; } if (hasRequestTime() != other.hasRequestTime()) return false; if (hasRequestTime()) { - if (!getRequestTime() - .equals(other.getRequestTime())) return false; + if (!getRequestTime().equals(other.getRequestTime())) return false; } if (hasRequestedExpiration() != other.hasRequestedExpiration()) return false; if (hasRequestedExpiration()) { - if (!getRequestedExpiration() - .equals(other.getRequestedExpiration())) return false; + if (!getRequestedExpiration().equals(other.getRequestedExpiration())) return false; } if (!getDecisionCase().equals(other.getDecisionCase())) return false; switch (decisionCase_) { case 7: - if (!getApprove() - .equals(other.getApprove())) return false; + if (!getApprove().equals(other.getApprove())) return false; break; case 8: - if (!getDismiss() - .equals(other.getDismiss())) return false; + if (!getDismiss().equals(other.getDismiss())) return false; break; case 0: default: @@ -813,117 +932,126 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApprovalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApprovalRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.ApprovalRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request for the customer to approve access to a resource.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApprovalRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ApprovalRequest) com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApprovalRequest.class, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); + com.google.cloud.accessapproval.v1.ApprovalRequest.class, + com.google.cloud.accessapproval.v1.ApprovalRequest.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ApprovalRequest.newBuilder() @@ -931,16 +1059,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -984,9 +1111,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApprovalRequest_descriptor; } @java.lang.Override @@ -1005,7 +1132,8 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ApprovalRequest buildPartial() { - com.google.cloud.accessapproval.v1.ApprovalRequest result = new com.google.cloud.accessapproval.v1.ApprovalRequest(this); + com.google.cloud.accessapproval.v1.ApprovalRequest result = + new com.google.cloud.accessapproval.v1.ApprovalRequest(this); result.name_ = name_; result.requestedResourceName_ = requestedResourceName_; if (requestedResourcePropertiesBuilder_ == null) { @@ -1056,38 +1184,39 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ApprovalRequest) { - return mergeFrom((com.google.cloud.accessapproval.v1.ApprovalRequest)other); + return mergeFrom((com.google.cloud.accessapproval.v1.ApprovalRequest) other); } else { super.mergeFrom(other); return this; @@ -1095,7 +1224,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApprovalRequest other) { - if (other == com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1120,17 +1250,20 @@ public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApprovalRequest othe mergeRequestedExpiration(other.getRequestedExpiration()); } switch (other.getDecisionCase()) { - case APPROVE: { - mergeApprove(other.getApprove()); - break; - } - case DISMISS: { - mergeDismiss(other.getDismiss()); - break; - } - case DECISION_NOT_SET: { - break; - } + case APPROVE: + { + mergeApprove(other.getApprove()); + break; + } + case DISMISS: + { + mergeDismiss(other.getDismiss()); + break; + } + case DECISION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1151,7 +1284,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.ApprovalRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.ApprovalRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1160,12 +1294,12 @@ public Builder mergeFrom( } return this; } + private int decisionCase_ = 0; private java.lang.Object decision_; - public DecisionCase - getDecisionCase() { - return DecisionCase.forNumber( - decisionCase_); + + public DecisionCase getDecisionCase() { + return DecisionCase.forNumber(decisionCase_); } public Builder clearDecision() { @@ -1175,22 +1309,23 @@ public Builder clearDecision() { return this; } - private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * 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; @@ -1199,21 +1334,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1221,57 +1357,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the request. Format is
      * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1279,6 +1422,8 @@ public Builder setNameBytes( private java.lang.Object requestedResourceName_ = ""; /** + * + * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1290,13 +1435,13 @@ public Builder setNameBytes(
      * 
* * string requested_resource_name = 2; + * * @return The requestedResourceName. */ public java.lang.String getRequestedResourceName() { java.lang.Object ref = requestedResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedResourceName_ = s; return s; @@ -1305,6 +1450,8 @@ public java.lang.String getRequestedResourceName() { } } /** + * + * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1316,15 +1463,14 @@ public java.lang.String getRequestedResourceName() {
      * 
* * string requested_resource_name = 2; + * * @return The bytes for requestedResourceName. */ - public com.google.protobuf.ByteString - getRequestedResourceNameBytes() { + public com.google.protobuf.ByteString getRequestedResourceNameBytes() { java.lang.Object ref = requestedResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestedResourceName_ = b; return b; } else { @@ -1332,6 +1478,8 @@ public java.lang.String getRequestedResourceName() { } } /** + * + * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1343,20 +1491,22 @@ public java.lang.String getRequestedResourceName() {
      * 
* * string requested_resource_name = 2; + * * @param value The requestedResourceName to set. * @return This builder for chaining. */ - public Builder setRequestedResourceName( - java.lang.String value) { + public Builder setRequestedResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestedResourceName_ = value; onChanged(); return this; } /** + * + * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1368,15 +1518,18 @@ public Builder setRequestedResourceName(
      * 
* * string requested_resource_name = 2; + * * @return This builder for chaining. */ public Builder clearRequestedResourceName() { - + requestedResourceName_ = getDefaultInstance().getRequestedResourceName(); onChanged(); return this; } /** + * + * *
      * The resource for which approval is being requested. The format of the
      * resource name is defined at
@@ -1388,16 +1541,16 @@ public Builder clearRequestedResourceName() {
      * 
* * string requested_resource_name = 2; + * * @param value The bytes for requestedResourceName to set. * @return This builder for chaining. */ - public Builder setRequestedResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestedResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestedResourceName_ = value; onChanged(); return this; @@ -1405,41 +1558,58 @@ public Builder setRequestedResourceNameBytes( private com.google.cloud.accessapproval.v1.ResourceProperties requestedResourceProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ResourceProperties, com.google.cloud.accessapproval.v1.ResourceProperties.Builder, com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> requestedResourcePropertiesBuilder_; + com.google.cloud.accessapproval.v1.ResourceProperties, + com.google.cloud.accessapproval.v1.ResourceProperties.Builder, + com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> + requestedResourcePropertiesBuilder_; /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * + * * @return Whether the requestedResourceProperties field is set. */ public boolean hasRequestedResourceProperties() { return requestedResourcePropertiesBuilder_ != null || requestedResourceProperties_ != null; } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * + * * @return The requestedResourceProperties. */ public com.google.cloud.accessapproval.v1.ResourceProperties getRequestedResourceProperties() { if (requestedResourcePropertiesBuilder_ == null) { - return requestedResourceProperties_ == null ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() : requestedResourceProperties_; + return requestedResourceProperties_ == null + ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() + : requestedResourceProperties_; } else { return requestedResourcePropertiesBuilder_.getMessage(); } } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ - public Builder setRequestedResourceProperties(com.google.cloud.accessapproval.v1.ResourceProperties value) { + public Builder setRequestedResourceProperties( + com.google.cloud.accessapproval.v1.ResourceProperties value) { if (requestedResourcePropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1453,11 +1623,14 @@ public Builder setRequestedResourceProperties(com.google.cloud.accessapproval.v1 return this; } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ public Builder setRequestedResourceProperties( com.google.cloud.accessapproval.v1.ResourceProperties.Builder builderForValue) { @@ -1471,17 +1644,24 @@ public Builder setRequestedResourceProperties( return this; } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ - public Builder mergeRequestedResourceProperties(com.google.cloud.accessapproval.v1.ResourceProperties value) { + public Builder mergeRequestedResourceProperties( + com.google.cloud.accessapproval.v1.ResourceProperties value) { if (requestedResourcePropertiesBuilder_ == null) { if (requestedResourceProperties_ != null) { requestedResourceProperties_ = - com.google.cloud.accessapproval.v1.ResourceProperties.newBuilder(requestedResourceProperties_).mergeFrom(value).buildPartial(); + com.google.cloud.accessapproval.v1.ResourceProperties.newBuilder( + requestedResourceProperties_) + .mergeFrom(value) + .buildPartial(); } else { requestedResourceProperties_ = value; } @@ -1493,11 +1673,14 @@ public Builder mergeRequestedResourceProperties(com.google.cloud.accessapproval. return this; } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ public Builder clearRequestedResourceProperties() { if (requestedResourcePropertiesBuilder_ == null) { @@ -1511,48 +1694,63 @@ public Builder clearRequestedResourceProperties() { return this; } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ - public com.google.cloud.accessapproval.v1.ResourceProperties.Builder getRequestedResourcePropertiesBuilder() { - + public com.google.cloud.accessapproval.v1.ResourceProperties.Builder + getRequestedResourcePropertiesBuilder() { + onChanged(); return getRequestedResourcePropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ - public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder() { + public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder + getRequestedResourcePropertiesOrBuilder() { if (requestedResourcePropertiesBuilder_ != null) { return requestedResourcePropertiesBuilder_.getMessageOrBuilder(); } else { - return requestedResourceProperties_ == null ? - com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() : requestedResourceProperties_; + return requestedResourceProperties_ == null + ? com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance() + : requestedResourceProperties_; } } /** + * + * *
      * Properties related to the resource represented by requested_resource_name.
      * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ResourceProperties, com.google.cloud.accessapproval.v1.ResourceProperties.Builder, com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> + com.google.cloud.accessapproval.v1.ResourceProperties, + com.google.cloud.accessapproval.v1.ResourceProperties.Builder, + com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder> getRequestedResourcePropertiesFieldBuilder() { if (requestedResourcePropertiesBuilder_ == null) { - requestedResourcePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ResourceProperties, com.google.cloud.accessapproval.v1.ResourceProperties.Builder, com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder>( - getRequestedResourceProperties(), - getParentForChildren(), - isClean()); + requestedResourcePropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.ResourceProperties, + com.google.cloud.accessapproval.v1.ResourceProperties.Builder, + com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder>( + getRequestedResourceProperties(), getParentForChildren(), isClean()); requestedResourceProperties_ = null; } return requestedResourcePropertiesBuilder_; @@ -1560,34 +1758,47 @@ public com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequest private com.google.cloud.accessapproval.v1.AccessReason requestedReason_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessReason, com.google.cloud.accessapproval.v1.AccessReason.Builder, com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> requestedReasonBuilder_; + com.google.cloud.accessapproval.v1.AccessReason, + com.google.cloud.accessapproval.v1.AccessReason.Builder, + com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> + requestedReasonBuilder_; /** + * + * *
      * The justification for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; + * * @return Whether the requestedReason field is set. */ public boolean hasRequestedReason() { return requestedReasonBuilder_ != null || requestedReason_ != null; } /** + * + * *
      * The justification for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; + * * @return The requestedReason. */ public com.google.cloud.accessapproval.v1.AccessReason getRequestedReason() { if (requestedReasonBuilder_ == null) { - return requestedReason_ == null ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() : requestedReason_; + return requestedReason_ == null + ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() + : requestedReason_; } else { return requestedReasonBuilder_.getMessage(); } } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1608,6 +1819,8 @@ public Builder setRequestedReason(com.google.cloud.accessapproval.v1.AccessReaso return this; } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1626,6 +1839,8 @@ public Builder setRequestedReason( return this; } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1636,7 +1851,9 @@ public Builder mergeRequestedReason(com.google.cloud.accessapproval.v1.AccessRea if (requestedReasonBuilder_ == null) { if (requestedReason_ != null) { requestedReason_ = - com.google.cloud.accessapproval.v1.AccessReason.newBuilder(requestedReason_).mergeFrom(value).buildPartial(); + com.google.cloud.accessapproval.v1.AccessReason.newBuilder(requestedReason_) + .mergeFrom(value) + .buildPartial(); } else { requestedReason_ = value; } @@ -1648,6 +1865,8 @@ public Builder mergeRequestedReason(com.google.cloud.accessapproval.v1.AccessRea return this; } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1666,6 +1885,8 @@ public Builder clearRequestedReason() { return this; } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1673,11 +1894,13 @@ public Builder clearRequestedReason() { * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; */ public com.google.cloud.accessapproval.v1.AccessReason.Builder getRequestedReasonBuilder() { - + onChanged(); return getRequestedReasonFieldBuilder().getBuilder(); } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1688,11 +1911,14 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas if (requestedReasonBuilder_ != null) { return requestedReasonBuilder_.getMessageOrBuilder(); } else { - return requestedReason_ == null ? - com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() : requestedReason_; + return requestedReason_ == null + ? com.google.cloud.accessapproval.v1.AccessReason.getDefaultInstance() + : requestedReason_; } } /** + * + * *
      * The justification for which approval is being requested.
      * 
@@ -1700,14 +1926,17 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessReason, com.google.cloud.accessapproval.v1.AccessReason.Builder, com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> + com.google.cloud.accessapproval.v1.AccessReason, + com.google.cloud.accessapproval.v1.AccessReason.Builder, + com.google.cloud.accessapproval.v1.AccessReasonOrBuilder> getRequestedReasonFieldBuilder() { if (requestedReasonBuilder_ == null) { - requestedReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessReason, com.google.cloud.accessapproval.v1.AccessReason.Builder, com.google.cloud.accessapproval.v1.AccessReasonOrBuilder>( - getRequestedReason(), - getParentForChildren(), - isClean()); + requestedReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.AccessReason, + com.google.cloud.accessapproval.v1.AccessReason.Builder, + com.google.cloud.accessapproval.v1.AccessReasonOrBuilder>( + getRequestedReason(), getParentForChildren(), isClean()); requestedReason_ = null; } return requestedReasonBuilder_; @@ -1715,34 +1944,47 @@ public com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReas private com.google.cloud.accessapproval.v1.AccessLocations requestedLocations_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessLocations, com.google.cloud.accessapproval.v1.AccessLocations.Builder, com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> requestedLocationsBuilder_; + com.google.cloud.accessapproval.v1.AccessLocations, + com.google.cloud.accessapproval.v1.AccessLocations.Builder, + com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> + requestedLocationsBuilder_; /** + * + * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; + * * @return Whether the requestedLocations field is set. */ public boolean hasRequestedLocations() { return requestedLocationsBuilder_ != null || requestedLocations_ != null; } /** + * + * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; + * * @return The requestedLocations. */ public com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations() { if (requestedLocationsBuilder_ == null) { - return requestedLocations_ == null ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() : requestedLocations_; + return requestedLocations_ == null + ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() + : requestedLocations_; } else { return requestedLocationsBuilder_.getMessage(); } } /** + * + * *
      * The locations for which approval is being requested.
      * 
@@ -1763,6 +2005,8 @@ public Builder setRequestedLocations(com.google.cloud.accessapproval.v1.AccessLo return this; } /** + * + * *
      * The locations for which approval is being requested.
      * 
@@ -1781,17 +2025,22 @@ public Builder setRequestedLocations( return this; } /** + * + * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ - public Builder mergeRequestedLocations(com.google.cloud.accessapproval.v1.AccessLocations value) { + public Builder mergeRequestedLocations( + com.google.cloud.accessapproval.v1.AccessLocations value) { if (requestedLocationsBuilder_ == null) { if (requestedLocations_ != null) { requestedLocations_ = - com.google.cloud.accessapproval.v1.AccessLocations.newBuilder(requestedLocations_).mergeFrom(value).buildPartial(); + com.google.cloud.accessapproval.v1.AccessLocations.newBuilder(requestedLocations_) + .mergeFrom(value) + .buildPartial(); } else { requestedLocations_ = value; } @@ -1803,6 +2052,8 @@ public Builder mergeRequestedLocations(com.google.cloud.accessapproval.v1.Access return this; } /** + * + * *
      * The locations for which approval is being requested.
      * 
@@ -1821,33 +2072,42 @@ public Builder clearRequestedLocations() { return this; } /** + * + * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ - public com.google.cloud.accessapproval.v1.AccessLocations.Builder getRequestedLocationsBuilder() { - + public com.google.cloud.accessapproval.v1.AccessLocations.Builder + getRequestedLocationsBuilder() { + onChanged(); return getRequestedLocationsFieldBuilder().getBuilder(); } /** + * + * *
      * The locations for which approval is being requested.
      * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ - public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedLocationsOrBuilder() { + public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder + getRequestedLocationsOrBuilder() { if (requestedLocationsBuilder_ != null) { return requestedLocationsBuilder_.getMessageOrBuilder(); } else { - return requestedLocations_ == null ? - com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() : requestedLocations_; + return requestedLocations_ == null + ? com.google.cloud.accessapproval.v1.AccessLocations.getDefaultInstance() + : requestedLocations_; } } /** + * + * *
      * The locations for which approval is being requested.
      * 
@@ -1855,14 +2115,17 @@ public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedL * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessLocations, com.google.cloud.accessapproval.v1.AccessLocations.Builder, com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> + com.google.cloud.accessapproval.v1.AccessLocations, + com.google.cloud.accessapproval.v1.AccessLocations.Builder, + com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder> getRequestedLocationsFieldBuilder() { if (requestedLocationsBuilder_ == null) { - requestedLocationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessLocations, com.google.cloud.accessapproval.v1.AccessLocations.Builder, com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder>( - getRequestedLocations(), - getParentForChildren(), - isClean()); + requestedLocationsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.AccessLocations, + com.google.cloud.accessapproval.v1.AccessLocations.Builder, + com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder>( + getRequestedLocations(), getParentForChildren(), isClean()); requestedLocations_ = null; } return requestedLocationsBuilder_; @@ -1870,34 +2133,47 @@ public com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedL private com.google.protobuf.Timestamp requestTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + requestTimeBuilder_; /** + * + * *
      * The time at which approval was requested.
      * 
* * .google.protobuf.Timestamp request_time = 5; + * * @return Whether the requestTime field is set. */ public boolean hasRequestTime() { return requestTimeBuilder_ != null || requestTime_ != null; } /** + * + * *
      * The time at which approval was requested.
      * 
* * .google.protobuf.Timestamp request_time = 5; + * * @return The requestTime. */ public com.google.protobuf.Timestamp getRequestTime() { if (requestTimeBuilder_ == null) { - return requestTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestTime_; + return requestTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : requestTime_; } else { return requestTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which approval was requested.
      * 
@@ -1918,14 +2194,15 @@ public Builder setRequestTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which approval was requested.
      * 
* * .google.protobuf.Timestamp request_time = 5; */ - public Builder setRequestTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRequestTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (requestTimeBuilder_ == null) { requestTime_ = builderForValue.build(); onChanged(); @@ -1936,6 +2213,8 @@ public Builder setRequestTime( return this; } /** + * + * *
      * The time at which approval was requested.
      * 
@@ -1946,7 +2225,9 @@ public Builder mergeRequestTime(com.google.protobuf.Timestamp value) { if (requestTimeBuilder_ == null) { if (requestTime_ != null) { requestTime_ = - com.google.protobuf.Timestamp.newBuilder(requestTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(requestTime_) + .mergeFrom(value) + .buildPartial(); } else { requestTime_ = value; } @@ -1958,6 +2239,8 @@ public Builder mergeRequestTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which approval was requested.
      * 
@@ -1976,6 +2259,8 @@ public Builder clearRequestTime() { return this; } /** + * + * *
      * The time at which approval was requested.
      * 
@@ -1983,11 +2268,13 @@ public Builder clearRequestTime() { * .google.protobuf.Timestamp request_time = 5; */ public com.google.protobuf.Timestamp.Builder getRequestTimeBuilder() { - + onChanged(); return getRequestTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which approval was requested.
      * 
@@ -1998,11 +2285,14 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { if (requestTimeBuilder_ != null) { return requestTimeBuilder_.getMessageOrBuilder(); } else { - return requestTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : requestTime_; + return requestTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : requestTime_; } } /** + * + * *
      * The time at which approval was requested.
      * 
@@ -2010,14 +2300,17 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { * .google.protobuf.Timestamp request_time = 5; */ 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> getRequestTimeFieldBuilder() { if (requestTimeBuilder_ == null) { - requestTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRequestTime(), - getParentForChildren(), - isClean()); + requestTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRequestTime(), getParentForChildren(), isClean()); requestTime_ = null; } return requestTimeBuilder_; @@ -2025,36 +2318,49 @@ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() { private com.google.protobuf.Timestamp requestedExpiration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestedExpirationBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + requestedExpirationBuilder_; /** + * + * *
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
      * 
* * .google.protobuf.Timestamp requested_expiration = 6; + * * @return Whether the requestedExpiration field is set. */ public boolean hasRequestedExpiration() { return requestedExpirationBuilder_ != null || requestedExpiration_ != null; } /** + * + * *
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
      * 
* * .google.protobuf.Timestamp requested_expiration = 6; + * * @return The requestedExpiration. */ public com.google.protobuf.Timestamp getRequestedExpiration() { if (requestedExpirationBuilder_ == null) { - return requestedExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestedExpiration_; + return requestedExpiration_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : requestedExpiration_; } else { return requestedExpirationBuilder_.getMessage(); } } /** + * + * *
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2076,6 +2382,8 @@ public Builder setRequestedExpiration(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2083,8 +2391,7 @@ public Builder setRequestedExpiration(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp requested_expiration = 6;
      */
-    public Builder setRequestedExpiration(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRequestedExpiration(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (requestedExpirationBuilder_ == null) {
         requestedExpiration_ = builderForValue.build();
         onChanged();
@@ -2095,6 +2402,8 @@ public Builder setRequestedExpiration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2106,7 +2415,9 @@ public Builder mergeRequestedExpiration(com.google.protobuf.Timestamp value) {
       if (requestedExpirationBuilder_ == null) {
         if (requestedExpiration_ != null) {
           requestedExpiration_ =
-            com.google.protobuf.Timestamp.newBuilder(requestedExpiration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(requestedExpiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestedExpiration_ = value;
         }
@@ -2118,6 +2429,8 @@ public Builder mergeRequestedExpiration(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2137,6 +2450,8 @@ public Builder clearRequestedExpiration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2145,11 +2460,13 @@ public Builder clearRequestedExpiration() {
      * .google.protobuf.Timestamp requested_expiration = 6;
      */
     public com.google.protobuf.Timestamp.Builder getRequestedExpirationBuilder() {
-      
+
       onChanged();
       return getRequestedExpirationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2161,11 +2478,14 @@ public com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder()
       if (requestedExpirationBuilder_ != null) {
         return requestedExpirationBuilder_.getMessageOrBuilder();
       } else {
-        return requestedExpiration_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : requestedExpiration_;
+        return requestedExpiration_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : requestedExpiration_;
       }
     }
     /**
+     *
+     *
      * 
      * The requested expiration for the approval. If the request is approved,
      * access will be granted from the time of approval until the expiration time.
@@ -2174,27 +2494,36 @@ public com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder()
      * .google.protobuf.Timestamp requested_expiration = 6;
      */
     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>
         getRequestedExpirationFieldBuilder() {
       if (requestedExpirationBuilder_ == null) {
-        requestedExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getRequestedExpiration(),
-                getParentForChildren(),
-                isClean());
+        requestedExpirationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getRequestedExpiration(), getParentForChildren(), isClean());
         requestedExpiration_ = null;
       }
       return requestedExpirationBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.accessapproval.v1.ApproveDecision, com.google.cloud.accessapproval.v1.ApproveDecision.Builder, com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder> approveBuilder_;
+            com.google.cloud.accessapproval.v1.ApproveDecision,
+            com.google.cloud.accessapproval.v1.ApproveDecision.Builder,
+            com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder>
+        approveBuilder_;
     /**
+     *
+     *
      * 
      * Access was approved.
      * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; + * * @return Whether the approve field is set. */ @java.lang.Override @@ -2202,11 +2531,14 @@ public boolean hasApprove() { return decisionCase_ == 7; } /** + * + * *
      * Access was approved.
      * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; + * * @return The approve. */ @java.lang.Override @@ -2224,6 +2556,8 @@ public com.google.cloud.accessapproval.v1.ApproveDecision getApprove() { } } /** + * + * *
      * Access was approved.
      * 
@@ -2244,6 +2578,8 @@ public Builder setApprove(com.google.cloud.accessapproval.v1.ApproveDecision val return this; } /** + * + * *
      * Access was approved.
      * 
@@ -2262,6 +2598,8 @@ public Builder setApprove( return this; } /** + * + * *
      * Access was approved.
      * 
@@ -2270,10 +2608,14 @@ public Builder setApprove( */ public Builder mergeApprove(com.google.cloud.accessapproval.v1.ApproveDecision value) { if (approveBuilder_ == null) { - if (decisionCase_ == 7 && - decision_ != com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) { - decision_ = com.google.cloud.accessapproval.v1.ApproveDecision.newBuilder((com.google.cloud.accessapproval.v1.ApproveDecision) decision_) - .mergeFrom(value).buildPartial(); + if (decisionCase_ == 7 + && decision_ + != com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) { + decision_ = + com.google.cloud.accessapproval.v1.ApproveDecision.newBuilder( + (com.google.cloud.accessapproval.v1.ApproveDecision) decision_) + .mergeFrom(value) + .buildPartial(); } else { decision_ = value; } @@ -2289,6 +2631,8 @@ public Builder mergeApprove(com.google.cloud.accessapproval.v1.ApproveDecision v return this; } /** + * + * *
      * Access was approved.
      * 
@@ -2312,6 +2656,8 @@ public Builder clearApprove() { return this; } /** + * + * *
      * Access was approved.
      * 
@@ -2322,6 +2668,8 @@ public com.google.cloud.accessapproval.v1.ApproveDecision.Builder getApproveBuil return getApproveFieldBuilder().getBuilder(); } /** + * + * *
      * Access was approved.
      * 
@@ -2340,6 +2688,8 @@ public com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrB } } /** + * + * *
      * Access was approved.
      * 
@@ -2347,32 +2697,44 @@ public com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrB * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApproveDecision, com.google.cloud.accessapproval.v1.ApproveDecision.Builder, com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder> + com.google.cloud.accessapproval.v1.ApproveDecision, + com.google.cloud.accessapproval.v1.ApproveDecision.Builder, + com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder> getApproveFieldBuilder() { if (approveBuilder_ == null) { if (!(decisionCase_ == 7)) { decision_ = com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance(); } - approveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApproveDecision, com.google.cloud.accessapproval.v1.ApproveDecision.Builder, com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder>( + approveBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.ApproveDecision, + com.google.cloud.accessapproval.v1.ApproveDecision.Builder, + com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder>( (com.google.cloud.accessapproval.v1.ApproveDecision) decision_, getParentForChildren(), isClean()); decision_ = null; } decisionCase_ = 7; - onChanged();; + onChanged(); + ; return approveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.DismissDecision, com.google.cloud.accessapproval.v1.DismissDecision.Builder, com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> dismissBuilder_; + com.google.cloud.accessapproval.v1.DismissDecision, + com.google.cloud.accessapproval.v1.DismissDecision.Builder, + com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> + dismissBuilder_; /** + * + * *
      * The request was dismissed.
      * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; + * * @return Whether the dismiss field is set. */ @java.lang.Override @@ -2380,11 +2742,14 @@ public boolean hasDismiss() { return decisionCase_ == 8; } /** + * + * *
      * The request was dismissed.
      * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; + * * @return The dismiss. */ @java.lang.Override @@ -2402,6 +2767,8 @@ public com.google.cloud.accessapproval.v1.DismissDecision getDismiss() { } } /** + * + * *
      * The request was dismissed.
      * 
@@ -2422,6 +2789,8 @@ public Builder setDismiss(com.google.cloud.accessapproval.v1.DismissDecision val return this; } /** + * + * *
      * The request was dismissed.
      * 
@@ -2440,6 +2809,8 @@ public Builder setDismiss( return this; } /** + * + * *
      * The request was dismissed.
      * 
@@ -2448,10 +2819,14 @@ public Builder setDismiss( */ public Builder mergeDismiss(com.google.cloud.accessapproval.v1.DismissDecision value) { if (dismissBuilder_ == null) { - if (decisionCase_ == 8 && - decision_ != com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) { - decision_ = com.google.cloud.accessapproval.v1.DismissDecision.newBuilder((com.google.cloud.accessapproval.v1.DismissDecision) decision_) - .mergeFrom(value).buildPartial(); + if (decisionCase_ == 8 + && decision_ + != com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) { + decision_ = + com.google.cloud.accessapproval.v1.DismissDecision.newBuilder( + (com.google.cloud.accessapproval.v1.DismissDecision) decision_) + .mergeFrom(value) + .buildPartial(); } else { decision_ = value; } @@ -2467,6 +2842,8 @@ public Builder mergeDismiss(com.google.cloud.accessapproval.v1.DismissDecision v return this; } /** + * + * *
      * The request was dismissed.
      * 
@@ -2490,6 +2867,8 @@ public Builder clearDismiss() { return this; } /** + * + * *
      * The request was dismissed.
      * 
@@ -2500,6 +2879,8 @@ public com.google.cloud.accessapproval.v1.DismissDecision.Builder getDismissBuil return getDismissFieldBuilder().getBuilder(); } /** + * + * *
      * The request was dismissed.
      * 
@@ -2518,6 +2899,8 @@ public com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder getDismissOrB } } /** + * + * *
      * The request was dismissed.
      * 
@@ -2525,26 +2908,32 @@ public com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder getDismissOrB * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.DismissDecision, com.google.cloud.accessapproval.v1.DismissDecision.Builder, com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> + com.google.cloud.accessapproval.v1.DismissDecision, + com.google.cloud.accessapproval.v1.DismissDecision.Builder, + com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder> getDismissFieldBuilder() { if (dismissBuilder_ == null) { if (!(decisionCase_ == 8)) { decision_ = com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance(); } - dismissBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.DismissDecision, com.google.cloud.accessapproval.v1.DismissDecision.Builder, com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder>( + dismissBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.DismissDecision, + com.google.cloud.accessapproval.v1.DismissDecision.Builder, + com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder>( (com.google.cloud.accessapproval.v1.DismissDecision) decision_, getParentForChildren(), isClean()); decision_ = null; } decisionCase_ = 8; - onChanged();; + onChanged(); + ; return dismissBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2554,12 +2943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ApprovalRequest) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ApprovalRequest) private static final com.google.cloud.accessapproval.v1.ApprovalRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ApprovalRequest(); } @@ -2568,16 +2957,16 @@ public static com.google.cloud.accessapproval.v1.ApprovalRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApprovalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApprovalRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApprovalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApprovalRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2592,6 +2981,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.ApprovalRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java index d3b22e1b..579dac55 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ApprovalRequestOrBuilder extends +public interface ApprovalRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ApprovalRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the request. Format is
    * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -41,10 +64,13 @@ public interface ApprovalRequestOrBuilder extends
    * 
* * string requested_resource_name = 2; + * * @return The requestedResourceName. */ java.lang.String getRequestedResourceName(); /** + * + * *
    * The resource for which approval is being requested. The format of the
    * resource name is defined at
@@ -56,57 +82,77 @@ public interface ApprovalRequestOrBuilder extends
    * 
* * string requested_resource_name = 2; + * * @return The bytes for requestedResourceName. */ - com.google.protobuf.ByteString - getRequestedResourceNameBytes(); + com.google.protobuf.ByteString getRequestedResourceNameBytes(); /** + * + * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * + * * @return Whether the requestedResourceProperties field is set. */ boolean hasRequestedResourceProperties(); /** + * + * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * + * * @return The requestedResourceProperties. */ com.google.cloud.accessapproval.v1.ResourceProperties getRequestedResourceProperties(); /** + * + * *
    * Properties related to the resource represented by requested_resource_name.
    * 
* - * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; + * */ - com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder getRequestedResourcePropertiesOrBuilder(); + com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder + getRequestedResourcePropertiesOrBuilder(); /** + * + * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; + * * @return Whether the requestedReason field is set. */ boolean hasRequestedReason(); /** + * + * *
    * The justification for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; + * * @return The requestedReason. */ com.google.cloud.accessapproval.v1.AccessReason getRequestedReason(); /** + * + * *
    * The justification for which approval is being requested.
    * 
@@ -116,24 +162,32 @@ public interface ApprovalRequestOrBuilder extends com.google.cloud.accessapproval.v1.AccessReasonOrBuilder getRequestedReasonOrBuilder(); /** + * + * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; + * * @return Whether the requestedLocations field is set. */ boolean hasRequestedLocations(); /** + * + * *
    * The locations for which approval is being requested.
    * 
* * .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; + * * @return The requestedLocations. */ com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations(); /** + * + * *
    * The locations for which approval is being requested.
    * 
@@ -143,24 +197,32 @@ public interface ApprovalRequestOrBuilder extends com.google.cloud.accessapproval.v1.AccessLocationsOrBuilder getRequestedLocationsOrBuilder(); /** + * + * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; + * * @return Whether the requestTime field is set. */ boolean hasRequestTime(); /** + * + * *
    * The time at which approval was requested.
    * 
* * .google.protobuf.Timestamp request_time = 5; + * * @return The requestTime. */ com.google.protobuf.Timestamp getRequestTime(); /** + * + * *
    * The time at which approval was requested.
    * 
@@ -170,26 +232,34 @@ public interface ApprovalRequestOrBuilder extends com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder(); /** + * + * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; + * * @return Whether the requestedExpiration field is set. */ boolean hasRequestedExpiration(); /** + * + * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
    * 
* * .google.protobuf.Timestamp requested_expiration = 6; + * * @return The requestedExpiration. */ com.google.protobuf.Timestamp getRequestedExpiration(); /** + * + * *
    * The requested expiration for the approval. If the request is approved,
    * access will be granted from the time of approval until the expiration time.
@@ -200,24 +270,32 @@ public interface ApprovalRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; + * * @return Whether the approve field is set. */ boolean hasApprove(); /** + * + * *
    * Access was approved.
    * 
* * .google.cloud.accessapproval.v1.ApproveDecision approve = 7; + * * @return The approve. */ com.google.cloud.accessapproval.v1.ApproveDecision getApprove(); /** + * + * *
    * Access was approved.
    * 
@@ -227,24 +305,32 @@ public interface ApprovalRequestOrBuilder extends com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder getApproveOrBuilder(); /** + * + * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; + * * @return Whether the dismiss field is set. */ boolean hasDismiss(); /** + * + * *
    * The request was dismissed.
    * 
* * .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; + * * @return The dismiss. */ com.google.cloud.accessapproval.v1.DismissDecision getDismiss(); /** + * + * *
    * The request was dismissed.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java index fe95419f..a4272daa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessage.java @@ -1,40 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to approve an ApprovalRequest.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveApprovalRequestMessage} */ -public final class ApproveApprovalRequestMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ApproveApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) ApproveApprovalRequestMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ApproveApprovalRequestMessage.newBuilder() to construct. private ApproveApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ApproveApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ApproveApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ApproveApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private ApproveApprovalRequestMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); + name_ = s; + break; } - expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,34 +106,39 @@ private ApproveApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -122,29 +147,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; } } /** + * + * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.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 { @@ -155,11 +180,14 @@ public java.lang.String getName() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -167,11 +195,14 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -179,6 +210,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * The expiration time of this approval.
    * 
@@ -191,6 +224,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -223,8 +256,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +266,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.accessapproval.v1.ApproveApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other = + (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -271,117 +302,127 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to approve an ApprovalRequest.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveApprovalRequestMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.newBuilder() @@ -389,16 +430,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,13 +454,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage + getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance(); } @@ -435,7 +476,8 @@ public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage build() @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage result = + new com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage(this); result.name_ = name_; if (expireTimeBuilder_ == null) { result.expireTime_ = expireTime_; @@ -450,46 +492,50 @@ public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage)other); + return mergeFrom((com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other) { - if (other == com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage other) { + if (other + == com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -516,7 +562,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,18 +576,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.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; @@ -548,20 +598,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.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 { @@ -569,54 +620,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the approval request to approve.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -624,34 +682,47 @@ public Builder setNameBytes( 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_; /** + * + * *
      * The expiration time of this approval.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * The expiration time of this approval.
      * 
* * .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(); } } /** + * + * *
      * The expiration time of this approval.
      * 
@@ -672,14 +743,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The expiration time of this approval.
      * 
* * .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(); onChanged(); @@ -690,6 +762,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * The expiration time of this approval.
      * 
@@ -700,7 +774,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -712,6 +786,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The expiration time of this approval.
      * 
@@ -730,6 +806,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * The expiration time of this approval.
      * 
@@ -737,11 +815,13 @@ public Builder clearExpireTime() { * .google.protobuf.Timestamp expire_time = 2; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The expiration time of this approval.
      * 
@@ -752,11 +832,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_; } } /** + * + * *
      * The expiration time of this approval.
      * 
@@ -764,21 +847,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); } @@ -788,30 +874,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage(); } - public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -823,9 +911,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java index 0ac15b31..4aea8ee8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveApprovalRequestMessageOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ApproveApprovalRequestMessageOrBuilder extends +public interface ApproveApprovalRequestMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ApproveApprovalRequestMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the approval request to approve.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * The expiration time of this approval.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * The expiration time of this approval.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java index cb2dff82..076fba6b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecision.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * A decision that has been made to approve access to a resource.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveDecision} */ -public final class ApproveDecision extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ApproveDecision extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ApproveDecision) ApproveDecisionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ApproveDecision.newBuilder() to construct. private ApproveDecision(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApproveDecision() { - } + + private ApproveDecision() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ApproveDecision(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ApproveDecision( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,70 +68,79 @@ private ApproveDecision( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (approveTime_ != null) { - subBuilder = approveTime_.toBuilder(); - } - approveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(approveTime_); - approveTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (approveTime_ != null) { + subBuilder = approveTime_.toBuilder(); + } + approveTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(approveTime_); + approveTime_ = subBuilder.buildPartial(); + } + + break; } - expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (invalidateTime_ != null) { - subBuilder = invalidateTime_.toBuilder(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (invalidateTime_ != null) { + subBuilder = invalidateTime_.toBuilder(); + } + invalidateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(invalidateTime_); + invalidateTime_ = subBuilder.buildPartial(); + } + + break; } - invalidateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invalidateTime_); - invalidateTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.accessapproval.v1.SignatureInfo.Builder subBuilder = null; + if (signatureInfo_ != null) { + subBuilder = signatureInfo_.toBuilder(); + } + signatureInfo_ = + input.readMessage( + com.google.cloud.accessapproval.v1.SignatureInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signatureInfo_); + signatureInfo_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.accessapproval.v1.SignatureInfo.Builder subBuilder = null; - if (signatureInfo_ != null) { - subBuilder = signatureInfo_.toBuilder(); + case 40: + { + autoApproved_ = input.readBool(); + break; } - signatureInfo_ = input.readMessage(com.google.cloud.accessapproval.v1.SignatureInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signatureInfo_); - signatureInfo_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - case 40: { - - autoApproved_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,34 +148,39 @@ private ApproveDecision( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveDecision.class, com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); + com.google.cloud.accessapproval.v1.ApproveDecision.class, + com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); } public static final int APPROVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp approveTime_; /** + * + * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; + * * @return Whether the approveTime field is set. */ @java.lang.Override @@ -158,11 +188,14 @@ public boolean hasApproveTime() { return approveTime_ != null; } /** + * + * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; + * * @return The approveTime. */ @java.lang.Override @@ -170,6 +203,8 @@ public com.google.protobuf.Timestamp getApproveTime() { return approveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; } /** + * + * *
    * The time at which approval was granted.
    * 
@@ -184,11 +219,14 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -196,11 +234,14 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -208,6 +249,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * The time at which the approval expires.
    * 
@@ -222,11 +265,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int INVALIDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp invalidateTime_; /** + * + * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; + * * @return Whether the invalidateTime field is set. */ @java.lang.Override @@ -234,18 +280,25 @@ public boolean hasInvalidateTime() { return invalidateTime_ != null; } /** + * + * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; + * * @return The invalidateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getInvalidateTime() { - return invalidateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : invalidateTime_; + return invalidateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : invalidateTime_; } /** + * + * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
@@ -260,11 +313,14 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { public static final int SIGNATURE_INFO_FIELD_NUMBER = 4; private com.google.cloud.accessapproval.v1.SignatureInfo signatureInfo_; /** + * + * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; + * * @return Whether the signatureInfo field is set. */ @java.lang.Override @@ -272,18 +328,25 @@ public boolean hasSignatureInfo() { return signatureInfo_ != null; } /** + * + * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; + * * @return The signatureInfo. */ @java.lang.Override public com.google.cloud.accessapproval.v1.SignatureInfo getSignatureInfo() { - return signatureInfo_ == null ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() : signatureInfo_; + return signatureInfo_ == null + ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() + : signatureInfo_; } /** + * + * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
@@ -298,11 +361,14 @@ public com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInf public static final int AUTO_APPROVED_FIELD_NUMBER = 5; private boolean autoApproved_; /** + * + * *
    * True when the request has been auto-approved.
    * 
* * bool auto_approved = 5; + * * @return The autoApproved. */ @java.lang.Override @@ -311,6 +377,7 @@ public boolean getAutoApproved() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +389,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (approveTime_ != null) { output.writeMessage(1, getApproveTime()); } @@ -349,24 +415,19 @@ public int getSerializedSize() { size = 0; if (approveTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getApproveTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApproveTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } if (invalidateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInvalidateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvalidateTime()); } if (signatureInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSignatureInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSignatureInfo()); } if (autoApproved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, autoApproved_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, autoApproved_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -376,35 +437,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.ApproveDecision)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ApproveDecision other = (com.google.cloud.accessapproval.v1.ApproveDecision) obj; + com.google.cloud.accessapproval.v1.ApproveDecision other = + (com.google.cloud.accessapproval.v1.ApproveDecision) obj; if (hasApproveTime() != other.hasApproveTime()) return false; if (hasApproveTime()) { - if (!getApproveTime() - .equals(other.getApproveTime())) return false; + if (!getApproveTime().equals(other.getApproveTime())) 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 (hasInvalidateTime() != other.hasInvalidateTime()) return false; if (hasInvalidateTime()) { - if (!getInvalidateTime() - .equals(other.getInvalidateTime())) return false; + if (!getInvalidateTime().equals(other.getInvalidateTime())) return false; } if (hasSignatureInfo() != other.hasSignatureInfo()) return false; if (hasSignatureInfo()) { - if (!getSignatureInfo() - .equals(other.getSignatureInfo())) return false; + if (!getSignatureInfo().equals(other.getSignatureInfo())) return false; } - if (getAutoApproved() - != other.getAutoApproved()) return false; + if (getAutoApproved() != other.getAutoApproved()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -433,125 +490,133 @@ public int hashCode() { hash = (53 * hash) + getSignatureInfo().hashCode(); } hash = (37 * hash) + AUTO_APPROVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAutoApproved()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoApproved()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ApproveDecision parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ApproveDecision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ApproveDecision parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.ApproveDecision prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 decision that has been made to approve access to a resource.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ApproveDecision} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ApproveDecision) com.google.cloud.accessapproval.v1.ApproveDecisionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ApproveDecision.class, com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); + com.google.cloud.accessapproval.v1.ApproveDecision.class, + com.google.cloud.accessapproval.v1.ApproveDecision.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ApproveDecision.newBuilder() @@ -559,16 +624,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -602,9 +666,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ApproveDecision_descriptor; } @java.lang.Override @@ -623,7 +687,8 @@ public com.google.cloud.accessapproval.v1.ApproveDecision build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ApproveDecision buildPartial() { - com.google.cloud.accessapproval.v1.ApproveDecision result = new com.google.cloud.accessapproval.v1.ApproveDecision(this); + com.google.cloud.accessapproval.v1.ApproveDecision result = + new com.google.cloud.accessapproval.v1.ApproveDecision(this); if (approveTimeBuilder_ == null) { result.approveTime_ = approveTime_; } else { @@ -653,38 +718,39 @@ public com.google.cloud.accessapproval.v1.ApproveDecision buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ApproveDecision) { - return mergeFrom((com.google.cloud.accessapproval.v1.ApproveDecision)other); + return mergeFrom((com.google.cloud.accessapproval.v1.ApproveDecision) other); } else { super.mergeFrom(other); return this; @@ -692,7 +758,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ApproveDecision other) { - if (other == com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.ApproveDecision.getDefaultInstance()) + return this; if (other.hasApproveTime()) { mergeApproveTime(other.getApproveTime()); } @@ -727,7 +794,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.ApproveDecision) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.ApproveDecision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -739,34 +807,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp approveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> approveTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + approveTimeBuilder_; /** + * + * *
      * The time at which approval was granted.
      * 
* * .google.protobuf.Timestamp approve_time = 1; + * * @return Whether the approveTime field is set. */ public boolean hasApproveTime() { return approveTimeBuilder_ != null || approveTime_ != null; } /** + * + * *
      * The time at which approval was granted.
      * 
* * .google.protobuf.Timestamp approve_time = 1; + * * @return The approveTime. */ public com.google.protobuf.Timestamp getApproveTime() { if (approveTimeBuilder_ == null) { - return approveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; + return approveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : approveTime_; } else { return approveTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which approval was granted.
      * 
@@ -787,14 +868,15 @@ public Builder setApproveTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which approval was granted.
      * 
* * .google.protobuf.Timestamp approve_time = 1; */ - public Builder setApproveTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setApproveTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (approveTimeBuilder_ == null) { approveTime_ = builderForValue.build(); onChanged(); @@ -805,6 +887,8 @@ public Builder setApproveTime( return this; } /** + * + * *
      * The time at which approval was granted.
      * 
@@ -815,7 +899,9 @@ public Builder mergeApproveTime(com.google.protobuf.Timestamp value) { if (approveTimeBuilder_ == null) { if (approveTime_ != null) { approveTime_ = - com.google.protobuf.Timestamp.newBuilder(approveTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(approveTime_) + .mergeFrom(value) + .buildPartial(); } else { approveTime_ = value; } @@ -827,6 +913,8 @@ public Builder mergeApproveTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which approval was granted.
      * 
@@ -845,6 +933,8 @@ public Builder clearApproveTime() { return this; } /** + * + * *
      * The time at which approval was granted.
      * 
@@ -852,11 +942,13 @@ public Builder clearApproveTime() { * .google.protobuf.Timestamp approve_time = 1; */ public com.google.protobuf.Timestamp.Builder getApproveTimeBuilder() { - + onChanged(); return getApproveTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which approval was granted.
      * 
@@ -867,11 +959,14 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { if (approveTimeBuilder_ != null) { return approveTimeBuilder_.getMessageOrBuilder(); } else { - return approveTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; + return approveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : approveTime_; } } /** + * + * *
      * The time at which approval was granted.
      * 
@@ -879,14 +974,17 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { * .google.protobuf.Timestamp approve_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getApproveTimeFieldBuilder() { if (approveTimeBuilder_ == null) { - approveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getApproveTime(), - getParentForChildren(), - isClean()); + approveTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getApproveTime(), getParentForChildren(), isClean()); approveTime_ = null; } return approveTimeBuilder_; @@ -894,34 +992,47 @@ public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { 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_; /** + * + * *
      * The time at which the approval expires.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * The time at which the approval expires.
      * 
* * .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(); } } /** + * + * *
      * The time at which the approval expires.
      * 
@@ -942,14 +1053,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the approval expires.
      * 
* * .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(); onChanged(); @@ -960,6 +1072,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * The time at which the approval expires.
      * 
@@ -970,7 +1084,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -982,6 +1096,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the approval expires.
      * 
@@ -1000,6 +1116,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * The time at which the approval expires.
      * 
@@ -1007,11 +1125,13 @@ public Builder clearExpireTime() { * .google.protobuf.Timestamp expire_time = 2; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the approval expires.
      * 
@@ -1022,11 +1142,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_; } } /** + * + * *
      * The time at which the approval expires.
      * 
@@ -1034,14 +1157,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) { - 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_; @@ -1049,34 +1175,47 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private com.google.protobuf.Timestamp invalidateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> invalidateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + invalidateTimeBuilder_; /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
* * .google.protobuf.Timestamp invalidate_time = 3; + * * @return Whether the invalidateTime field is set. */ public boolean hasInvalidateTime() { return invalidateTimeBuilder_ != null || invalidateTime_ != null; } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
* * .google.protobuf.Timestamp invalidate_time = 3; + * * @return The invalidateTime. */ public com.google.protobuf.Timestamp getInvalidateTime() { if (invalidateTimeBuilder_ == null) { - return invalidateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : invalidateTime_; + return invalidateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : invalidateTime_; } else { return invalidateTimeBuilder_.getMessage(); } } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1097,14 +1236,15 @@ public Builder setInvalidateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
* * .google.protobuf.Timestamp invalidate_time = 3; */ - public Builder setInvalidateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setInvalidateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (invalidateTimeBuilder_ == null) { invalidateTime_ = builderForValue.build(); onChanged(); @@ -1115,6 +1255,8 @@ public Builder setInvalidateTime( return this; } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1125,7 +1267,9 @@ public Builder mergeInvalidateTime(com.google.protobuf.Timestamp value) { if (invalidateTimeBuilder_ == null) { if (invalidateTime_ != null) { invalidateTime_ = - com.google.protobuf.Timestamp.newBuilder(invalidateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(invalidateTime_) + .mergeFrom(value) + .buildPartial(); } else { invalidateTime_ = value; } @@ -1137,6 +1281,8 @@ public Builder mergeInvalidateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1155,6 +1301,8 @@ public Builder clearInvalidateTime() { return this; } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1162,11 +1310,13 @@ public Builder clearInvalidateTime() { * .google.protobuf.Timestamp invalidate_time = 3; */ public com.google.protobuf.Timestamp.Builder getInvalidateTimeBuilder() { - + onChanged(); return getInvalidateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1177,11 +1327,14 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { if (invalidateTimeBuilder_ != null) { return invalidateTimeBuilder_.getMessageOrBuilder(); } else { - return invalidateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : invalidateTime_; + return invalidateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : invalidateTime_; } } /** + * + * *
      * If set, denotes the timestamp at which the approval is invalidated.
      * 
@@ -1189,14 +1342,17 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { * .google.protobuf.Timestamp invalidate_time = 3; */ 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> getInvalidateTimeFieldBuilder() { if (invalidateTimeBuilder_ == null) { - invalidateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getInvalidateTime(), - getParentForChildren(), - isClean()); + invalidateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getInvalidateTime(), getParentForChildren(), isClean()); invalidateTime_ = null; } return invalidateTimeBuilder_; @@ -1204,34 +1360,47 @@ public com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder() { private com.google.cloud.accessapproval.v1.SignatureInfo signatureInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.SignatureInfo, com.google.cloud.accessapproval.v1.SignatureInfo.Builder, com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> signatureInfoBuilder_; + com.google.cloud.accessapproval.v1.SignatureInfo, + com.google.cloud.accessapproval.v1.SignatureInfo.Builder, + com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> + signatureInfoBuilder_; /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; + * * @return Whether the signatureInfo field is set. */ public boolean hasSignatureInfo() { return signatureInfoBuilder_ != null || signatureInfo_ != null; } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; + * * @return The signatureInfo. */ public com.google.cloud.accessapproval.v1.SignatureInfo getSignatureInfo() { if (signatureInfoBuilder_ == null) { - return signatureInfo_ == null ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() : signatureInfo_; + return signatureInfo_ == null + ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() + : signatureInfo_; } else { return signatureInfoBuilder_.getMessage(); } } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1252,6 +1421,8 @@ public Builder setSignatureInfo(com.google.cloud.accessapproval.v1.SignatureInfo return this; } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1270,6 +1441,8 @@ public Builder setSignatureInfo( return this; } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1280,7 +1453,9 @@ public Builder mergeSignatureInfo(com.google.cloud.accessapproval.v1.SignatureIn if (signatureInfoBuilder_ == null) { if (signatureInfo_ != null) { signatureInfo_ = - com.google.cloud.accessapproval.v1.SignatureInfo.newBuilder(signatureInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.accessapproval.v1.SignatureInfo.newBuilder(signatureInfo_) + .mergeFrom(value) + .buildPartial(); } else { signatureInfo_ = value; } @@ -1292,6 +1467,8 @@ public Builder mergeSignatureInfo(com.google.cloud.accessapproval.v1.SignatureIn return this; } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1310,6 +1487,8 @@ public Builder clearSignatureInfo() { return this; } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1317,11 +1496,13 @@ public Builder clearSignatureInfo() { * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; */ public com.google.cloud.accessapproval.v1.SignatureInfo.Builder getSignatureInfoBuilder() { - + onChanged(); return getSignatureInfoFieldBuilder().getBuilder(); } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1332,11 +1513,14 @@ public com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInf if (signatureInfoBuilder_ != null) { return signatureInfoBuilder_.getMessageOrBuilder(); } else { - return signatureInfo_ == null ? - com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() : signatureInfo_; + return signatureInfo_ == null + ? com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance() + : signatureInfo_; } } /** + * + * *
      * The signature for the ApprovalRequest and details on how it was signed.
      * 
@@ -1344,26 +1528,32 @@ public com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInf * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.SignatureInfo, com.google.cloud.accessapproval.v1.SignatureInfo.Builder, com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> + com.google.cloud.accessapproval.v1.SignatureInfo, + com.google.cloud.accessapproval.v1.SignatureInfo.Builder, + com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder> getSignatureInfoFieldBuilder() { if (signatureInfoBuilder_ == null) { - signatureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.SignatureInfo, com.google.cloud.accessapproval.v1.SignatureInfo.Builder, com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder>( - getSignatureInfo(), - getParentForChildren(), - isClean()); + signatureInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.SignatureInfo, + com.google.cloud.accessapproval.v1.SignatureInfo.Builder, + com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder>( + getSignatureInfo(), getParentForChildren(), isClean()); signatureInfo_ = null; } return signatureInfoBuilder_; } - private boolean autoApproved_ ; + private boolean autoApproved_; /** + * + * *
      * True when the request has been auto-approved.
      * 
* * bool auto_approved = 5; + * * @return The autoApproved. */ @java.lang.Override @@ -1371,37 +1561,43 @@ public boolean getAutoApproved() { return autoApproved_; } /** + * + * *
      * True when the request has been auto-approved.
      * 
* * bool auto_approved = 5; + * * @param value The autoApproved to set. * @return This builder for chaining. */ public Builder setAutoApproved(boolean value) { - + autoApproved_ = value; onChanged(); return this; } /** + * + * *
      * True when the request has been auto-approved.
      * 
* * bool auto_approved = 5; + * * @return This builder for chaining. */ public Builder clearAutoApproved() { - + autoApproved_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1411,12 +1607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ApproveDecision) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ApproveDecision) private static final com.google.cloud.accessapproval.v1.ApproveDecision DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ApproveDecision(); } @@ -1425,16 +1621,16 @@ public static com.google.cloud.accessapproval.v1.ApproveDecision getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveDecision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveDecision(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveDecision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveDecision(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1449,6 +1645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.ApproveDecision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java index 2fbd2be3..d39aeb9b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApproveDecisionOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ApproveDecisionOrBuilder extends +public interface ApproveDecisionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ApproveDecision) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; + * * @return Whether the approveTime field is set. */ boolean hasApproveTime(); /** + * + * *
    * The time at which approval was granted.
    * 
* * .google.protobuf.Timestamp approve_time = 1; + * * @return The approveTime. */ com.google.protobuf.Timestamp getApproveTime(); /** + * + * *
    * The time at which approval was granted.
    * 
@@ -35,24 +59,32 @@ public interface ApproveDecisionOrBuilder extends com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder(); /** + * + * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * The time at which the approval expires.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * The time at which the approval expires.
    * 
@@ -62,24 +94,32 @@ public interface ApproveDecisionOrBuilder extends com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; + * * @return Whether the invalidateTime field is set. */ boolean hasInvalidateTime(); /** + * + * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
* * .google.protobuf.Timestamp invalidate_time = 3; + * * @return The invalidateTime. */ com.google.protobuf.Timestamp getInvalidateTime(); /** + * + * *
    * If set, denotes the timestamp at which the approval is invalidated.
    * 
@@ -89,24 +129,32 @@ public interface ApproveDecisionOrBuilder extends com.google.protobuf.TimestampOrBuilder getInvalidateTimeOrBuilder(); /** + * + * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; + * * @return Whether the signatureInfo field is set. */ boolean hasSignatureInfo(); /** + * + * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
* * .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; + * * @return The signatureInfo. */ com.google.cloud.accessapproval.v1.SignatureInfo getSignatureInfo(); /** + * + * *
    * The signature for the ApprovalRequest and details on how it was signed.
    * 
@@ -116,11 +164,14 @@ public interface ApproveDecisionOrBuilder extends com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder getSignatureInfoOrBuilder(); /** + * + * *
    * True when the request has been auto-approved.
    * 
* * bool auto_approved = 5; + * * @return The autoApproved. */ boolean getAutoApproved(); diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java index ede385cf..ea757f49 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessage.java @@ -1,40 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to delete access approval settings.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage} */ -public final class DeleteAccessApprovalSettingsMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteAccessApprovalSettingsMessage + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) DeleteAccessApprovalSettingsMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAccessApprovalSettingsMessage.newBuilder() to construct. - private DeleteAccessApprovalSettingsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteAccessApprovalSettingsMessage( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteAccessApprovalSettingsMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteAccessApprovalSettingsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteAccessApprovalSettingsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +72,20 @@ private DeleteAccessApprovalSettingsMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +93,39 @@ private DeleteAccessApprovalSettingsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -109,29 +134,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; } } /** + * + * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.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 { @@ -140,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -176,15 +201,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.accessapproval.v1.DeleteAccessApprovalSettingsMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other = (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) obj; + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other = + (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,134 +229,145 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to delete access approval settings.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.class, + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.Builder.class); } - // Construct using com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.newBuilder() + // Construct using + // com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,19 +377,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DeleteAccessApprovalSettingsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.getDefaultInstance(); + public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage build() { - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = buildPartial(); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -362,7 +401,8 @@ public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage bu @java.lang.Override public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage buildPartial() { - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = new com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage(this); + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage result = + new com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage(this); result.name_ = name_; onBuilt(); return result; @@ -372,46 +412,51 @@ public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage)other); + return mergeFrom( + (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other) { - if (other == com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage other) { + if (other + == com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +494,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.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; @@ -467,20 +516,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.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 { @@ -488,61 +538,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the AccessApprovalSettings to delete.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,30 +609,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) - private static final com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage(); } - public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAccessApprovalSettingsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAccessApprovalSettingsMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccessApprovalSettingsMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAccessApprovalSettingsMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +646,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java index a2677c09..7e018d58 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DeleteAccessApprovalSettingsMessageOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface DeleteAccessApprovalSettingsMessageOrBuilder extends +public interface DeleteAccessApprovalSettingsMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the AccessApprovalSettings to delete.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java index 10fb952f..d6603cff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessage.java @@ -1,40 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to dismiss an approval request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissApprovalRequestMessage} */ -public final class DismissApprovalRequestMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DismissApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) DismissApprovalRequestMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DismissApprovalRequestMessage.newBuilder() to construct. private DismissApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DismissApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DismissApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DismissApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DismissApprovalRequestMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private DismissApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the ApprovalRequest to dismiss.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -109,29 +132,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; } } /** + * + * *
    * Name of the ApprovalRequest to dismiss.
    * 
* * string name = 1 [(.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 { @@ -140,6 +163,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -176,15 +199,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.accessapproval.v1.DismissApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other = + (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,127 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to dismiss an approval request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissApprovalRequestMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) com.google.cloud.accessapproval.v1.DismissApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.newBuilder() @@ -322,16 +355,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,13 +373,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage + getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance(); } @@ -362,7 +395,8 @@ public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage build() @java.lang.Override public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage result = + new com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage(this); result.name_ = name_; onBuilt(); return result; @@ -372,46 +406,50 @@ public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage)other); + return mergeFrom((com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other) { - if (other == com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage other) { + if (other + == com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.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; @@ -467,20 +509,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.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 { @@ -488,61 +531,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the ApprovalRequest to dismiss.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,30 +602,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage(); } - public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DismissApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DismissApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DismissApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DismissApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +639,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java new file mode 100644 index 00000000..f4dce922 --- /dev/null +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissApprovalRequestMessageOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/accessapproval/v1/accessapproval.proto + +package com.google.cloud.accessapproval.v1; + +public interface DismissApprovalRequestMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DismissApprovalRequestMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the ApprovalRequest to dismiss.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the ApprovalRequest to dismiss.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java index 63a32321..903cbe6e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecision.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * A decision that has been made to dismiss an approval request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissDecision} */ -public final class DismissDecision extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DismissDecision extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.DismissDecision) DismissDecisionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DismissDecision.newBuilder() to construct. private DismissDecision(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DismissDecision() { - } + + private DismissDecision() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DismissDecision(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DismissDecision( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,33 @@ private DismissDecision( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dismissTime_ != null) { - subBuilder = dismissTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (dismissTime_ != null) { + subBuilder = dismissTime_.toBuilder(); + } + dismissTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dismissTime_); + dismissTime_ = subBuilder.buildPartial(); + } + + break; } - dismissTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dismissTime_); - dismissTime_ = subBuilder.buildPartial(); + case 16: + { + implicit_ = input.readBool(); + break; } - - break; - } - case 16: { - - implicit_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,34 +102,39 @@ private DismissDecision( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissDecision.class, com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); + com.google.cloud.accessapproval.v1.DismissDecision.class, + com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); } public static final int DISMISS_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp dismissTime_; /** + * + * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; + * * @return Whether the dismissTime field is set. */ @java.lang.Override @@ -119,11 +142,14 @@ public boolean hasDismissTime() { return dismissTime_ != null; } /** + * + * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; + * * @return The dismissTime. */ @java.lang.Override @@ -131,6 +157,8 @@ public com.google.protobuf.Timestamp getDismissTime() { return dismissTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dismissTime_; } /** + * + * *
    * The time at which the approval request was dismissed.
    * 
@@ -145,6 +173,8 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() { public static final int IMPLICIT_FIELD_NUMBER = 2; private boolean implicit_; /** + * + * *
    * This field will be true if the ApprovalRequest was implicitly dismissed due
    * to inaction by the access approval approvers (the request is not acted
@@ -152,6 +182,7 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() {
    * 
* * bool implicit = 2; + * * @return The implicit. */ @java.lang.Override @@ -160,6 +191,7 @@ public boolean getImplicit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dismissTime_ != null) { output.writeMessage(1, getDismissTime()); } @@ -189,12 +220,10 @@ public int getSerializedSize() { size = 0; if (dismissTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDismissTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDismissTime()); } if (implicit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, implicit_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, implicit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -204,20 +233,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.accessapproval.v1.DismissDecision)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.DismissDecision other = (com.google.cloud.accessapproval.v1.DismissDecision) obj; + com.google.cloud.accessapproval.v1.DismissDecision other = + (com.google.cloud.accessapproval.v1.DismissDecision) obj; if (hasDismissTime() != other.hasDismissTime()) return false; if (hasDismissTime()) { - if (!getDismissTime() - .equals(other.getDismissTime())) return false; + if (!getDismissTime().equals(other.getDismissTime())) return false; } - if (getImplicit() - != other.getImplicit()) return false; + if (getImplicit() != other.getImplicit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,125 +262,133 @@ public int hashCode() { hash = (53 * hash) + getDismissTime().hashCode(); } hash = (37 * hash) + IMPLICIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getImplicit()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImplicit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.DismissDecision parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.DismissDecision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.DismissDecision parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.DismissDecision prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 decision that has been made to dismiss an approval request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.DismissDecision} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.DismissDecision) com.google.cloud.accessapproval.v1.DismissDecisionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissDecision_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.DismissDecision.class, com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); + com.google.cloud.accessapproval.v1.DismissDecision.class, + com.google.cloud.accessapproval.v1.DismissDecision.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.DismissDecision.newBuilder() @@ -360,16 +396,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_DismissDecision_descriptor; } @java.lang.Override @@ -406,7 +441,8 @@ public com.google.cloud.accessapproval.v1.DismissDecision build() { @java.lang.Override public com.google.cloud.accessapproval.v1.DismissDecision buildPartial() { - com.google.cloud.accessapproval.v1.DismissDecision result = new com.google.cloud.accessapproval.v1.DismissDecision(this); + com.google.cloud.accessapproval.v1.DismissDecision result = + new com.google.cloud.accessapproval.v1.DismissDecision(this); if (dismissTimeBuilder_ == null) { result.dismissTime_ = dismissTime_; } else { @@ -421,38 +457,39 @@ public com.google.cloud.accessapproval.v1.DismissDecision buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.DismissDecision) { - return mergeFrom((com.google.cloud.accessapproval.v1.DismissDecision)other); + return mergeFrom((com.google.cloud.accessapproval.v1.DismissDecision) other); } else { super.mergeFrom(other); return this; @@ -460,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.DismissDecision other) { - if (other == com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.DismissDecision.getDefaultInstance()) + return this; if (other.hasDismissTime()) { mergeDismissTime(other.getDismissTime()); } @@ -486,7 +524,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.DismissDecision) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.DismissDecision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,34 +537,47 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp dismissTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dismissTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dismissTimeBuilder_; /** + * + * *
      * The time at which the approval request was dismissed.
      * 
* * .google.protobuf.Timestamp dismiss_time = 1; + * * @return Whether the dismissTime field is set. */ public boolean hasDismissTime() { return dismissTimeBuilder_ != null || dismissTime_ != null; } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
* * .google.protobuf.Timestamp dismiss_time = 1; + * * @return The dismissTime. */ public com.google.protobuf.Timestamp getDismissTime() { if (dismissTimeBuilder_ == null) { - return dismissTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dismissTime_; + return dismissTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dismissTime_; } else { return dismissTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
@@ -546,14 +598,15 @@ public Builder setDismissTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
* * .google.protobuf.Timestamp dismiss_time = 1; */ - public Builder setDismissTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDismissTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (dismissTimeBuilder_ == null) { dismissTime_ = builderForValue.build(); onChanged(); @@ -564,6 +617,8 @@ public Builder setDismissTime( return this; } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
@@ -574,7 +629,9 @@ public Builder mergeDismissTime(com.google.protobuf.Timestamp value) { if (dismissTimeBuilder_ == null) { if (dismissTime_ != null) { dismissTime_ = - com.google.protobuf.Timestamp.newBuilder(dismissTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(dismissTime_) + .mergeFrom(value) + .buildPartial(); } else { dismissTime_ = value; } @@ -586,6 +643,8 @@ public Builder mergeDismissTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
@@ -604,6 +663,8 @@ public Builder clearDismissTime() { return this; } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
@@ -611,11 +672,13 @@ public Builder clearDismissTime() { * .google.protobuf.Timestamp dismiss_time = 1; */ public com.google.protobuf.Timestamp.Builder getDismissTimeBuilder() { - + onChanged(); return getDismissTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
@@ -626,11 +689,14 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() { if (dismissTimeBuilder_ != null) { return dismissTimeBuilder_.getMessageOrBuilder(); } else { - return dismissTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : dismissTime_; + return dismissTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dismissTime_; } } /** + * + * *
      * The time at which the approval request was dismissed.
      * 
@@ -638,21 +704,26 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() { * .google.protobuf.Timestamp dismiss_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDismissTimeFieldBuilder() { if (dismissTimeBuilder_ == null) { - dismissTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDismissTime(), - getParentForChildren(), - isClean()); + dismissTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDismissTime(), getParentForChildren(), isClean()); dismissTime_ = null; } return dismissTimeBuilder_; } - private boolean implicit_ ; + private boolean implicit_; /** + * + * *
      * This field will be true if the ApprovalRequest was implicitly dismissed due
      * to inaction by the access approval approvers (the request is not acted
@@ -660,6 +731,7 @@ public com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder() {
      * 
* * bool implicit = 2; + * * @return The implicit. */ @java.lang.Override @@ -667,6 +739,8 @@ public boolean getImplicit() { return implicit_; } /** + * + * *
      * This field will be true if the ApprovalRequest was implicitly dismissed due
      * to inaction by the access approval approvers (the request is not acted
@@ -674,16 +748,19 @@ public boolean getImplicit() {
      * 
* * bool implicit = 2; + * * @param value The implicit to set. * @return This builder for chaining. */ public Builder setImplicit(boolean value) { - + implicit_ = value; onChanged(); return this; } /** + * + * *
      * This field will be true if the ApprovalRequest was implicitly dismissed due
      * to inaction by the access approval approvers (the request is not acted
@@ -691,17 +768,18 @@ public Builder setImplicit(boolean value) {
      * 
* * bool implicit = 2; + * * @return This builder for chaining. */ public Builder clearImplicit() { - + implicit_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -711,12 +789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.DismissDecision) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.DismissDecision) private static final com.google.cloud.accessapproval.v1.DismissDecision DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.DismissDecision(); } @@ -725,16 +803,16 @@ public static com.google.cloud.accessapproval.v1.DismissDecision getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DismissDecision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DismissDecision(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DismissDecision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DismissDecision(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -749,6 +827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.DismissDecision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java index 784d25f0..8132f677 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/DismissDecisionOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface DismissDecisionOrBuilder extends +public interface DismissDecisionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.DismissDecision) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; + * * @return Whether the dismissTime field is set. */ boolean hasDismissTime(); /** + * + * *
    * The time at which the approval request was dismissed.
    * 
* * .google.protobuf.Timestamp dismiss_time = 1; + * * @return The dismissTime. */ com.google.protobuf.Timestamp getDismissTime(); /** + * + * *
    * The time at which the approval request was dismissed.
    * 
@@ -35,6 +59,8 @@ public interface DismissDecisionOrBuilder extends com.google.protobuf.TimestampOrBuilder getDismissTimeOrBuilder(); /** + * + * *
    * This field will be true if the ApprovalRequest was implicitly dismissed due
    * to inaction by the access approval approvers (the request is not acted
@@ -42,6 +68,7 @@ public interface DismissDecisionOrBuilder extends
    * 
* * bool implicit = 2; + * * @return The implicit. */ boolean getImplicit(); diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java index 28cde55c..eca53023 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledService.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Represents the enrollment of a cloud resource into a specific service.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.EnrolledService} */ -public final class EnrolledService extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnrolledService extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.EnrolledService) EnrolledServiceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnrolledService.newBuilder() to construct. private EnrolledService(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnrolledService() { cloudProduct_ = ""; enrollmentLevel_ = 0; @@ -26,16 +44,15 @@ private EnrolledService() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnrolledService(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EnrolledService( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private EnrolledService( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - cloudProduct_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + cloudProduct_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - enrollmentLevel_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + enrollmentLevel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private EnrolledService( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.EnrolledService.class, com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); + com.google.cloud.accessapproval.v1.EnrolledService.class, + com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); } public static final int CLOUD_PRODUCT_FIELD_NUMBER = 1; private volatile java.lang.Object cloudProduct_; /** + * + * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -159,6 +182,7 @@ private EnrolledService(
    * 
* * string cloud_product = 1; + * * @return The cloudProduct. */ @java.lang.Override @@ -167,14 +191,15 @@ public java.lang.String getCloudProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; } } /** + * + * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -231,16 +256,15 @@ public java.lang.String getCloudProduct() {
    * 
* * string cloud_product = 1; + * * @return The bytes for cloudProduct. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudProductBytes() { + public com.google.protobuf.ByteString getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -251,31 +275,43 @@ public java.lang.String getCloudProduct() { public static final int ENROLLMENT_LEVEL_FIELD_NUMBER = 2; private int enrollmentLevel_; /** + * + * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return The enum numeric value on the wire for enrollmentLevel. */ - @java.lang.Override public int getEnrollmentLevelValue() { + @java.lang.Override + public int getEnrollmentLevelValue() { return enrollmentLevel_; } /** + * + * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return The enrollmentLevel. */ - @java.lang.Override public com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel() { + @java.lang.Override + public com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.EnrollmentLevel result = com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); - return result == null ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED : result; + com.google.cloud.accessapproval.v1.EnrollmentLevel result = + com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); + return result == null + ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,12 +323,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(cloudProduct_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudProduct_); } - if (enrollmentLevel_ != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED.getNumber()) { + if (enrollmentLevel_ + != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(2, enrollmentLevel_); } unknownFields.writeTo(output); @@ -307,9 +344,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudProduct_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudProduct_); } - if (enrollmentLevel_ != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, enrollmentLevel_); + if (enrollmentLevel_ + != com.google.cloud.accessapproval.v1.EnrollmentLevel.ENROLLMENT_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, enrollmentLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -319,15 +357,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.accessapproval.v1.EnrolledService)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.EnrolledService other = (com.google.cloud.accessapproval.v1.EnrolledService) obj; + com.google.cloud.accessapproval.v1.EnrolledService other = + (com.google.cloud.accessapproval.v1.EnrolledService) obj; - if (!getCloudProduct() - .equals(other.getCloudProduct())) return false; + if (!getCloudProduct().equals(other.getCloudProduct())) return false; if (enrollmentLevel_ != other.enrollmentLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -350,117 +388,126 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.EnrolledService parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.EnrolledService parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.EnrolledService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.EnrolledService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the enrollment of a cloud resource into a specific service.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.EnrolledService} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.EnrolledService) com.google.cloud.accessapproval.v1.EnrolledServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_EnrolledService_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.EnrolledService.class, com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); + com.google.cloud.accessapproval.v1.EnrolledService.class, + com.google.cloud.accessapproval.v1.EnrolledService.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.EnrolledService.newBuilder() @@ -468,16 +515,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_EnrolledService_descriptor; } @java.lang.Override @@ -510,7 +556,8 @@ public com.google.cloud.accessapproval.v1.EnrolledService build() { @java.lang.Override public com.google.cloud.accessapproval.v1.EnrolledService buildPartial() { - com.google.cloud.accessapproval.v1.EnrolledService result = new com.google.cloud.accessapproval.v1.EnrolledService(this); + com.google.cloud.accessapproval.v1.EnrolledService result = + new com.google.cloud.accessapproval.v1.EnrolledService(this); result.cloudProduct_ = cloudProduct_; result.enrollmentLevel_ = enrollmentLevel_; onBuilt(); @@ -521,38 +568,39 @@ public com.google.cloud.accessapproval.v1.EnrolledService buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.EnrolledService) { - return mergeFrom((com.google.cloud.accessapproval.v1.EnrolledService)other); + return mergeFrom((com.google.cloud.accessapproval.v1.EnrolledService) other); } else { super.mergeFrom(other); return this; @@ -560,7 +608,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.EnrolledService other) { - if (other == com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.EnrolledService.getDefaultInstance()) + return this; if (!other.getCloudProduct().isEmpty()) { cloudProduct_ = other.cloudProduct_; onChanged(); @@ -587,7 +636,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.EnrolledService) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.EnrolledService) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,6 +649,8 @@ public Builder mergeFrom( private java.lang.Object cloudProduct_ = ""; /** + * + * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -655,13 +707,13 @@ public Builder mergeFrom(
      * 
* * string cloud_product = 1; + * * @return The cloudProduct. */ public java.lang.String getCloudProduct() { java.lang.Object ref = cloudProduct_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; @@ -670,6 +722,8 @@ public java.lang.String getCloudProduct() { } } /** + * + * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -726,15 +780,14 @@ public java.lang.String getCloudProduct() {
      * 
* * string cloud_product = 1; + * * @return The bytes for cloudProduct. */ - public com.google.protobuf.ByteString - getCloudProductBytes() { + public com.google.protobuf.ByteString getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -742,6 +795,8 @@ public java.lang.String getCloudProduct() { } } /** + * + * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -798,20 +853,22 @@ public java.lang.String getCloudProduct() {
      * 
* * string cloud_product = 1; + * * @param value The cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProduct( - java.lang.String value) { + public Builder setCloudProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudProduct_ = value; onChanged(); return this; } /** + * + * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -868,15 +925,18 @@ public Builder setCloudProduct(
      * 
* * string cloud_product = 1; + * * @return This builder for chaining. */ public Builder clearCloudProduct() { - + cloudProduct_ = getDefaultInstance().getCloudProduct(); onChanged(); return this; } /** + * + * *
      * The product for which Access Approval will be enrolled. Allowed values are
      * listed below (case-sensitive):
@@ -933,16 +993,16 @@ public Builder clearCloudProduct() {
      * 
* * string cloud_product = 1; + * * @param value The bytes for cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProductBytes( - com.google.protobuf.ByteString value) { + public Builder setCloudProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudProduct_ = value; onChanged(); return this; @@ -950,51 +1010,67 @@ public Builder setCloudProductBytes( private int enrollmentLevel_ = 0; /** + * + * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return The enum numeric value on the wire for enrollmentLevel. */ - @java.lang.Override public int getEnrollmentLevelValue() { + @java.lang.Override + public int getEnrollmentLevelValue() { return enrollmentLevel_; } /** + * + * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @param value The enum numeric value on the wire for enrollmentLevel to set. * @return This builder for chaining. */ public Builder setEnrollmentLevelValue(int value) { - + enrollmentLevel_ = value; onChanged(); return this; } /** + * + * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return The enrollmentLevel. */ @java.lang.Override public com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel() { @SuppressWarnings("deprecation") - com.google.cloud.accessapproval.v1.EnrollmentLevel result = com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); - return result == null ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED : result; + com.google.cloud.accessapproval.v1.EnrollmentLevel result = + com.google.cloud.accessapproval.v1.EnrollmentLevel.valueOf(enrollmentLevel_); + return result == null + ? com.google.cloud.accessapproval.v1.EnrollmentLevel.UNRECOGNIZED + : result; } /** + * + * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @param value The enrollmentLevel to set. * @return This builder for chaining. */ @@ -1002,28 +1078,31 @@ public Builder setEnrollmentLevel(com.google.cloud.accessapproval.v1.EnrollmentL if (value == null) { throw new NullPointerException(); } - + enrollmentLevel_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The enrollment level of the service.
      * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return This builder for chaining. */ public Builder clearEnrollmentLevel() { - + enrollmentLevel_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.EnrolledService) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.EnrolledService) private static final com.google.cloud.accessapproval.v1.EnrolledService DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.EnrolledService(); } @@ -1047,16 +1126,16 @@ public static com.google.cloud.accessapproval.v1.EnrolledService getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnrolledService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnrolledService(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnrolledService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnrolledService(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,6 +1150,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.EnrolledService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java index b2fa65f5..8e92955f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrolledServiceOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface EnrolledServiceOrBuilder extends +public interface EnrolledServiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.EnrolledService) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -64,10 +82,13 @@ public interface EnrolledServiceOrBuilder extends
    * 
* * string cloud_product = 1; + * * @return The cloudProduct. */ java.lang.String getCloudProduct(); /** + * + * *
    * The product for which Access Approval will be enrolled. Allowed values are
    * listed below (case-sensitive):
@@ -124,26 +145,32 @@ public interface EnrolledServiceOrBuilder extends
    * 
* * string cloud_product = 1; + * * @return The bytes for cloudProduct. */ - com.google.protobuf.ByteString - getCloudProductBytes(); + com.google.protobuf.ByteString getCloudProductBytes(); /** + * + * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return The enum numeric value on the wire for enrollmentLevel. */ int getEnrollmentLevelValue(); /** + * + * *
    * The enrollment level of the service.
    * 
* * .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; + * * @return The enrollmentLevel. */ com.google.cloud.accessapproval.v1.EnrollmentLevel getEnrollmentLevel(); diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java index 266d6545..109cc622 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/EnrollmentLevel.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Represents the type of enrollment for a given service to Access Approval.
  * 
* * Protobuf enum {@code google.cloud.accessapproval.v1.EnrollmentLevel} */ -public enum EnrollmentLevel - implements com.google.protobuf.ProtocolMessageEnum { +public enum EnrollmentLevel implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Default value for proto, shouldn't be used.
    * 
@@ -21,6 +39,8 @@ public enum EnrollmentLevel */ ENROLLMENT_LEVEL_UNSPECIFIED(0), /** + * + * *
    * Service is enrolled in Access Approval for all requests
    * 
@@ -32,6 +52,8 @@ public enum EnrollmentLevel ; /** + * + * *
    * Default value for proto, shouldn't be used.
    * 
@@ -40,6 +62,8 @@ public enum EnrollmentLevel */ public static final int ENROLLMENT_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Service is enrolled in Access Approval for all requests
    * 
@@ -48,7 +72,6 @@ public enum EnrollmentLevel */ public static final int BLOCK_ALL_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -73,48 +96,49 @@ public static EnrollmentLevel valueOf(int value) { */ public static EnrollmentLevel forNumber(int value) { switch (value) { - case 0: return ENROLLMENT_LEVEL_UNSPECIFIED; - case 1: return BLOCK_ALL; - default: return null; + case 0: + return ENROLLMENT_LEVEL_UNSPECIFIED; + case 1: + return BLOCK_ALL; + 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< - EnrollmentLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnrollmentLevel findValueByNumber(int number) { - return EnrollmentLevel.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 EnrollmentLevel findValueByNumber(int number) { + return EnrollmentLevel.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.accessapproval.v1.AccessApprovalProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final EnrollmentLevel[] VALUES = values(); - public static EnrollmentLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EnrollmentLevel 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; @@ -130,4 +154,3 @@ private EnrollmentLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.accessapproval.v1.EnrollmentLevel) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java index fc6b5311..85d3844d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessage.java @@ -1,40 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to get an Access Approval service account.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage} */ -public final class GetAccessApprovalServiceAccountMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAccessApprovalServiceAccountMessage + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) GetAccessApprovalServiceAccountMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAccessApprovalServiceAccountMessage.newBuilder() to construct. - private GetAccessApprovalServiceAccountMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetAccessApprovalServiceAccountMessage( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAccessApprovalServiceAccountMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAccessApprovalServiceAccountMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAccessApprovalServiceAccountMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +72,20 @@ private GetAccessApprovalServiceAccountMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +93,40 @@ private GetAccessApprovalServiceAccountMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -109,29 +135,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; } } /** + * + * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * 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 { @@ -140,6 +166,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +178,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -176,15 +202,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage)) { + if (!(obj + instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other = (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) obj; + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other = + (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,134 +231,146 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get an Access Approval service account.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.class, + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.Builder + .class); } - // Construct using com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.newBuilder() + // Construct using + // com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,19 +380,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalServiceAccountMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.getDefaultInstance(); + public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage build() { - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = buildPartial(); + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -361,8 +403,10 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage buildPartial() { - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(this); + public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + buildPartial() { + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage result = + new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(this); result.name_ = name_; onBuilt(); return result; @@ -372,46 +416,52 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage)other); + if (other + instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) { + return mergeFrom( + (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other) { - if (other == com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage other) { + if (other + == com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -431,11 +481,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parsedMessage = null; + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +500,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * 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; @@ -467,20 +522,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * 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 { @@ -488,61 +544,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the AccessApprovalServiceAccount to retrieve.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,30 +615,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) - private static final com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(); + DEFAULT_INSTANCE = + new com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage(); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccessApprovalServiceAccountMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAccessApprovalServiceAccountMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessApprovalServiceAccountMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAccessApprovalServiceAccountMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +653,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java index 77eb6cf3..8862eae5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalServiceAccountMessageOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface GetAccessApprovalServiceAccountMessageOrBuilder extends +public interface GetAccessApprovalServiceAccountMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the AccessApprovalServiceAccount to retrieve.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java index 8340e7f6..fcf94c5d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessage.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to get access approval settings.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage} */ -public final class GetAccessApprovalSettingsMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAccessApprovalSettingsMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) GetAccessApprovalSettingsMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAccessApprovalSettingsMessage.newBuilder() to construct. - private GetAccessApprovalSettingsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetAccessApprovalSettingsMessage( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAccessApprovalSettingsMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAccessApprovalSettingsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAccessApprovalSettingsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private GetAccessApprovalSettingsMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,40 @@ private GetAccessApprovalSettingsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -110,30 +134,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.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 { @@ -142,6 +166,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +178,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -178,15 +202,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.accessapproval.v1.GetAccessApprovalSettingsMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other = (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) obj; + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other = + (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +230,145 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get access approval settings.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.class, + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.Builder.class); } - // Construct using com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.newBuilder() + // Construct using + // com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +378,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetAccessApprovalSettingsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.getDefaultInstance(); + public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +401,8 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage build @java.lang.Override public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage buildPartial() { - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage result = new com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage(this); + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage result = + new com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,51 @@ public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage)other); + return mergeFrom( + (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other) { - if (other == com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage other) { + if (other + == com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +494,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.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; @@ -470,21 +517,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.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 { @@ -492,64 +540,71 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the AccessApprovalSettings to retrieve.
      * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +614,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) - private static final com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage(); } - public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccessApprovalSettingsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAccessApprovalSettingsMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessApprovalSettingsMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAccessApprovalSettingsMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +651,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java index bc6a621c..4ef67424 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetAccessApprovalSettingsMessageOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface GetAccessApprovalSettingsMessageOrBuilder extends +public interface GetAccessApprovalSettingsMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the AccessApprovalSettings to retrieve.
    * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java index f03d0af8..3b9686fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessage.java @@ -1,40 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to get an approval request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetApprovalRequestMessage} */ -public final class GetApprovalRequestMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.GetApprovalRequestMessage) GetApprovalRequestMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetApprovalRequestMessage.newBuilder() to construct. private GetApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetApprovalRequestMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the approval request to retrieve.
    * Format:
@@ -103,6 +125,7 @@ private GetApprovalRequestMessage(
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the approval request to retrieve.
    * Format:
@@ -126,16 +150,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -144,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -180,15 +203,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.accessapproval.v1.GetApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage other = + (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get an approval request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.GetApprovalRequestMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.GetApprovalRequestMessage) com.google.cloud.accessapproval.v1.GetApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_GetApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage + getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance(); } @@ -366,7 +399,8 @@ public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage build() { @java.lang.Override public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.GetApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage result = + new com.google.cloud.accessapproval.v1.GetApprovalRequestMessage(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +410,39 @@ public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.GetApprovalRequestMessage)other); + return mergeFrom((com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) other); } else { super.mergeFrom(other); return this; @@ -415,7 +450,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.GetApprovalRequestMessage other) { - if (other == com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance()) return this; + if (other + == com.google.cloud.accessapproval.v1.GetApprovalRequestMessage.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.GetApprovalRequestMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +489,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the approval request to retrieve.
      * Format:
@@ -458,13 +498,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -473,6 +513,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the approval request to retrieve.
      * Format:
@@ -480,15 +522,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,6 +537,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the approval request to retrieve.
      * Format:
@@ -503,20 +546,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the approval request to retrieve.
      * Format:
@@ -524,15 +569,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the approval request to retrieve.
      * Format:
@@ -540,23 +588,23 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +614,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.GetApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.GetApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.GetApprovalRequestMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.GetApprovalRequestMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.GetApprovalRequestMessage(); } @@ -580,16 +629,16 @@ public static com.google.cloud.accessapproval.v1.GetApprovalRequestMessage getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +653,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.accessapproval.v1.GetApprovalRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java index 119351d5..d960e6fa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/GetApprovalRequestMessageOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface GetApprovalRequestMessageOrBuilder extends +public interface GetApprovalRequestMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.GetApprovalRequestMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the approval request to retrieve.
    * Format:
@@ -15,10 +33,13 @@ public interface GetApprovalRequestMessageOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the approval request to retrieve.
    * Format:
@@ -26,8 +47,8 @@ public interface GetApprovalRequestMessageOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java index f98e82cb..47e5f08d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessage.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to invalidate an existing approval.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage} */ -public final class InvalidateApprovalRequestMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InvalidateApprovalRequestMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) InvalidateApprovalRequestMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InvalidateApprovalRequestMessage.newBuilder() to construct. - private InvalidateApprovalRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private InvalidateApprovalRequestMessage( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InvalidateApprovalRequestMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InvalidateApprovalRequestMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InvalidateApprovalRequestMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private InvalidateApprovalRequestMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +92,39 @@ private InvalidateApprovalRequestMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -109,29 +133,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; } } /** + * + * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.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 { @@ -140,6 +164,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +200,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.accessapproval.v1.InvalidateApprovalRequestMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other = (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) obj; + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other = + (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,134 +228,145 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to invalidate an existing approval.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.class, + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.Builder.class); } - // Construct using com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.newBuilder() + // Construct using + // com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,14 +376,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_InvalidateApprovalRequestMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.getDefaultInstance(); + public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + .getDefaultInstance(); } @java.lang.Override @@ -362,7 +399,8 @@ public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage build @java.lang.Override public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage buildPartial() { - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage result = new com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage(this); + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage result = + new com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage(this); result.name_ = name_; onBuilt(); return result; @@ -372,46 +410,51 @@ public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage)other); + return mergeFrom( + (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other) { - if (other == com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage other) { + if (other + == com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +492,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.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; @@ -467,20 +514,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.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 { @@ -488,61 +536,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the ApprovalRequest to invalidate.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,30 +607,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) - private static final com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage(); } - public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvalidateApprovalRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvalidateApprovalRequestMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvalidateApprovalRequestMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvalidateApprovalRequestMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +644,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java index 56fc0799..f59d043c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/InvalidateApprovalRequestMessageOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface InvalidateApprovalRequestMessageOrBuilder extends +public interface InvalidateApprovalRequestMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the ApprovalRequest to invalidate.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java index 56488739..35eb3054 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessage.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to list approval requests.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsMessage} */ -public final class ListApprovalRequestsMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListApprovalRequestsMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) ListApprovalRequestsMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListApprovalRequestsMessage.newBuilder() to construct. private ListApprovalRequestsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListApprovalRequestsMessage() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListApprovalRequestsMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListApprovalRequestsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListApprovalRequestsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListApprovalRequestsMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,40 @@ private ListApprovalRequestsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -129,30 +154,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.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 { @@ -163,6 +188,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -178,6 +205,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -186,14 +214,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -209,16 +238,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -229,11 +257,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -244,11 +275,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -257,29 +291,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; } } /** + * + * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; + * * @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 { @@ -288,6 +322,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,8 +334,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -329,8 +363,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -343,21 +376,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.accessapproval.v1.ListApprovalRequestsMessage)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage other = (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage other = + (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -383,117 +413,127 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to list approval requests.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) com.google.cloud.accessapproval.v1.ListApprovalRequestsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.class, + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.newBuilder() @@ -501,16 +541,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -526,13 +565,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage + getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance(); } @@ -547,7 +587,8 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage buildPartial() { - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage result = new com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage(this); + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage result = + new com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -560,38 +601,39 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage)other); + return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) other); } else { super.mergeFrom(other); return this; @@ -599,7 +641,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage other) { - if (other == com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance()) return this; + if (other + == com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -634,7 +678,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,19 +692,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.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; @@ -667,21 +715,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.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 { @@ -689,57 +738,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The parent resource. This may be "projects/{project}",
      * "folders/{folder}", or "organizations/{organization}".
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,6 +803,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -762,13 +820,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -777,6 +835,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -792,15 +852,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -808,6 +867,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -823,20 +884,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -852,15 +915,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * A filter on the type of approval requests to retrieve. Must be one of the
      * following values:
@@ -876,28 +942,31 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -905,30 +974,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -936,18 +1011,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; + * * @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; @@ -956,20 +1033,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; + * * @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 { @@ -977,61 +1055,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying the page of results to return.
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1041,30 +1126,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) - private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage(); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApprovalRequestsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApprovalRequestsMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApprovalRequestsMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApprovalRequestsMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,9 +1163,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java index 072f02b9..9567d3a5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsMessageOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ListApprovalRequestsMessageOrBuilder extends +public interface ListApprovalRequestsMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ListApprovalRequestsMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The parent resource. This may be "projects/{project}",
    * "folders/{folder}", or "organizations/{organization}".
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -45,10 +68,13 @@ public interface ListApprovalRequestsMessageOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter on the type of approval requests to retrieve. Must be one of the
    * following values:
@@ -64,38 +90,46 @@ public interface ListApprovalRequestsMessageOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Requested page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying the page of results to return.
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java index 19b113f1..bd538a6f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponse.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Response to listing of ApprovalRequest objects.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsResponse} */ -public final class ListApprovalRequestsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListApprovalRequestsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) ListApprovalRequestsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListApprovalRequestsResponse.newBuilder() to construct. private ListApprovalRequestsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListApprovalRequestsResponse() { approvalRequests_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListApprovalRequestsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListApprovalRequestsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListApprovalRequestsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListApprovalRequestsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - approvalRequests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + approvalRequests_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + approvalRequests_.add( + input.readMessage( + com.google.cloud.accessapproval.v1.ApprovalRequest.parser(), + extensionRegistry)); + break; } - approvalRequests_.add( - input.readMessage(com.google.cloud.accessapproval.v1.ApprovalRequest.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListApprovalRequestsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { approvalRequests_ = java.util.Collections.unmodifiableList(approvalRequests_); @@ -94,22 +115,27 @@ private ListApprovalRequestsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); } public static final int APPROVAL_REQUESTS_FIELD_NUMBER = 1; private java.util.List approvalRequests_; /** + * + * *
    * Approval request details.
    * 
@@ -117,10 +143,13 @@ private ListApprovalRequestsResponse( * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ @java.lang.Override - public java.util.List getApprovalRequestsList() { + public java.util.List + getApprovalRequestsList() { return approvalRequests_; } /** + * + * *
    * Approval request details.
    * 
@@ -128,11 +157,13 @@ public java.util.List getApp * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ @java.lang.Override - public java.util.List + public java.util.List getApprovalRequestsOrBuilderList() { return approvalRequests_; } /** + * + * *
    * Approval request details.
    * 
@@ -144,6 +175,8 @@ public int getApprovalRequestsCount() { return approvalRequests_.size(); } /** + * + * *
    * Approval request details.
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequests(in return approvalRequests_.get(index); } /** + * + * *
    * Approval request details.
    * 
@@ -170,11 +205,14 @@ public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRe public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +221,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more.
    * 
* * 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 { @@ -214,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 { for (int i = 0; i < approvalRequests_.size(); i++) { output.writeMessage(1, approvalRequests_.get(i)); } @@ -243,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < approvalRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, approvalRequests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, approvalRequests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other = (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) obj; + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other = + (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) obj; - if (!getApprovalRequestsList() - .equals(other.getApprovalRequestsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getApprovalRequestsList().equals(other.getApprovalRequestsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +327,127 @@ public int hashCode() { } public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to listing of ApprovalRequest objects.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ListApprovalRequestsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) com.google.cloud.accessapproval.v1.ListApprovalRequestsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.class, + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.newBuilder() @@ -409,17 +455,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getApprovalRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ListApprovalRequestsResponse_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse + getDefaultInstanceForType() { return com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance(); } @@ -456,7 +503,8 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse buildPartial() { - com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse result = new com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse(this); + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse result = + new com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse(this); int from_bitField0_ = bitField0_; if (approvalRequestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +524,50 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) { - return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse)other); + return mergeFrom((com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other) { - if (other == com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse other) { + if (other + == com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse.getDefaultInstance()) + return this; if (approvalRequestsBuilder_ == null) { if (!other.approvalRequests_.isEmpty()) { if (approvalRequests_.isEmpty()) { @@ -534,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.accessapproval.v1.ListApprovalRequests approvalRequestsBuilder_ = null; approvalRequests_ = other.approvalRequests_; bitField0_ = (bitField0_ & ~0x00000001); - approvalRequestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getApprovalRequestsFieldBuilder() : null; + approvalRequestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApprovalRequestsFieldBuilder() + : null; } else { approvalRequestsBuilder_.addAllMessages(other.approvalRequests_); } @@ -565,7 +618,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,28 +629,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List approvalRequests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureApprovalRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - approvalRequests_ = new java.util.ArrayList(approvalRequests_); + approvalRequests_ = + new java.util.ArrayList( + approvalRequests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApprovalRequest, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> approvalRequestsBuilder_; + com.google.cloud.accessapproval.v1.ApprovalRequest, + com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, + com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> + approvalRequestsBuilder_; /** + * + * *
      * Approval request details.
      * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - public java.util.List getApprovalRequestsList() { + public java.util.List + getApprovalRequestsList() { if (approvalRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(approvalRequests_); } else { @@ -603,6 +668,8 @@ public java.util.List getApp } } /** + * + * *
      * Approval request details.
      * 
@@ -617,6 +684,8 @@ public int getApprovalRequestsCount() { } } /** + * + * *
      * Approval request details.
      * 
@@ -631,6 +700,8 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequests(in } } /** + * + * *
      * Approval request details.
      * 
@@ -652,6 +723,8 @@ public Builder setApprovalRequests( return this; } /** + * + * *
      * Approval request details.
      * 
@@ -670,6 +743,8 @@ public Builder setApprovalRequests( return this; } /** + * + * *
      * Approval request details.
      * 
@@ -690,6 +765,8 @@ public Builder addApprovalRequests(com.google.cloud.accessapproval.v1.ApprovalRe return this; } /** + * + * *
      * Approval request details.
      * 
@@ -711,6 +788,8 @@ public Builder addApprovalRequests( return this; } /** + * + * *
      * Approval request details.
      * 
@@ -729,6 +808,8 @@ public Builder addApprovalRequests( return this; } /** + * + * *
      * Approval request details.
      * 
@@ -747,6 +828,8 @@ public Builder addApprovalRequests( return this; } /** + * + * *
      * Approval request details.
      * 
@@ -757,8 +840,7 @@ public Builder addAllApprovalRequests( java.lang.Iterable values) { if (approvalRequestsBuilder_ == null) { ensureApprovalRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, approvalRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, approvalRequests_); onChanged(); } else { approvalRequestsBuilder_.addAllMessages(values); @@ -766,6 +848,8 @@ public Builder addAllApprovalRequests( return this; } /** + * + * *
      * Approval request details.
      * 
@@ -783,6 +867,8 @@ public Builder clearApprovalRequests() { return this; } /** + * + * *
      * Approval request details.
      * 
@@ -800,6 +886,8 @@ public Builder removeApprovalRequests(int index) { return this; } /** + * + * *
      * Approval request details.
      * 
@@ -811,6 +899,8 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder getApprovalReq return getApprovalRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Approval request details.
      * 
@@ -820,19 +910,22 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder getApprovalReq public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRequestsOrBuilder( int index) { if (approvalRequestsBuilder_ == null) { - return approvalRequests_.get(index); } else { + return approvalRequests_.get(index); + } else { return approvalRequestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Approval request details.
      * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - public java.util.List - getApprovalRequestsOrBuilderList() { + public java.util.List + getApprovalRequestsOrBuilderList() { if (approvalRequestsBuilder_ != null) { return approvalRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +933,8 @@ public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRe } } /** + * + * *
      * Approval request details.
      * 
@@ -847,10 +942,12 @@ public com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRe * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalRequestsBuilder() { - return getApprovalRequestsFieldBuilder().addBuilder( - com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); + return getApprovalRequestsFieldBuilder() + .addBuilder(com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); } /** + * + * *
      * Approval request details.
      * 
@@ -859,26 +956,35 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalReq */ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalRequestsBuilder( int index) { - return getApprovalRequestsFieldBuilder().addBuilder( - index, com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); + return getApprovalRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.accessapproval.v1.ApprovalRequest.getDefaultInstance()); } /** + * + * *
      * Approval request details.
      * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - public java.util.List - getApprovalRequestsBuilderList() { + public java.util.List + getApprovalRequestsBuilderList() { return getApprovalRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApprovalRequest, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> + com.google.cloud.accessapproval.v1.ApprovalRequest, + com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, + com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder> getApprovalRequestsFieldBuilder() { if (approvalRequestsBuilder_ == null) { - approvalRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.accessapproval.v1.ApprovalRequest, com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder>( + approvalRequestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.accessapproval.v1.ApprovalRequest, + com.google.cloud.accessapproval.v1.ApprovalRequest.Builder, + com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder>( approvalRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -890,18 +996,20 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest.Builder addApprovalReq private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * 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; @@ -910,20 +1018,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * 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 { @@ -931,61 +1040,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,30 +1111,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) - private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse(); } - public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse getDefaultInstance() { + public static com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApprovalRequestsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApprovalRequestsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApprovalRequestsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApprovalRequestsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1148,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse getDefaultInstanceForType() { + public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java index e1f2776f..cbeb164a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ListApprovalRequestsResponseOrBuilder.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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface ListApprovalRequestsResponseOrBuilder extends +public interface ListApprovalRequestsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ListApprovalRequestsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approval request details.
    * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - java.util.List - getApprovalRequestsList(); + java.util.List getApprovalRequestsList(); /** + * + * *
    * Approval request details.
    * 
@@ -25,6 +44,8 @@ public interface ListApprovalRequestsResponseOrBuilder extends */ com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequests(int index); /** + * + * *
    * Approval request details.
    * 
@@ -33,15 +54,19 @@ public interface ListApprovalRequestsResponseOrBuilder extends */ int getApprovalRequestsCount(); /** + * + * *
    * Approval request details.
    * 
* * repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; */ - java.util.List + java.util.List getApprovalRequestsOrBuilderList(); /** + * + * *
    * Approval request details.
    * 
@@ -52,22 +77,27 @@ com.google.cloud.accessapproval.v1.ApprovalRequestOrBuilder getApprovalRequestsO int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more.
    * 
* * 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.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java index 0e7003a8..60345706 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourceProperties.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * The properties associated with the resource of the request.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ResourceProperties} */ -public final class ResourceProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.ResourceProperties) ResourcePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceProperties.newBuilder() to construct. private ResourceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceProperties() { - } + + private ResourceProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private ResourceProperties( case 0: done = true; break; - case 8: { - - excludesDescendants_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + excludesDescendants_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,35 +87,40 @@ private ResourceProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ResourceProperties.class, com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); + com.google.cloud.accessapproval.v1.ResourceProperties.class, + com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); } public static final int EXCLUDES_DESCENDANTS_FIELD_NUMBER = 1; private boolean excludesDescendants_; /** + * + * *
    * Whether an approval will exclude the descendants of the resource being
    * requested.
    * 
* * bool excludes_descendants = 1; + * * @return The excludesDescendants. */ @java.lang.Override @@ -108,6 +129,7 @@ public boolean getExcludesDescendants() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +141,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (excludesDescendants_ != false) { output.writeBool(1, excludesDescendants_); } @@ -134,8 +155,7 @@ public int getSerializedSize() { size = 0; if (excludesDescendants_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, excludesDescendants_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, excludesDescendants_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -145,15 +165,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.accessapproval.v1.ResourceProperties)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.ResourceProperties other = (com.google.cloud.accessapproval.v1.ResourceProperties) obj; + com.google.cloud.accessapproval.v1.ResourceProperties other = + (com.google.cloud.accessapproval.v1.ResourceProperties) obj; - if (getExcludesDescendants() - != other.getExcludesDescendants()) return false; + if (getExcludesDescendants() != other.getExcludesDescendants()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -166,125 +186,134 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXCLUDES_DESCENDANTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExcludesDescendants()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludesDescendants()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.ResourceProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.ResourceProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.ResourceProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.accessapproval.v1.ResourceProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.accessapproval.v1.ResourceProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The properties associated with the resource of the request.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.ResourceProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.ResourceProperties) com.google.cloud.accessapproval.v1.ResourcePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ResourceProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.ResourceProperties.class, com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); + com.google.cloud.accessapproval.v1.ResourceProperties.class, + com.google.cloud.accessapproval.v1.ResourceProperties.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.ResourceProperties.newBuilder() @@ -292,16 +321,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -311,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_ResourceProperties_descriptor; } @java.lang.Override @@ -332,7 +360,8 @@ public com.google.cloud.accessapproval.v1.ResourceProperties build() { @java.lang.Override public com.google.cloud.accessapproval.v1.ResourceProperties buildPartial() { - com.google.cloud.accessapproval.v1.ResourceProperties result = new com.google.cloud.accessapproval.v1.ResourceProperties(this); + com.google.cloud.accessapproval.v1.ResourceProperties result = + new com.google.cloud.accessapproval.v1.ResourceProperties(this); result.excludesDescendants_ = excludesDescendants_; onBuilt(); return result; @@ -342,38 +371,39 @@ public com.google.cloud.accessapproval.v1.ResourceProperties buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.ResourceProperties) { - return mergeFrom((com.google.cloud.accessapproval.v1.ResourceProperties)other); + return mergeFrom((com.google.cloud.accessapproval.v1.ResourceProperties) other); } else { super.mergeFrom(other); return this; @@ -381,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.ResourceProperties other) { - if (other == com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.ResourceProperties.getDefaultInstance()) + return this; if (other.getExcludesDescendants() != false) { setExcludesDescendants(other.getExcludesDescendants()); } @@ -404,7 +435,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.ResourceProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.ResourceProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -414,14 +446,17 @@ public Builder mergeFrom( return this; } - private boolean excludesDescendants_ ; + private boolean excludesDescendants_; /** + * + * *
      * Whether an approval will exclude the descendants of the resource being
      * requested.
      * 
* * bool excludes_descendants = 1; + * * @return The excludesDescendants. */ @java.lang.Override @@ -429,39 +464,45 @@ public boolean getExcludesDescendants() { return excludesDescendants_; } /** + * + * *
      * Whether an approval will exclude the descendants of the resource being
      * requested.
      * 
* * bool excludes_descendants = 1; + * * @param value The excludesDescendants to set. * @return This builder for chaining. */ public Builder setExcludesDescendants(boolean value) { - + excludesDescendants_ = value; onChanged(); return this; } /** + * + * *
      * Whether an approval will exclude the descendants of the resource being
      * requested.
      * 
* * bool excludes_descendants = 1; + * * @return This builder for chaining. */ public Builder clearExcludesDescendants() { - + excludesDescendants_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -471,12 +512,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.ResourceProperties) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.ResourceProperties) private static final com.google.cloud.accessapproval.v1.ResourceProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.ResourceProperties(); } @@ -485,16 +526,16 @@ public static com.google.cloud.accessapproval.v1.ResourceProperties getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -509,6 +550,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.ResourceProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java new file mode 100644 index 00000000..18ec6266 --- /dev/null +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ResourcePropertiesOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/accessapproval/v1/accessapproval.proto + +package com.google.cloud.accessapproval.v1; + +public interface ResourcePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ResourceProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether an approval will exclude the descendants of the resource being
+   * requested.
+   * 
+ * + * bool excludes_descendants = 1; + * + * @return The excludesDescendants. + */ + boolean getExcludesDescendants(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java index 5414c5df..efc3d2a4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfo.java @@ -1,40 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Information about the digital signature of the resource.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.SignatureInfo} */ -public final class SignatureInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SignatureInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.SignatureInfo) SignatureInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SignatureInfo.newBuilder() to construct. private SignatureInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SignatureInfo() { signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SignatureInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SignatureInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,30 +70,32 @@ private SignatureInfo( case 0: done = true; break; - case 10: { - - signature_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - verificationInfoCase_ = 2; - verificationInfo_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - verificationInfoCase_ = 3; - verificationInfo_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + signature_ = input.readBytes(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + verificationInfoCase_ = 2; + verificationInfo_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + verificationInfoCase_ = 3; + verificationInfo_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,35 +103,40 @@ private SignatureInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.SignatureInfo.class, com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); + com.google.cloud.accessapproval.v1.SignatureInfo.class, + com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); } private int verificationInfoCase_ = 0; private java.lang.Object verificationInfo_; + public enum VerificationInfoCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_PUBLIC_KEY_PEM(2), CUSTOMER_KMS_KEY_VERSION(3), VERIFICATIONINFO_NOT_SET(0); private final int value; + private VerificationInfoCase(int value) { this.value = value; } @@ -128,31 +152,37 @@ public static VerificationInfoCase valueOf(int value) { public static VerificationInfoCase forNumber(int value) { switch (value) { - case 2: return GOOGLE_PUBLIC_KEY_PEM; - case 3: return CUSTOMER_KMS_KEY_VERSION; - case 0: return VERIFICATIONINFO_NOT_SET; - default: return null; + case 2: + return GOOGLE_PUBLIC_KEY_PEM; + case 3: + return CUSTOMER_KMS_KEY_VERSION; + case 0: + return VERIFICATIONINFO_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public VerificationInfoCase - getVerificationInfoCase() { - return VerificationInfoCase.forNumber( - verificationInfoCase_); + public VerificationInfoCase getVerificationInfoCase() { + return VerificationInfoCase.forNumber(verificationInfoCase_); } public static final int SIGNATURE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString signature_; /** + * + * *
    * The digital signature.
    * 
* * bytes signature = 1; + * * @return The signature. */ @java.lang.Override @@ -162,6 +192,8 @@ public com.google.protobuf.ByteString getSignature() { public static final int GOOGLE_PUBLIC_KEY_PEM_FIELD_NUMBER = 2; /** + * + * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -169,12 +201,15 @@ public com.google.protobuf.ByteString getSignature() {
    * 
* * string google_public_key_pem = 2; + * * @return Whether the googlePublicKeyPem field is set. */ public boolean hasGooglePublicKeyPem() { return verificationInfoCase_ == 2; } /** + * + * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -182,6 +217,7 @@ public boolean hasGooglePublicKeyPem() {
    * 
* * string google_public_key_pem = 2; + * * @return The googlePublicKeyPem. */ public java.lang.String getGooglePublicKeyPem() { @@ -192,8 +228,7 @@ public java.lang.String getGooglePublicKeyPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 2) { verificationInfo_ = s; @@ -202,6 +237,8 @@ public java.lang.String getGooglePublicKeyPem() { } } /** + * + * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -209,18 +246,17 @@ public java.lang.String getGooglePublicKeyPem() {
    * 
* * string google_public_key_pem = 2; + * * @return The bytes for googlePublicKeyPem. */ - public com.google.protobuf.ByteString - getGooglePublicKeyPemBytes() { + public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 2) { ref = verificationInfo_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (verificationInfoCase_ == 2) { verificationInfo_ = b; } @@ -232,22 +268,28 @@ public java.lang.String getGooglePublicKeyPem() { public static final int CUSTOMER_KMS_KEY_VERSION_FIELD_NUMBER = 3; /** + * + * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; + * * @return Whether the customerKmsKeyVersion field is set. */ public boolean hasCustomerKmsKeyVersion() { return verificationInfoCase_ == 3; } /** + * + * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; + * * @return The customerKmsKeyVersion. */ public java.lang.String getCustomerKmsKeyVersion() { @@ -258,8 +300,7 @@ public java.lang.String getCustomerKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 3) { verificationInfo_ = s; @@ -268,23 +309,24 @@ public java.lang.String getCustomerKmsKeyVersion() { } } /** + * + * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; + * * @return The bytes for customerKmsKeyVersion. */ - public com.google.protobuf.ByteString - getCustomerKmsKeyVersionBytes() { + public com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 3) { ref = verificationInfo_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (verificationInfoCase_ == 3) { verificationInfo_ = b; } @@ -295,6 +337,7 @@ public java.lang.String getCustomerKmsKeyVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +349,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!signature_.isEmpty()) { output.writeBytes(1, signature_); } @@ -327,8 +369,7 @@ public int getSerializedSize() { size = 0; if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, signature_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, signature_); } if (verificationInfoCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, verificationInfo_); @@ -344,24 +385,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.accessapproval.v1.SignatureInfo)) { return super.equals(obj); } - com.google.cloud.accessapproval.v1.SignatureInfo other = (com.google.cloud.accessapproval.v1.SignatureInfo) obj; + com.google.cloud.accessapproval.v1.SignatureInfo other = + (com.google.cloud.accessapproval.v1.SignatureInfo) obj; - if (!getSignature() - .equals(other.getSignature())) return false; + if (!getSignature().equals(other.getSignature())) return false; if (!getVerificationInfoCase().equals(other.getVerificationInfoCase())) return false; switch (verificationInfoCase_) { case 2: - if (!getGooglePublicKeyPem() - .equals(other.getGooglePublicKeyPem())) return false; + if (!getGooglePublicKeyPem().equals(other.getGooglePublicKeyPem())) return false; break; case 3: - if (!getCustomerKmsKeyVersion() - .equals(other.getCustomerKmsKeyVersion())) return false; + if (!getCustomerKmsKeyVersion().equals(other.getCustomerKmsKeyVersion())) return false; break; case 0: default: @@ -396,118 +435,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.accessapproval.v1.SignatureInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.accessapproval.v1.SignatureInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.accessapproval.v1.SignatureInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.accessapproval.v1.SignatureInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about the digital signature of the resource.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.SignatureInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.SignatureInfo) com.google.cloud.accessapproval.v1.SignatureInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_SignatureInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.SignatureInfo.class, com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); + com.google.cloud.accessapproval.v1.SignatureInfo.class, + com.google.cloud.accessapproval.v1.SignatureInfo.Builder.class); } // Construct using com.google.cloud.accessapproval.v1.SignatureInfo.newBuilder() @@ -515,16 +563,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_SignatureInfo_descriptor; } @java.lang.Override @@ -557,7 +604,8 @@ public com.google.cloud.accessapproval.v1.SignatureInfo build() { @java.lang.Override public com.google.cloud.accessapproval.v1.SignatureInfo buildPartial() { - com.google.cloud.accessapproval.v1.SignatureInfo result = new com.google.cloud.accessapproval.v1.SignatureInfo(this); + com.google.cloud.accessapproval.v1.SignatureInfo result = + new com.google.cloud.accessapproval.v1.SignatureInfo(this); result.signature_ = signature_; if (verificationInfoCase_ == 2) { result.verificationInfo_ = verificationInfo_; @@ -574,38 +622,39 @@ public com.google.cloud.accessapproval.v1.SignatureInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.SignatureInfo) { - return mergeFrom((com.google.cloud.accessapproval.v1.SignatureInfo)other); + return mergeFrom((com.google.cloud.accessapproval.v1.SignatureInfo) other); } else { super.mergeFrom(other); return this; @@ -613,26 +662,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.accessapproval.v1.SignatureInfo other) { - if (other == com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.accessapproval.v1.SignatureInfo.getDefaultInstance()) + return this; if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } switch (other.getVerificationInfoCase()) { - case GOOGLE_PUBLIC_KEY_PEM: { - verificationInfoCase_ = 2; - verificationInfo_ = other.verificationInfo_; - onChanged(); - break; - } - case CUSTOMER_KMS_KEY_VERSION: { - verificationInfoCase_ = 3; - verificationInfo_ = other.verificationInfo_; - onChanged(); - break; - } - case VERIFICATIONINFO_NOT_SET: { - break; - } + case GOOGLE_PUBLIC_KEY_PEM: + { + verificationInfoCase_ = 2; + verificationInfo_ = other.verificationInfo_; + onChanged(); + break; + } + case CUSTOMER_KMS_KEY_VERSION: + { + verificationInfoCase_ = 3; + verificationInfo_ = other.verificationInfo_; + onChanged(); + break; + } + case VERIFICATIONINFO_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -662,12 +715,12 @@ public Builder mergeFrom( } return this; } + private int verificationInfoCase_ = 0; private java.lang.Object verificationInfo_; - public VerificationInfoCase - getVerificationInfoCase() { - return VerificationInfoCase.forNumber( - verificationInfoCase_); + + public VerificationInfoCase getVerificationInfoCase() { + return VerificationInfoCase.forNumber(verificationInfoCase_); } public Builder clearVerificationInfo() { @@ -677,14 +730,16 @@ public Builder clearVerificationInfo() { return this; } - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The digital signature.
      * 
* * bytes signature = 1; + * * @return The signature. */ @java.lang.Override @@ -692,39 +747,47 @@ public com.google.protobuf.ByteString getSignature() { return signature_; } /** + * + * *
      * The digital signature.
      * 
* * bytes signature = 1; + * * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signature_ = value; onChanged(); return this; } /** + * + * *
      * The digital signature.
      * 
* * bytes signature = 1; + * * @return This builder for chaining. */ public Builder clearSignature() { - + signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } /** + * + * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -732,6 +795,7 @@ public Builder clearSignature() {
      * 
* * string google_public_key_pem = 2; + * * @return Whether the googlePublicKeyPem field is set. */ @java.lang.Override @@ -739,6 +803,8 @@ public boolean hasGooglePublicKeyPem() { return verificationInfoCase_ == 2; } /** + * + * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -746,6 +812,7 @@ public boolean hasGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; + * * @return The googlePublicKeyPem. */ @java.lang.Override @@ -755,8 +822,7 @@ public java.lang.String getGooglePublicKeyPem() { ref = verificationInfo_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 2) { verificationInfo_ = s; @@ -767,6 +833,8 @@ public java.lang.String getGooglePublicKeyPem() { } } /** + * + * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -774,19 +842,18 @@ public java.lang.String getGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; + * * @return The bytes for googlePublicKeyPem. */ @java.lang.Override - public com.google.protobuf.ByteString - getGooglePublicKeyPemBytes() { + public com.google.protobuf.ByteString getGooglePublicKeyPemBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 2) { ref = verificationInfo_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (verificationInfoCase_ == 2) { verificationInfo_ = b; } @@ -796,6 +863,8 @@ public java.lang.String getGooglePublicKeyPem() { } } /** + * + * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -803,20 +872,22 @@ public java.lang.String getGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; + * * @param value The googlePublicKeyPem to set. * @return This builder for chaining. */ - public Builder setGooglePublicKeyPem( - java.lang.String value) { + public Builder setGooglePublicKeyPem(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - verificationInfoCase_ = 2; + throw new NullPointerException(); + } + verificationInfoCase_ = 2; verificationInfo_ = value; onChanged(); return this; } /** + * + * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -824,6 +895,7 @@ public Builder setGooglePublicKeyPem(
      * 
* * string google_public_key_pem = 2; + * * @return This builder for chaining. */ public Builder clearGooglePublicKeyPem() { @@ -835,6 +907,8 @@ public Builder clearGooglePublicKeyPem() { return this; } /** + * + * *
      * The public key for the Google default signing, encoded in PEM format. The
      * signature was created using a private key which may be verified using
@@ -842,15 +916,15 @@ public Builder clearGooglePublicKeyPem() {
      * 
* * string google_public_key_pem = 2; + * * @param value The bytes for googlePublicKeyPem to set. * @return This builder for chaining. */ - public Builder setGooglePublicKeyPemBytes( - com.google.protobuf.ByteString value) { + public Builder setGooglePublicKeyPemBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); verificationInfoCase_ = 2; verificationInfo_ = value; onChanged(); @@ -858,11 +932,14 @@ public Builder setGooglePublicKeyPemBytes( } /** + * + * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; + * * @return Whether the customerKmsKeyVersion field is set. */ @java.lang.Override @@ -870,11 +947,14 @@ public boolean hasCustomerKmsKeyVersion() { return verificationInfoCase_ == 3; } /** + * + * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; + * * @return The customerKmsKeyVersion. */ @java.lang.Override @@ -884,8 +964,7 @@ public java.lang.String getCustomerKmsKeyVersion() { ref = verificationInfo_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (verificationInfoCase_ == 3) { verificationInfo_ = s; @@ -896,24 +975,25 @@ public java.lang.String getCustomerKmsKeyVersion() { } } /** + * + * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; + * * @return The bytes for customerKmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomerKmsKeyVersionBytes() { + public com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes() { java.lang.Object ref = ""; if (verificationInfoCase_ == 3) { ref = verificationInfo_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (verificationInfoCase_ == 3) { verificationInfo_ = b; } @@ -923,30 +1003,35 @@ public java.lang.String getCustomerKmsKeyVersion() { } } /** + * + * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; + * * @param value The customerKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCustomerKmsKeyVersion( - java.lang.String value) { + public Builder setCustomerKmsKeyVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - verificationInfoCase_ = 3; + throw new NullPointerException(); + } + verificationInfoCase_ = 3; verificationInfo_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; + * * @return This builder for chaining. */ public Builder clearCustomerKmsKeyVersion() { @@ -958,28 +1043,30 @@ public Builder clearCustomerKmsKeyVersion() { return this; } /** + * + * *
      * The resource name of the customer CryptoKeyVersion used for signing.
      * 
* * string customer_kms_key_version = 3; + * * @param value The bytes for customerKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCustomerKmsKeyVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomerKmsKeyVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); verificationInfoCase_ = 3; verificationInfo_ = 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); } @@ -989,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.SignatureInfo) } // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.SignatureInfo) private static final com.google.cloud.accessapproval.v1.SignatureInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.SignatureInfo(); } @@ -1003,16 +1090,16 @@ public static com.google.cloud.accessapproval.v1.SignatureInfo getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignatureInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignatureInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1114,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.accessapproval.v1.SignatureInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java index d0106288..05ac5a41 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/SignatureInfoOrBuilder.java @@ -1,23 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; -public interface SignatureInfoOrBuilder extends +public interface SignatureInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.SignatureInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The digital signature.
    * 
* * bytes signature = 1; + * * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** + * + * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -25,10 +46,13 @@ public interface SignatureInfoOrBuilder extends
    * 
* * string google_public_key_pem = 2; + * * @return Whether the googlePublicKeyPem field is set. */ boolean hasGooglePublicKeyPem(); /** + * + * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -36,10 +60,13 @@ public interface SignatureInfoOrBuilder extends
    * 
* * string google_public_key_pem = 2; + * * @return The googlePublicKeyPem. */ java.lang.String getGooglePublicKeyPem(); /** + * + * *
    * The public key for the Google default signing, encoded in PEM format. The
    * signature was created using a private key which may be verified using
@@ -47,39 +74,48 @@ public interface SignatureInfoOrBuilder extends
    * 
* * string google_public_key_pem = 2; + * * @return The bytes for googlePublicKeyPem. */ - com.google.protobuf.ByteString - getGooglePublicKeyPemBytes(); + com.google.protobuf.ByteString getGooglePublicKeyPemBytes(); /** + * + * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; + * * @return Whether the customerKmsKeyVersion field is set. */ boolean hasCustomerKmsKeyVersion(); /** + * + * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; + * * @return The customerKmsKeyVersion. */ java.lang.String getCustomerKmsKeyVersion(); /** + * + * *
    * The resource name of the customer CryptoKeyVersion used for signing.
    * 
* * string customer_kms_key_version = 3; + * * @return The bytes for customerKmsKeyVersion. */ - com.google.protobuf.ByteString - getCustomerKmsKeyVersionBytes(); + com.google.protobuf.ByteString getCustomerKmsKeyVersionBytes(); - public com.google.cloud.accessapproval.v1.SignatureInfo.VerificationInfoCase getVerificationInfoCase(); + public com.google.cloud.accessapproval.v1.SignatureInfo.VerificationInfoCase + getVerificationInfoCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java index 26a9b91a..48f107ac 100644 --- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java +++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessage.java @@ -1,39 +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/accessapproval/v1/accessapproval.proto package com.google.cloud.accessapproval.v1; /** + * + * *
  * Request to update access approval settings.
  * 
* * Protobuf type {@code google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage} */ -public final class UpdateAccessApprovalSettingsMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateAccessApprovalSettingsMessage + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) UpdateAccessApprovalSettingsMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateAccessApprovalSettingsMessage.newBuilder() to construct. - private UpdateAccessApprovalSettingsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateAccessApprovalSettingsMessage( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateAccessApprovalSettingsMessage() { - } + + private UpdateAccessApprovalSettingsMessage() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateAccessApprovalSettingsMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateAccessApprovalSettingsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +70,45 @@ private UpdateAccessApprovalSettingsMessage( case 0: done = true; break; - case 10: { - com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder subBuilder = null; - if (settings_ != null) { - subBuilder = settings_.toBuilder(); - } - settings_ = input.readMessage(com.google.cloud.accessapproval.v1.AccessApprovalSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(settings_); - settings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder subBuilder = null; + if (settings_ != null) { + subBuilder = settings_.toBuilder(); + } + settings_ = + input.readMessage( + com.google.cloud.accessapproval.v1.AccessApprovalSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(settings_); + settings_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +116,39 @@ private UpdateAccessApprovalSettingsMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); } public static final int SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.accessapproval.v1.AccessApprovalSettings settings_; /** + * + * *
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; + * * @return Whether the settings field is set. */ @java.lang.Override @@ -127,18 +156,25 @@ public boolean hasSettings() { return settings_ != null; } /** + * + * *
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; + * * @return The settings. */ @java.lang.Override public com.google.cloud.accessapproval.v1.AccessApprovalSettings getSettings() { - return settings_ == null ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() : settings_; + return settings_ == null + ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() + : settings_; } /** + * + * *
    * The new AccessApprovalSettings.
    * 
@@ -153,6 +189,8 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -166,6 +204,7 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +212,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -186,6 +227,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -193,6 +235,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -213,6 +257,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   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 {
     if (settings_ != null) {
       output.writeMessage(1, getSettings());
     }
@@ -242,12 +286,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (settings_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getSettings());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSettings());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +299,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.accessapproval.v1.UpdateAccessApprovalSettingsMessage)) {
       return super.equals(obj);
     }
-    com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other = (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) obj;
+    com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other =
+        (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) obj;
 
     if (hasSettings() != other.hasSettings()) return false;
     if (hasSettings()) {
-      if (!getSettings()
-          .equals(other.getSettings())) return false;
+      if (!getSettings().equals(other.getSettings())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -299,134 +340,145 @@ public int hashCode() {
   }
 
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request to update access approval settings.
    * 
* * Protobuf type {@code google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.class, + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.Builder.class); } - // Construct using com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.newBuilder() + // Construct using + // com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,19 +498,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.accessapproval.v1.AccessApprovalProto.internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.accessapproval.v1.AccessApprovalProto + .internal_static_google_cloud_accessapproval_v1_UpdateAccessApprovalSettingsMessage_descriptor; } @java.lang.Override - public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage getDefaultInstanceForType() { - return com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.getDefaultInstance(); + public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage + getDefaultInstanceForType() { + return com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage build() { - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = buildPartial(); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -467,7 +522,8 @@ public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage bu @java.lang.Override public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage buildPartial() { - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = new com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage(this); + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage result = + new com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage(this); if (settingsBuilder_ == null) { result.settings_ = settings_; } else { @@ -486,46 +542,51 @@ public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) { - return mergeFrom((com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)other); + return mergeFrom( + (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other) { - if (other == com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage other) { + if (other + == com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage + .getDefaultInstance()) return this; if (other.hasSettings()) { mergeSettings(other.getSettings()); } @@ -551,7 +612,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,34 +626,47 @@ public Builder mergeFrom( private com.google.cloud.accessapproval.v1.AccessApprovalSettings settings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessApprovalSettings, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> settingsBuilder_; + com.google.cloud.accessapproval.v1.AccessApprovalSettings, + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, + com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> + settingsBuilder_; /** + * + * *
      * The new AccessApprovalSettings.
      * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; + * * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** + * + * *
      * The new AccessApprovalSettings.
      * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; + * * @return The settings. */ public com.google.cloud.accessapproval.v1.AccessApprovalSettings getSettings() { if (settingsBuilder_ == null) { - return settings_ == null ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() : settings_; + return settings_ == null + ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() + : settings_; } else { return settingsBuilder_.getMessage(); } } /** + * + * *
      * The new AccessApprovalSettings.
      * 
@@ -611,6 +687,8 @@ public Builder setSettings(com.google.cloud.accessapproval.v1.AccessApprovalSett return this; } /** + * + * *
      * The new AccessApprovalSettings.
      * 
@@ -629,6 +707,8 @@ public Builder setSettings( return this; } /** + * + * *
      * The new AccessApprovalSettings.
      * 
@@ -639,7 +719,9 @@ public Builder mergeSettings(com.google.cloud.accessapproval.v1.AccessApprovalSe if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = - com.google.cloud.accessapproval.v1.AccessApprovalSettings.newBuilder(settings_).mergeFrom(value).buildPartial(); + com.google.cloud.accessapproval.v1.AccessApprovalSettings.newBuilder(settings_) + .mergeFrom(value) + .buildPartial(); } else { settings_ = value; } @@ -651,6 +733,8 @@ public Builder mergeSettings(com.google.cloud.accessapproval.v1.AccessApprovalSe return this; } /** + * + * *
      * The new AccessApprovalSettings.
      * 
@@ -669,6 +753,8 @@ public Builder clearSettings() { return this; } /** + * + * *
      * The new AccessApprovalSettings.
      * 
@@ -676,26 +762,32 @@ public Builder clearSettings() { * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; */ public com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder getSettingsBuilder() { - + onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * The new AccessApprovalSettings.
      * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; */ - public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSettingsOrBuilder() { + public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder + getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { - return settings_ == null ? - com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() : settings_; + return settings_ == null + ? com.google.cloud.accessapproval.v1.AccessApprovalSettings.getDefaultInstance() + : settings_; } } /** + * + * *
      * The new AccessApprovalSettings.
      * 
@@ -703,14 +795,17 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessApprovalSettings, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> + com.google.cloud.accessapproval.v1.AccessApprovalSettings, + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, + com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { - settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.accessapproval.v1.AccessApprovalSettings, com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder>( - getSettings(), - getParentForChildren(), - isClean()); + settingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.accessapproval.v1.AccessApprovalSettings, + com.google.cloud.accessapproval.v1.AccessApprovalSettings.Builder, + com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder>( + getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; @@ -718,8 +813,13 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet 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_; /** + * + * *
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -733,12 +833,15 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSet
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -752,16 +855,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -790,6 +898,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -804,8 +914,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -816,6 +925,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -834,7 +945,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -846,6 +957,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -872,6 +985,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -887,11 +1002,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -910,11 +1027,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The update mask applies to the settings. Only the top level fields of
      * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -930,21 +1050,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -954,30 +1077,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)
-  private static final com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage DEFAULT_INSTANCE;
+  private static final com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage();
   }
 
-  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage getDefaultInstance() {
+  public static com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateAccessApprovalSettingsMessage parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateAccessApprovalSettingsMessage(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateAccessApprovalSettingsMessage parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateAccessApprovalSettingsMessage(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -989,9 +1114,8 @@ public com.google.protobuf.Parser getParser
   }
 
   @java.lang.Override
-  public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage getDefaultInstanceForType() {
+  public com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
rename to proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
index 3b25d5f0..a3b023ce 100644
--- a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
+++ b/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/UpdateAccessApprovalSettingsMessageOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/accessapproval/v1/accessapproval.proto
 
 package com.google.cloud.accessapproval.v1;
 
-public interface UpdateAccessApprovalSettingsMessageOrBuilder extends
+public interface UpdateAccessApprovalSettingsMessageOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; + * * @return Whether the settings field is set. */ boolean hasSettings(); /** + * + * *
    * The new AccessApprovalSettings.
    * 
* * .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; + * * @return The settings. */ com.google.cloud.accessapproval.v1.AccessApprovalSettings getSettings(); /** + * + * *
    * The new AccessApprovalSettings.
    * 
@@ -35,6 +59,8 @@ public interface UpdateAccessApprovalSettingsMessageOrBuilder extends com.google.cloud.accessapproval.v1.AccessApprovalSettingsOrBuilder getSettingsOrBuilder(); /** + * + * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -48,10 +74,13 @@ public interface UpdateAccessApprovalSettingsMessageOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
@@ -65,10 +94,13 @@ public interface UpdateAccessApprovalSettingsMessageOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The update mask applies to the settings. Only the top level fields of
    * AccessApprovalSettings (notification_emails & enrolled_services) are
diff --git a/owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto b/proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto
rename to proto-google-cloud-accessapproval-v1/src/main/proto/google/cloud/accessapproval/v1/accessapproval.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
similarity index 98%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
index ff3f2a24..1b02cef2 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java
@@ -20,7 +20,6 @@
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
 import com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteAccessApprovalSettings {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
similarity index 84%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
index 0b0356e7..3e627556 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname {
 
@@ -36,4 +36,5 @@ public static void syncDeleteAccessApprovalSettingsAccessapprovalsettingsname()
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_accessapprovalsettingsname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
similarity index 85%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
index 5c01bcfb..b61367de 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteAccessApprovalSettingsString {
 
@@ -36,4 +36,5 @@ public static void syncDeleteAccessApprovalSettingsString() throws Exception {
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_deleteaccessapprovalsettings_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
similarity index 94%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
index 9fe5acbf..ef4ba95c 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_async]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
similarity index 94%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
index b4306d4c..b7a1fd51 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount;
 import com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
similarity index 86%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
index 176c9d87..411d218f 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount;
 
@@ -36,4 +37,5 @@ public static void syncGetAccessApprovalServiceAccountString() throws Exception
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalserviceaccount_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
similarity index 86%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
index 684a6cd7..8b18dabb 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettings;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
@@ -36,4 +37,5 @@ public static void syncGetAccessApprovalSettingsAccessapprovalsettingsname() thr
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_accessapprovalsettingsname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
index 2266189f..3ab2afff 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_string_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_getaccessapprovalsettings_string_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettings;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettingsName;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
index 233ea7df..5a945fa6 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.ApprovalRequestName;
@@ -37,4 +38,5 @@ public static void syncGetApprovalRequestApprovalrequestname() throws Exception
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_getapprovalrequest_approvalrequestname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
index fd94c4ca..fb9a6a3d 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_foldername_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_foldername_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.FolderName;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
index fd73aa1e..b729b59d 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.OrganizationName;
@@ -39,4 +40,5 @@ public static void syncListApprovalRequestsOrganizationname() throws Exception {
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
index 1130ee71..0b9a2bc6 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_projectname_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_listapprovalrequests_projectname_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.ApprovalRequest;
 import com.google.cloud.accessapproval.v1.ProjectName;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
similarity index 86%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
index 500f80a7..5cdc4129 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.accessapproval.v1.samples;
 
-// [START accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
+// [START
+// accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
 import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient;
 import com.google.cloud.accessapproval.v1.AccessApprovalSettings;
 import com.google.protobuf.FieldMask;
@@ -39,4 +40,5 @@ public static void syncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldma
     }
   }
 }
-// [END accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
+// [END
+// accessapproval_v1_generated_accessapprovaladminclient_updateaccessapprovalsettings_accessapprovalsettingsfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java b/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java
rename to samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java

From 4191c55ac93e210ceabc046bbf2e3c10e14c0989 Mon Sep 17 00:00:00 2001
From: Neenu Shaji 
Date: Thu, 23 Jun 2022 11:45:39 -0400
Subject: [PATCH 3/3] Update pom.xml

---
 google-cloud-accessapproval/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-accessapproval/pom.xml b/google-cloud-accessapproval/pom.xml
index 2b0b42ce..f220844c 100644
--- a/google-cloud-accessapproval/pom.xml
+++ b/google-cloud-accessapproval/pom.xml
@@ -57,6 +57,10 @@
       com.google.api
       gax-grpc
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -74,12 +78,24 @@
       test
     
     
+        
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
       testlib
       test
     
+    
+    com.google.api
+      gax-httpjson
+      testlib
+      test
+