From 5457a70b6a201402c269b08d2d0a4b7fddd6e4de Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 07:50:43 -0500 Subject: [PATCH] feat: [meet] added v2 libraries for the Meet API GA release (#10317) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added v2 libraries for the Meet API GA release PiperOrigin-RevId: 603346335 Source-Link: https://github.com/googleapis/googleapis/commit/16cccb2c23691406b514525033c80f080dbe4c86 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e1fb4cc1aad9dd6d97f7ed9999865246edabc71e Copy-Tag: eyJwIjoiamF2YS1tZWV0Ly5Pd2xCb3QueWFtbCIsImgiOiJlMWZiNGNjMWFhZDlkZDZkOTdmN2VkOTk5OTg2NTI0NmVkYWJjNzFlIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * consolidate config --------- Co-authored-by: Owl Bot Co-authored-by: Joe Wang --- java-meet/README.md | 4 +- java-meet/google-cloud-meet-bom/pom.xml | 10 + java-meet/google-cloud-meet/pom.xml | 9 + .../v2/ConferenceRecordsServiceClient.java | 2693 +++++++++++++++++ .../v2/ConferenceRecordsServiceSettings.java | 372 +++ .../apps/meet/v2/SpacesServiceClient.java | 648 ++++ .../apps/meet/v2/SpacesServiceSettings.java | 236 ++ .../google/apps/meet/v2/gapic_metadata.json | 75 + .../com/google/apps/meet/v2/package-info.java | 62 + .../v2/stub/ConferenceRecordsServiceStub.java | 151 + .../ConferenceRecordsServiceStubSettings.java | 1089 +++++++ ...nferenceRecordsServiceCallableFactory.java | 113 + .../GrpcConferenceRecordsServiceStub.java | 625 ++++ .../GrpcSpacesServiceCallableFactory.java | 113 + .../meet/v2/stub/GrpcSpacesServiceStub.java | 241 ++ ...nferenceRecordsServiceCallableFactory.java | 105 + .../HttpJsonConferenceRecordsServiceStub.java | 963 ++++++ .../HttpJsonSpacesServiceCallableFactory.java | 105 + .../v2/stub/HttpJsonSpacesServiceStub.java | 368 +++ .../apps/meet/v2/stub/SpacesServiceStub.java | 56 + .../v2/stub/SpacesServiceStubSettings.java | 431 +++ .../reflect-config.json | 1865 ++++++++++++ .../reflect-config.json | 135 + ...renceRecordsServiceClientHttpJsonTest.java | 1222 ++++++++ .../ConferenceRecordsServiceClientTest.java | 1093 +++++++ .../meet/v2/MockConferenceRecordsService.java | 59 + .../v2/MockConferenceRecordsServiceImpl.java | 315 ++ .../apps/meet/v2/MockSpacesService.java | 59 + .../apps/meet/v2/MockSpacesServiceImpl.java | 142 + .../v2/SpacesServiceClientHttpJsonTest.java | 363 +++ .../apps/meet/v2/SpacesServiceClientTest.java | 318 ++ java-meet/grpc-google-cloud-meet-v2/pom.xml | 45 + .../meet/v2/ConferenceRecordsServiceGrpc.java | 1781 +++++++++++ .../apps/meet/v2/SpacesServiceGrpc.java | 693 +++++ .../v2beta/ConferenceRecordsServiceGrpc.java | 2 +- .../apps/meet/v2beta/SpacesServiceGrpc.java | 2 +- java-meet/pom.xml | 12 + .../clirr-ignored-differences.xml | 19 + java-meet/proto-google-cloud-meet-v2/pom.xml | 37 + .../google/apps/meet/v2/ActiveConference.java | 651 ++++ .../meet/v2/ActiveConferenceOrBuilder.java | 59 + .../google/apps/meet/v2/AnonymousUser.java | 622 ++++ .../apps/meet/v2/AnonymousUserOrBuilder.java | 51 + .../google/apps/meet/v2/ConferenceRecord.java | 1709 +++++++++++ .../apps/meet/v2/ConferenceRecordName.java | 168 + .../meet/v2/ConferenceRecordOrBuilder.java | 207 ++ .../apps/meet/v2/CreateSpaceRequest.java | 724 +++++ .../meet/v2/CreateSpaceRequestOrBuilder.java | 64 + .../google/apps/meet/v2/DocsDestination.java | 847 ++++++ .../meet/v2/DocsDestinationOrBuilder.java | 88 + .../google/apps/meet/v2/DriveDestination.java | 840 +++++ .../meet/v2/DriveDestinationOrBuilder.java | 86 + .../meet/v2/EndActiveConferenceRequest.java | 639 ++++ .../EndActiveConferenceRequestOrBuilder.java | 55 + .../meet/v2/GetConferenceRecordRequest.java | 639 ++++ .../GetConferenceRecordRequestOrBuilder.java | 55 + .../apps/meet/v2/GetParticipantRequest.java | 638 ++++ .../v2/GetParticipantRequestOrBuilder.java | 55 + .../meet/v2/GetParticipantSessionRequest.java | 639 ++++ ...GetParticipantSessionRequestOrBuilder.java | 55 + .../apps/meet/v2/GetRecordingRequest.java | 638 ++++ .../meet/v2/GetRecordingRequestOrBuilder.java | 55 + .../google/apps/meet/v2/GetSpaceRequest.java | 637 ++++ .../meet/v2/GetSpaceRequestOrBuilder.java | 55 + .../meet/v2/GetTranscriptEntryRequest.java | 639 ++++ .../GetTranscriptEntryRequestOrBuilder.java | 55 + .../apps/meet/v2/GetTranscriptRequest.java | 638 ++++ .../v2/GetTranscriptRequestOrBuilder.java | 55 + .../meet/v2/ListConferenceRecordsRequest.java | 975 ++++++ ...ListConferenceRecordsRequestOrBuilder.java | 110 + .../v2/ListConferenceRecordsResponse.java | 1134 +++++++ ...istConferenceRecordsResponseOrBuilder.java | 105 + .../v2/ListParticipantSessionsRequest.java | 1175 +++++++ ...stParticipantSessionsRequestOrBuilder.java | 139 + .../v2/ListParticipantSessionsResponse.java | 1140 +++++++ ...tParticipantSessionsResponseOrBuilder.java | 105 + .../apps/meet/v2/ListParticipantsRequest.java | 1168 +++++++ .../v2/ListParticipantsRequestOrBuilder.java | 138 + .../meet/v2/ListParticipantsResponse.java | 1230 ++++++++ .../v2/ListParticipantsResponseOrBuilder.java | 121 + .../apps/meet/v2/ListRecordingsRequest.java | 929 ++++++ .../v2/ListRecordingsRequestOrBuilder.java | 97 + .../apps/meet/v2/ListRecordingsResponse.java | 1122 +++++++ .../v2/ListRecordingsResponseOrBuilder.java | 104 + .../meet/v2/ListTranscriptEntriesRequest.java | 937 ++++++ ...ListTranscriptEntriesRequestOrBuilder.java | 99 + .../v2/ListTranscriptEntriesResponse.java | 1133 +++++++ ...istTranscriptEntriesResponseOrBuilder.java | 105 + .../apps/meet/v2/ListTranscriptsRequest.java | 929 ++++++ .../v2/ListTranscriptsRequestOrBuilder.java | 97 + .../apps/meet/v2/ListTranscriptsResponse.java | 1124 +++++++ .../v2/ListTranscriptsResponseOrBuilder.java | 105 + .../com/google/apps/meet/v2/Participant.java | 2193 ++++++++++++++ .../google/apps/meet/v2/ParticipantName.java | 198 ++ .../apps/meet/v2/ParticipantOrBuilder.java | 245 ++ .../apps/meet/v2/ParticipantSession.java | 1199 ++++++++ .../apps/meet/v2/ParticipantSessionName.java | 240 ++ .../meet/v2/ParticipantSessionOrBuilder.java | 130 + .../com/google/apps/meet/v2/PhoneUser.java | 623 ++++ .../apps/meet/v2/PhoneUserOrBuilder.java | 51 + .../com/google/apps/meet/v2/Recording.java | 1964 ++++++++++++ .../google/apps/meet/v2/RecordingName.java | 198 ++ .../apps/meet/v2/RecordingOrBuilder.java | 211 ++ .../google/apps/meet/v2/ResourceProto.java | 332 ++ .../com/google/apps/meet/v2/ServiceProto.java | 475 +++ .../com/google/apps/meet/v2/SignedinUser.java | 830 +++++ .../apps/meet/v2/SignedinUserOrBuilder.java | 82 + .../java/com/google/apps/meet/v2/Space.java | 1555 ++++++++++ .../com/google/apps/meet/v2/SpaceConfig.java | 1124 +++++++ .../apps/meet/v2/SpaceConfigOrBuilder.java | 84 + .../com/google/apps/meet/v2/SpaceName.java | 167 + .../google/apps/meet/v2/SpaceOrBuilder.java | 179 ++ .../com/google/apps/meet/v2/Transcript.java | 1941 ++++++++++++ .../google/apps/meet/v2/TranscriptEntry.java | 1759 +++++++++++ .../apps/meet/v2/TranscriptEntryName.java | 227 ++ .../meet/v2/TranscriptEntryOrBuilder.java | 212 ++ .../google/apps/meet/v2/TranscriptName.java | 198 ++ .../apps/meet/v2/TranscriptOrBuilder.java | 205 ++ .../apps/meet/v2/UpdateSpaceRequest.java | 1024 +++++++ .../meet/v2/UpdateSpaceRequestOrBuilder.java | 108 + .../proto/google/apps/meet/v2/resource.proto | 409 +++ .../proto/google/apps/meet/v2/service.proto | 520 ++++ .../apps/meet/v2beta/ActiveConference.java | 3 +- .../v2beta/ActiveConferenceOrBuilder.java | 3 +- .../apps/meet/v2beta/AnonymousUser.java | 3 +- .../meet/v2beta/AnonymousUserOrBuilder.java | 3 +- .../apps/meet/v2beta/ConferenceRecord.java | 58 +- .../v2beta/ConferenceRecordOrBuilder.java | 3 +- .../apps/meet/v2beta/CreateSpaceRequest.java | 30 +- .../v2beta/CreateSpaceRequestOrBuilder.java | 3 +- .../apps/meet/v2beta/DocsDestination.java | 3 +- .../meet/v2beta/DocsDestinationOrBuilder.java | 3 +- .../apps/meet/v2beta/DriveDestination.java | 3 +- .../v2beta/DriveDestinationOrBuilder.java | 3 +- .../v2beta/EndActiveConferenceRequest.java | 3 +- .../EndActiveConferenceRequestOrBuilder.java | 3 +- .../v2beta/GetConferenceRecordRequest.java | 3 +- .../GetConferenceRecordRequestOrBuilder.java | 3 +- .../meet/v2beta/GetParticipantRequest.java | 3 +- .../GetParticipantRequestOrBuilder.java | 3 +- .../v2beta/GetParticipantSessionRequest.java | 3 +- ...GetParticipantSessionRequestOrBuilder.java | 3 +- .../apps/meet/v2beta/GetRecordingRequest.java | 3 +- .../v2beta/GetRecordingRequestOrBuilder.java | 3 +- .../apps/meet/v2beta/GetSpaceRequest.java | 3 +- .../meet/v2beta/GetSpaceRequestOrBuilder.java | 3 +- .../v2beta/GetTranscriptEntryRequest.java | 3 +- .../GetTranscriptEntryRequestOrBuilder.java | 3 +- .../meet/v2beta/GetTranscriptRequest.java | 3 +- .../v2beta/GetTranscriptRequestOrBuilder.java | 3 +- .../v2beta/ListConferenceRecordsRequest.java | 3 +- ...ListConferenceRecordsRequestOrBuilder.java | 3 +- .../v2beta/ListConferenceRecordsResponse.java | 3 +- ...istConferenceRecordsResponseOrBuilder.java | 3 +- .../ListParticipantSessionsRequest.java | 3 +- ...stParticipantSessionsRequestOrBuilder.java | 3 +- .../ListParticipantSessionsResponse.java | 3 +- ...tParticipantSessionsResponseOrBuilder.java | 3 +- .../meet/v2beta/ListParticipantsRequest.java | 3 +- .../ListParticipantsRequestOrBuilder.java | 3 +- .../meet/v2beta/ListParticipantsResponse.java | 3 +- .../ListParticipantsResponseOrBuilder.java | 3 +- .../meet/v2beta/ListRecordingsRequest.java | 3 +- .../ListRecordingsRequestOrBuilder.java | 3 +- .../meet/v2beta/ListRecordingsResponse.java | 3 +- .../ListRecordingsResponseOrBuilder.java | 3 +- .../v2beta/ListTranscriptEntriesRequest.java | 3 +- ...ListTranscriptEntriesRequestOrBuilder.java | 3 +- .../v2beta/ListTranscriptEntriesResponse.java | 3 +- ...istTranscriptEntriesResponseOrBuilder.java | 3 +- .../meet/v2beta/ListTranscriptsRequest.java | 3 +- .../ListTranscriptsRequestOrBuilder.java | 3 +- .../meet/v2beta/ListTranscriptsResponse.java | 3 +- .../ListTranscriptsResponseOrBuilder.java | 3 +- .../google/apps/meet/v2beta/Participant.java | 44 +- .../meet/v2beta/ParticipantOrBuilder.java | 3 +- .../apps/meet/v2beta/ParticipantSession.java | 44 +- .../v2beta/ParticipantSessionOrBuilder.java | 3 +- .../google/apps/meet/v2beta/PhoneUser.java | 3 +- .../apps/meet/v2beta/PhoneUserOrBuilder.java | 3 +- .../google/apps/meet/v2beta/Recording.java | 44 +- .../apps/meet/v2beta/RecordingOrBuilder.java | 3 +- .../apps/meet/v2beta/ResourceProto.java | 3 +- .../google/apps/meet/v2beta/ServiceProto.java | 3 +- .../google/apps/meet/v2beta/SignedinUser.java | 3 +- .../meet/v2beta/SignedinUserOrBuilder.java | 3 +- .../com/google/apps/meet/v2beta/Space.java | 44 +- .../google/apps/meet/v2beta/SpaceConfig.java | 3 +- .../meet/v2beta/SpaceConfigOrBuilder.java | 3 +- .../apps/meet/v2beta/SpaceOrBuilder.java | 3 +- .../google/apps/meet/v2beta/Transcript.java | 44 +- .../apps/meet/v2beta/TranscriptEntry.java | 44 +- .../meet/v2beta/TranscriptEntryOrBuilder.java | 3 +- .../apps/meet/v2beta/TranscriptOrBuilder.java | 3 +- .../apps/meet/v2beta/UpdateSpaceRequest.java | 44 +- .../v2beta/UpdateSpaceRequestOrBuilder.java | 3 +- .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../AsyncGetConferenceRecord.java | 51 + .../SyncGetConferenceRecord.java | 47 + ...tConferenceRecordConferencerecordname.java | 43 + .../SyncGetConferenceRecordString.java | 43 + .../getparticipant/AsyncGetParticipant.java | 51 + .../getparticipant/SyncGetParticipant.java | 47 + .../SyncGetParticipantParticipantname.java | 43 + .../SyncGetParticipantString.java | 43 + .../AsyncGetParticipantSession.java | 54 + .../SyncGetParticipantSession.java | 50 + ...ticipantSessionParticipantsessionname.java | 45 + .../SyncGetParticipantSessionString.java | 45 + .../getrecording/AsyncGetRecording.java | 51 + .../getrecording/SyncGetRecording.java | 47 + .../SyncGetRecordingRecordingname.java | 43 + .../getrecording/SyncGetRecordingString.java | 43 + .../gettranscript/AsyncGetTranscript.java | 51 + .../gettranscript/SyncGetTranscript.java | 47 + .../SyncGetTranscriptString.java | 43 + .../SyncGetTranscriptTranscriptname.java | 43 + .../AsyncGetTranscriptEntry.java | 53 + .../SyncGetTranscriptEntry.java | 49 + .../SyncGetTranscriptEntryString.java | 44 + ...GetTranscriptEntryTranscriptentryname.java | 44 + .../AsyncListConferenceRecords.java | 54 + .../AsyncListConferenceRecordsPaged.java | 62 + .../SyncListConferenceRecords.java | 51 + .../AsyncListParticipants.java | 56 + .../AsyncListParticipantsPaged.java | 64 + .../SyncListParticipants.java | 53 + ...cListParticipantsConferencerecordname.java | 46 + .../SyncListParticipantsString.java | 46 + .../AsyncListParticipantSessions.java | 56 + .../AsyncListParticipantSessionsPaged.java | 64 + .../SyncListParticipantSessions.java | 53 + ...istParticipantSessionsParticipantname.java | 46 + .../SyncListParticipantSessionsString.java | 46 + .../listrecordings/AsyncListRecordings.java | 55 + .../AsyncListRecordingsPaged.java | 63 + .../listrecordings/SyncListRecordings.java | 52 + ...yncListRecordingsConferencerecordname.java | 45 + .../SyncListRecordingsString.java | 45 + .../AsyncListTranscriptEntries.java | 55 + .../AsyncListTranscriptEntriesPaged.java | 63 + .../SyncListTranscriptEntries.java | 52 + .../SyncListTranscriptEntriesString.java | 46 + ...ncListTranscriptEntriesTranscriptname.java | 46 + .../listtranscripts/AsyncListTranscripts.java | 55 + .../AsyncListTranscriptsPaged.java | 63 + .../listtranscripts/SyncListTranscripts.java | 52 + ...ncListTranscriptsConferencerecordname.java | 46 + .../SyncListTranscriptsString.java | 46 + .../SyncGetConferenceRecord.java | 50 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 41 + .../createspace/AsyncCreateSpace.java | 46 + .../createspace/SyncCreateSpace.java | 43 + .../createspace/SyncCreateSpaceSpace.java | 41 + .../AsyncEndActiveConference.java | 50 + .../SyncEndActiveConference.java | 46 + .../SyncEndActiveConferenceSpacename.java | 42 + .../SyncEndActiveConferenceString.java | 42 + .../spacesservice/getspace/AsyncGetSpace.java | 47 + .../spacesservice/getspace/SyncGetSpace.java | 44 + .../getspace/SyncGetSpaceSpacename.java | 42 + .../getspace/SyncGetSpaceString.java | 42 + .../updatespace/AsyncUpdateSpace.java | 50 + .../updatespace/SyncUpdateSpace.java | 47 + .../SyncUpdateSpaceSpaceFieldmask.java | 43 + .../createspace/SyncCreateSpace.java | 48 + .../SyncGetConferenceRecord.java | 50 + .../createspace/SyncCreateSpace.java | 49 + versions.txt | 2 + 273 files changed, 65390 insertions(+), 177 deletions(-) create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/gapic_metadata.json create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/package-info.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStub.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceCallableFactory.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceStub.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceCallableFactory.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceStub.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceCallableFactory.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceStub.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceCallableFactory.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceStub.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStub.java create mode 100644 java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java create mode 100644 java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientHttpJsonTest.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientTest.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsService.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsServiceImpl.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesService.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesServiceImpl.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientHttpJsonTest.java create mode 100644 java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientTest.java create mode 100644 java-meet/grpc-google-cloud-meet-v2/pom.xml create mode 100644 java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java create mode 100644 java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java create mode 100644 java-meet/proto-google-cloud-meet-v2/clirr-ignored-differences.xml create mode 100644 java-meet/proto-google-cloud-meet-v2/pom.xml create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConference.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConferenceOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUser.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUserOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecord.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestination.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestinationOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestination.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestinationOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponse.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponseOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponse.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponseOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponse.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponseOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponse.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponseOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponse.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponseOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponse.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponseOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Participant.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSession.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUser.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUserOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Recording.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ResourceProto.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUser.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUserOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfig.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfigOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Transcript.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntry.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto create mode 100644 java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetEndpoint.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/AsyncGetConferenceRecord.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecord.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordConferencerecordname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipant.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantParticipantname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSession.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionParticipantsessionname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/AsyncGetRecording.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecording.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingRecordingname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/AsyncGetTranscript.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscript.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptTranscriptname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/AsyncGetTranscriptEntry.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntry.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryTranscriptentryname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecords.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecordsPaged.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/SyncListConferenceRecords.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipantsPaged.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipants.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsConferencerecordname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessionsPaged.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessions.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsParticipantname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordings.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordingsPaged.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordings.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsConferencerecordname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntries.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntriesPaged.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntries.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesTranscriptname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscripts.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscriptsPaged.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscripts.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsConferencerecordname.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservicesettings/getconferencerecord/SyncGetConferenceRecord.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetEndpoint.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/AsyncCreateSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpaceSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/AsyncEndActiveConference.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConference.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceSpacename.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/AsyncGetSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceSpacename.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceString.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/AsyncUpdateSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpaceSpaceFieldmask.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservicesettings/createspace/SyncCreateSpace.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/conferencerecordsservicestubsettings/getconferencerecord/SyncGetConferenceRecord.java create mode 100644 java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/spacesservicestubsettings/createspace/SyncCreateSpace.java diff --git a/java-meet/README.md b/java-meet/README.md index ffc442570c8a..6689fed31456 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-meet/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/google-cloud-meet-bom/pom.xml b/java-meet/google-cloud-meet-bom/pom.xml index ddabf560ea85..18123d616388 100644 --- a/java-meet/google-cloud-meet-bom/pom.xml +++ b/java-meet/google-cloud-meet-bom/pom.xml @@ -34,11 +34,21 @@ grpc-google-cloud-meet-v2beta 0.2.0-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-meet-v2 + 0.2.0-SNAPSHOT + com.google.api.grpc proto-google-cloud-meet-v2beta 0.2.0-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-meet-v2 + 0.2.0-SNAPSHOT + diff --git a/java-meet/google-cloud-meet/pom.xml b/java-meet/google-cloud-meet/pom.xml index c229434c6e9b..3e20550d2107 100644 --- a/java-meet/google-cloud-meet/pom.xml +++ b/java-meet/google-cloud-meet/pom.xml @@ -41,6 +41,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-meet-v2 + com.google.api.grpc proto-google-cloud-meet-v2beta @@ -65,6 +69,11 @@ com.google.api.grpc grpc-google-common-protos + + com.google.api.grpc + grpc-google-cloud-meet-v2 + test + com.google.api.grpc proto-google-iam-v1 diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java new file mode 100644 index 000000000000..e3dbdddce4bc --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java @@ -0,0 +1,2693 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.stub.ConferenceRecordsServiceStub; +import com.google.apps.meet.v2.stub.ConferenceRecordsServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: REST API for services dealing with conference records. + * + *

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

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

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

GetConferenceRecord

Gets a conference record by conference ID.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getConferenceRecord(GetConferenceRecordRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getConferenceRecord(ConferenceRecordName name) + *

  • getConferenceRecord(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getConferenceRecordCallable() + *

+ *

ListConferenceRecords

Lists the conference records. By default, ordered by start time and in descending order.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listConferenceRecords(ListConferenceRecordsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listConferenceRecordsPagedCallable() + *

  • listConferenceRecordsCallable() + *

+ *

GetParticipant

Gets a participant by participant ID.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getParticipant(GetParticipantRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getParticipant(ParticipantName name) + *

  • getParticipant(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getParticipantCallable() + *

+ *

ListParticipants

Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listParticipants(ListParticipantsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listParticipants(ConferenceRecordName parent) + *

  • listParticipants(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listParticipantsPagedCallable() + *

  • listParticipantsCallable() + *

+ *

GetParticipantSession

Gets a participant session by participant session ID.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getParticipantSession(GetParticipantSessionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getParticipantSession(ParticipantSessionName name) + *

  • getParticipantSession(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getParticipantSessionCallable() + *

+ *

ListParticipantSessions

Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listParticipantSessions(ListParticipantSessionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listParticipantSessions(ParticipantName parent) + *

  • listParticipantSessions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listParticipantSessionsPagedCallable() + *

  • listParticipantSessionsCallable() + *

+ *

GetRecording

Gets a recording by recording ID.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getRecording(GetRecordingRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getRecording(RecordingName name) + *

  • getRecording(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getRecordingCallable() + *

+ *

ListRecordings

Lists the recording resources from the conference record. By default, ordered by start time and in ascending order.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listRecordings(ListRecordingsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listRecordings(ConferenceRecordName parent) + *

  • listRecordings(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listRecordingsPagedCallable() + *

  • listRecordingsCallable() + *

+ *

GetTranscript

Gets a transcript by transcript ID.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getTranscript(GetTranscriptRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getTranscript(TranscriptName name) + *

  • getTranscript(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getTranscriptCallable() + *

+ *

ListTranscripts

Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listTranscripts(ListTranscriptsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listTranscripts(ConferenceRecordName parent) + *

  • listTranscripts(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listTranscriptsPagedCallable() + *

  • listTranscriptsCallable() + *

+ *

GetTranscriptEntry

Gets a `TranscriptEntry` resource by entry ID. + *

Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getTranscriptEntry(GetTranscriptEntryRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getTranscriptEntry(TranscriptEntryName name) + *

  • getTranscriptEntry(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getTranscriptEntryCallable() + *

+ *

ListTranscriptEntries

Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. + *

Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listTranscriptEntries(ListTranscriptEntriesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listTranscriptEntries(TranscriptName parent) + *

  • listTranscriptEntries(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listTranscriptEntriesPagedCallable() + *

  • listTranscriptEntriesCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ConferenceRecordsServiceClient implements BackgroundResource { + private final ConferenceRecordsServiceSettings settings; + private final ConferenceRecordsServiceStub stub; + + /** Constructs an instance of ConferenceRecordsServiceClient with default settings. */ + public static final ConferenceRecordsServiceClient create() throws IOException { + return create(ConferenceRecordsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConferenceRecordsServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final ConferenceRecordsServiceClient create( + ConferenceRecordsServiceSettings settings) throws IOException { + return new ConferenceRecordsServiceClient(settings); + } + + /** + * Constructs an instance of ConferenceRecordsServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(ConferenceRecordsServiceSettings). + */ + public static final ConferenceRecordsServiceClient create(ConferenceRecordsServiceStub stub) { + return new ConferenceRecordsServiceClient(stub); + } + + /** + * Constructs an instance of ConferenceRecordsServiceClient, 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 ConferenceRecordsServiceClient(ConferenceRecordsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ConferenceRecordsServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ConferenceRecordsServiceClient(ConferenceRecordsServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ConferenceRecordsServiceSettings getSettings() { + return settings; + } + + public ConferenceRecordsServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a conference record by conference ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]");
+   *   ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the conference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConferenceRecord getConferenceRecord(ConferenceRecordName name) { + GetConferenceRecordRequest request = + GetConferenceRecordRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getConferenceRecord(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a conference record by conference ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String name = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString();
+   *   ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the conference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConferenceRecord getConferenceRecord(String name) { + GetConferenceRecordRequest request = + GetConferenceRecordRequest.newBuilder().setName(name).build(); + return getConferenceRecord(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a conference record by conference ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetConferenceRecordRequest request =
+   *       GetConferenceRecordRequest.newBuilder()
+   *           .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .build();
+   *   ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConferenceRecord getConferenceRecord(GetConferenceRecordRequest request) { + return getConferenceRecordCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a conference record by conference ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetConferenceRecordRequest request =
+   *       GetConferenceRecordRequest.newBuilder()
+   *           .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.getConferenceRecordCallable().futureCall(request);
+   *   // Do something.
+   *   ConferenceRecord response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getConferenceRecordCallable() { + return stub.getConferenceRecordCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the conference records. By default, ordered by start time and in descending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListConferenceRecordsRequest request =
+   *       ListConferenceRecordsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (ConferenceRecord element :
+   *       conferenceRecordsServiceClient.listConferenceRecords(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConferenceRecordsPagedResponse listConferenceRecords( + ListConferenceRecordsRequest request) { + return listConferenceRecordsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the conference records. By default, ordered by start time and in descending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListConferenceRecordsRequest request =
+   *       ListConferenceRecordsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.listConferenceRecordsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ConferenceRecord element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConferenceRecordsPagedCallable() { + return stub.listConferenceRecordsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the conference records. By default, ordered by start time and in descending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListConferenceRecordsRequest request =
+   *       ListConferenceRecordsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListConferenceRecordsResponse response =
+   *         conferenceRecordsServiceClient.listConferenceRecordsCallable().call(request);
+   *     for (ConferenceRecord element : response.getConferenceRecordsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConferenceRecordsCallable() { + return stub.listConferenceRecordsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant by participant ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]");
+   *   Participant response = conferenceRecordsServiceClient.getParticipant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Participant getParticipant(ParticipantName name) { + GetParticipantRequest request = + GetParticipantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getParticipant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant by participant ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString();
+   *   Participant response = conferenceRecordsServiceClient.getParticipant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Participant getParticipant(String name) { + GetParticipantRequest request = GetParticipantRequest.newBuilder().setName(name).build(); + return getParticipant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant by participant ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetParticipantRequest request =
+   *       GetParticipantRequest.newBuilder()
+   *           .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
+   *           .build();
+   *   Participant response = conferenceRecordsServiceClient.getParticipant(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Participant getParticipant(GetParticipantRequest request) { + return getParticipantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant by participant ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetParticipantRequest request =
+   *       GetParticipantRequest.newBuilder()
+   *           .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.getParticipantCallable().futureCall(request);
+   *   // Do something.
+   *   Participant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getParticipantCallable() { + return stub.getParticipantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]");
+   *   for (Participant element :
+   *       conferenceRecordsServiceClient.listParticipants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantsPagedResponse listParticipants(ConferenceRecordName parent) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listParticipants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString();
+   *   for (Participant element :
+   *       conferenceRecordsServiceClient.listParticipants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantsPagedResponse listParticipants(String parent) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder().setParent(parent).build(); + return listParticipants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListParticipantsRequest request =
+   *       ListParticipantsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Participant element :
+   *       conferenceRecordsServiceClient.listParticipants(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequest request) { + return listParticipantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListParticipantsRequest request =
+   *       ListParticipantsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.listParticipantsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Participant element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listParticipantsPagedCallable() { + return stub.listParticipantsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListParticipantsRequest request =
+   *       ListParticipantsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListParticipantsResponse response =
+   *         conferenceRecordsServiceClient.listParticipantsCallable().call(request);
+   *     for (Participant element : response.getParticipantsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listParticipantsCallable() { + return stub.listParticipantsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant session by participant session ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ParticipantSessionName name =
+   *       ParticipantSessionName.of(
+   *           "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]");
+   *   ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParticipantSession getParticipantSession(ParticipantSessionName name) { + GetParticipantSessionRequest request = + GetParticipantSessionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getParticipantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant session by participant session ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String name =
+   *       ParticipantSessionName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]")
+   *           .toString();
+   *   ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the participant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParticipantSession getParticipantSession(String name) { + GetParticipantSessionRequest request = + GetParticipantSessionRequest.newBuilder().setName(name).build(); + return getParticipantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant session by participant session ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetParticipantSessionRequest request =
+   *       GetParticipantSessionRequest.newBuilder()
+   *           .setName(
+   *               ParticipantSessionName.of(
+   *                       "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParticipantSession getParticipantSession(GetParticipantSessionRequest request) { + return getParticipantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a participant session by participant session ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetParticipantSessionRequest request =
+   *       GetParticipantSessionRequest.newBuilder()
+   *           .setName(
+   *               ParticipantSessionName.of(
+   *                       "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.getParticipantSessionCallable().futureCall(request);
+   *   // Do something.
+   *   ParticipantSession response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getParticipantSessionCallable() { + return stub.getParticipantSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]");
+   *   for (ParticipantSession element :
+   *       conferenceRecordsServiceClient.listParticipantSessions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/participants/{participant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantSessionsPagedResponse listParticipantSessions( + ParticipantName parent) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listParticipantSessions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString();
+   *   for (ParticipantSession element :
+   *       conferenceRecordsServiceClient.listParticipantSessions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/participants/{participant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantSessionsPagedResponse listParticipantSessions(String parent) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder().setParent(parent).build(); + return listParticipantSessions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListParticipantSessionsRequest request =
+   *       ListParticipantSessionsRequest.newBuilder()
+   *           .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (ParticipantSession element :
+   *       conferenceRecordsServiceClient.listParticipantSessions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListParticipantSessionsPagedResponse listParticipantSessions( + ListParticipantSessionsRequest request) { + return listParticipantSessionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListParticipantSessionsRequest request =
+   *       ListParticipantSessionsRequest.newBuilder()
+   *           .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.listParticipantSessionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ParticipantSession element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listParticipantSessionsPagedCallable() { + return stub.listParticipantSessionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to + * `'participantsessions/*, next_page_token'`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListParticipantSessionsRequest request =
+   *       ListParticipantSessionsRequest.newBuilder()
+   *           .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListParticipantSessionsResponse response =
+   *         conferenceRecordsServiceClient.listParticipantSessionsCallable().call(request);
+   *     for (ParticipantSession element : response.getParticipantSessionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listParticipantSessionsCallable() { + return stub.listParticipantSessionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a recording by recording ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]");
+   *   Recording response = conferenceRecordsServiceClient.getRecording(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the recording. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Recording getRecording(RecordingName name) { + GetRecordingRequest request = + GetRecordingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRecording(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a recording by recording ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString();
+   *   Recording response = conferenceRecordsServiceClient.getRecording(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the recording. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Recording getRecording(String name) { + GetRecordingRequest request = GetRecordingRequest.newBuilder().setName(name).build(); + return getRecording(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a recording by recording ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetRecordingRequest request =
+   *       GetRecordingRequest.newBuilder()
+   *           .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString())
+   *           .build();
+   *   Recording response = conferenceRecordsServiceClient.getRecording(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Recording getRecording(GetRecordingRequest request) { + return getRecordingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a recording by recording ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetRecordingRequest request =
+   *       GetRecordingRequest.newBuilder()
+   *           .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.getRecordingCallable().futureCall(request);
+   *   // Do something.
+   *   Recording response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getRecordingCallable() { + return stub.getRecordingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]");
+   *   for (Recording element : conferenceRecordsServiceClient.listRecordings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRecordingsPagedResponse listRecordings(ConferenceRecordName parent) { + ListRecordingsRequest request = + ListRecordingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRecordings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString();
+   *   for (Recording element : conferenceRecordsServiceClient.listRecordings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRecordingsPagedResponse listRecordings(String parent) { + ListRecordingsRequest request = ListRecordingsRequest.newBuilder().setParent(parent).build(); + return listRecordings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListRecordingsRequest request =
+   *       ListRecordingsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Recording element :
+   *       conferenceRecordsServiceClient.listRecordings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest request) { + return listRecordingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListRecordingsRequest request =
+   *       ListRecordingsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.listRecordingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Recording element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRecordingsPagedCallable() { + return stub.listRecordingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListRecordingsRequest request =
+   *       ListRecordingsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListRecordingsResponse response =
+   *         conferenceRecordsServiceClient.listRecordingsCallable().call(request);
+   *     for (Recording element : response.getRecordingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRecordingsCallable() { + return stub.listRecordingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a transcript by transcript ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]");
+   *   Transcript response = conferenceRecordsServiceClient.getTranscript(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the transcript. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Transcript getTranscript(TranscriptName name) { + GetTranscriptRequest request = + GetTranscriptRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTranscript(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a transcript by transcript ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString();
+   *   Transcript response = conferenceRecordsServiceClient.getTranscript(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the transcript. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Transcript getTranscript(String name) { + GetTranscriptRequest request = GetTranscriptRequest.newBuilder().setName(name).build(); + return getTranscript(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a transcript by transcript ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetTranscriptRequest request =
+   *       GetTranscriptRequest.newBuilder()
+   *           .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
+   *           .build();
+   *   Transcript response = conferenceRecordsServiceClient.getTranscript(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Transcript getTranscript(GetTranscriptRequest request) { + return getTranscriptCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a transcript by transcript ID. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetTranscriptRequest request =
+   *       GetTranscriptRequest.newBuilder()
+   *           .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.getTranscriptCallable().futureCall(request);
+   *   // Do something.
+   *   Transcript response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTranscriptCallable() { + return stub.getTranscriptCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]");
+   *   for (Transcript element :
+   *       conferenceRecordsServiceClient.listTranscripts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptsPagedResponse listTranscripts(ConferenceRecordName parent) { + ListTranscriptsRequest request = + ListTranscriptsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTranscripts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString();
+   *   for (Transcript element :
+   *       conferenceRecordsServiceClient.listTranscripts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: `conferenceRecords/{conference_record}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptsPagedResponse listTranscripts(String parent) { + ListTranscriptsRequest request = ListTranscriptsRequest.newBuilder().setParent(parent).build(); + return listTranscripts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListTranscriptsRequest request =
+   *       ListTranscriptsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Transcript element :
+   *       conferenceRecordsServiceClient.listTranscripts(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest request) { + return listTranscriptsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListTranscriptsRequest request =
+   *       ListTranscriptsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.listTranscriptsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Transcript element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTranscriptsPagedCallable() { + return stub.listTranscriptsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListTranscriptsRequest request =
+   *       ListTranscriptsRequest.newBuilder()
+   *           .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListTranscriptsResponse response =
+   *         conferenceRecordsServiceClient.listTranscriptsCallable().call(request);
+   *     for (Transcript element : response.getTranscriptsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTranscriptsCallable() { + return stub.listTranscriptsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a `TranscriptEntry` resource by entry ID. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   TranscriptEntryName name =
+   *       TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]");
+   *   TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the `TranscriptEntry`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranscriptEntry getTranscriptEntry(TranscriptEntryName name) { + GetTranscriptEntryRequest request = + GetTranscriptEntryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTranscriptEntry(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a `TranscriptEntry` resource by entry ID. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String name =
+   *       TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString();
+   *   TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the `TranscriptEntry`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranscriptEntry getTranscriptEntry(String name) { + GetTranscriptEntryRequest request = + GetTranscriptEntryRequest.newBuilder().setName(name).build(); + return getTranscriptEntry(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a `TranscriptEntry` resource by entry ID. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetTranscriptEntryRequest request =
+   *       GetTranscriptEntryRequest.newBuilder()
+   *           .setName(
+   *               TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]")
+   *                   .toString())
+   *           .build();
+   *   TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranscriptEntry getTranscriptEntry(GetTranscriptEntryRequest request) { + return getTranscriptEntryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a `TranscriptEntry` resource by entry ID. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   GetTranscriptEntryRequest request =
+   *       GetTranscriptEntryRequest.newBuilder()
+   *           .setName(
+   *               TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.getTranscriptEntryCallable().futureCall(request);
+   *   // Do something.
+   *   TranscriptEntry response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getTranscriptEntryCallable() { + return stub.getTranscriptEntryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]");
+   *   for (TranscriptEntry element :
+   *       conferenceRecordsServiceClient.listTranscriptEntries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/transcripts/{transcript}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptEntriesPagedResponse listTranscriptEntries(TranscriptName parent) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTranscriptEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   String parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString();
+   *   for (TranscriptEntry element :
+   *       conferenceRecordsServiceClient.listTranscriptEntries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: + * `conferenceRecords/{conference_record}/transcripts/{transcript}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptEntriesPagedResponse listTranscriptEntries(String parent) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder().setParent(parent).build(); + return listTranscriptEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListTranscriptEntriesRequest request =
+   *       ListTranscriptEntriesRequest.newBuilder()
+   *           .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (TranscriptEntry element :
+   *       conferenceRecordsServiceClient.listTranscriptEntries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTranscriptEntriesPagedResponse listTranscriptEntries( + ListTranscriptEntriesRequest request) { + return listTranscriptEntriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListTranscriptEntriesRequest request =
+   *       ListTranscriptEntriesRequest.newBuilder()
+   *           .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       conferenceRecordsServiceClient.listTranscriptEntriesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (TranscriptEntry element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTranscriptEntriesPagedCallable() { + return stub.listTranscriptEntriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. + * + *

Note: The transcript entries returned by the Google Meet API might not match the + * transcription found in the Google Docs transcript file. This can occur when the Google Docs + * transcript file is modified after generation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+   *     ConferenceRecordsServiceClient.create()) {
+   *   ListTranscriptEntriesRequest request =
+   *       ListTranscriptEntriesRequest.newBuilder()
+   *           .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListTranscriptEntriesResponse response =
+   *         conferenceRecordsServiceClient.listTranscriptEntriesCallable().call(request);
+   *     for (TranscriptEntry element : response.getTranscriptEntriesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTranscriptEntriesCallable() { + return stub.listTranscriptEntriesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListConferenceRecordsPagedResponse + extends AbstractPagedListResponse< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ConferenceRecord, + ListConferenceRecordsPage, + ListConferenceRecordsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConferenceRecordsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConferenceRecordsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConferenceRecordsPagedResponse(ListConferenceRecordsPage page) { + super(page, ListConferenceRecordsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConferenceRecordsPage + extends AbstractPage< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ConferenceRecord, + ListConferenceRecordsPage> { + + private ListConferenceRecordsPage( + PageContext + context, + ListConferenceRecordsResponse response) { + super(context, response); + } + + private static ListConferenceRecordsPage createEmptyPage() { + return new ListConferenceRecordsPage(null, null); + } + + @Override + protected ListConferenceRecordsPage createPage( + PageContext + context, + ListConferenceRecordsResponse response) { + return new ListConferenceRecordsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConferenceRecordsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ConferenceRecord, + ListConferenceRecordsPage, + ListConferenceRecordsFixedSizeCollection> { + + private ListConferenceRecordsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConferenceRecordsFixedSizeCollection createEmptyCollection() { + return new ListConferenceRecordsFixedSizeCollection(null, 0); + } + + @Override + protected ListConferenceRecordsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConferenceRecordsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListParticipantsPagedResponse + extends AbstractPagedListResponse< + ListParticipantsRequest, + ListParticipantsResponse, + Participant, + ListParticipantsPage, + ListParticipantsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListParticipantsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListParticipantsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListParticipantsPagedResponse(ListParticipantsPage page) { + super(page, ListParticipantsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListParticipantsPage + extends AbstractPage< + ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage> { + + private ListParticipantsPage( + PageContext context, + ListParticipantsResponse response) { + super(context, response); + } + + private static ListParticipantsPage createEmptyPage() { + return new ListParticipantsPage(null, null); + } + + @Override + protected ListParticipantsPage createPage( + PageContext context, + ListParticipantsResponse response) { + return new ListParticipantsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListParticipantsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListParticipantsRequest, + ListParticipantsResponse, + Participant, + ListParticipantsPage, + ListParticipantsFixedSizeCollection> { + + private ListParticipantsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListParticipantsFixedSizeCollection createEmptyCollection() { + return new ListParticipantsFixedSizeCollection(null, 0); + } + + @Override + protected ListParticipantsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListParticipantsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListParticipantSessionsPagedResponse + extends AbstractPagedListResponse< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ParticipantSession, + ListParticipantSessionsPage, + ListParticipantSessionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListParticipantSessionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListParticipantSessionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListParticipantSessionsPagedResponse(ListParticipantSessionsPage page) { + super(page, ListParticipantSessionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListParticipantSessionsPage + extends AbstractPage< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ParticipantSession, + ListParticipantSessionsPage> { + + private ListParticipantSessionsPage( + PageContext< + ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> + context, + ListParticipantSessionsResponse response) { + super(context, response); + } + + private static ListParticipantSessionsPage createEmptyPage() { + return new ListParticipantSessionsPage(null, null); + } + + @Override + protected ListParticipantSessionsPage createPage( + PageContext< + ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> + context, + ListParticipantSessionsResponse response) { + return new ListParticipantSessionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListParticipantSessionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ParticipantSession, + ListParticipantSessionsPage, + ListParticipantSessionsFixedSizeCollection> { + + private ListParticipantSessionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListParticipantSessionsFixedSizeCollection createEmptyCollection() { + return new ListParticipantSessionsFixedSizeCollection(null, 0); + } + + @Override + protected ListParticipantSessionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListParticipantSessionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListRecordingsPagedResponse + extends AbstractPagedListResponse< + ListRecordingsRequest, + ListRecordingsResponse, + Recording, + ListRecordingsPage, + ListRecordingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRecordingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRecordingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRecordingsPagedResponse(ListRecordingsPage page) { + super(page, ListRecordingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRecordingsPage + extends AbstractPage< + ListRecordingsRequest, ListRecordingsResponse, Recording, ListRecordingsPage> { + + private ListRecordingsPage( + PageContext context, + ListRecordingsResponse response) { + super(context, response); + } + + private static ListRecordingsPage createEmptyPage() { + return new ListRecordingsPage(null, null); + } + + @Override + protected ListRecordingsPage createPage( + PageContext context, + ListRecordingsResponse response) { + return new ListRecordingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRecordingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRecordingsRequest, + ListRecordingsResponse, + Recording, + ListRecordingsPage, + ListRecordingsFixedSizeCollection> { + + private ListRecordingsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRecordingsFixedSizeCollection createEmptyCollection() { + return new ListRecordingsFixedSizeCollection(null, 0); + } + + @Override + protected ListRecordingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRecordingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTranscriptsPagedResponse + extends AbstractPagedListResponse< + ListTranscriptsRequest, + ListTranscriptsResponse, + Transcript, + ListTranscriptsPage, + ListTranscriptsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTranscriptsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListTranscriptsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListTranscriptsPagedResponse(ListTranscriptsPage page) { + super(page, ListTranscriptsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTranscriptsPage + extends AbstractPage< + ListTranscriptsRequest, ListTranscriptsResponse, Transcript, ListTranscriptsPage> { + + private ListTranscriptsPage( + PageContext context, + ListTranscriptsResponse response) { + super(context, response); + } + + private static ListTranscriptsPage createEmptyPage() { + return new ListTranscriptsPage(null, null); + } + + @Override + protected ListTranscriptsPage createPage( + PageContext context, + ListTranscriptsResponse response) { + return new ListTranscriptsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTranscriptsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTranscriptsRequest, + ListTranscriptsResponse, + Transcript, + ListTranscriptsPage, + ListTranscriptsFixedSizeCollection> { + + private ListTranscriptsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTranscriptsFixedSizeCollection createEmptyCollection() { + return new ListTranscriptsFixedSizeCollection(null, 0); + } + + @Override + protected ListTranscriptsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTranscriptsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTranscriptEntriesPagedResponse + extends AbstractPagedListResponse< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + TranscriptEntry, + ListTranscriptEntriesPage, + ListTranscriptEntriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTranscriptEntriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListTranscriptEntriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListTranscriptEntriesPagedResponse(ListTranscriptEntriesPage page) { + super(page, ListTranscriptEntriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTranscriptEntriesPage + extends AbstractPage< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + TranscriptEntry, + ListTranscriptEntriesPage> { + + private ListTranscriptEntriesPage( + PageContext + context, + ListTranscriptEntriesResponse response) { + super(context, response); + } + + private static ListTranscriptEntriesPage createEmptyPage() { + return new ListTranscriptEntriesPage(null, null); + } + + @Override + protected ListTranscriptEntriesPage createPage( + PageContext + context, + ListTranscriptEntriesResponse response) { + return new ListTranscriptEntriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTranscriptEntriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + TranscriptEntry, + ListTranscriptEntriesPage, + ListTranscriptEntriesFixedSizeCollection> { + + private ListTranscriptEntriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTranscriptEntriesFixedSizeCollection createEmptyCollection() { + return new ListTranscriptEntriesFixedSizeCollection(null, 0); + } + + @Override + protected ListTranscriptEntriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTranscriptEntriesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java new file mode 100644 index 000000000000..8694cbef5de2 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java @@ -0,0 +1,372 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.apps.meet.v2.stub.ConferenceRecordsServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConferenceRecordsServiceClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConferenceRecordsServiceSettings.Builder conferenceRecordsServiceSettingsBuilder =
+ *     ConferenceRecordsServiceSettings.newBuilder();
+ * conferenceRecordsServiceSettingsBuilder
+ *     .getConferenceRecordSettings()
+ *     .setRetrySettings(
+ *         conferenceRecordsServiceSettingsBuilder
+ *             .getConferenceRecordSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConferenceRecordsServiceSettings conferenceRecordsServiceSettings =
+ *     conferenceRecordsServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ConferenceRecordsServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getConferenceRecord. */ + public UnaryCallSettings + getConferenceRecordSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).getConferenceRecordSettings(); + } + + /** Returns the object with the settings used for calls to listConferenceRecords. */ + public PagedCallSettings< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + listConferenceRecordsSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()) + .listConferenceRecordsSettings(); + } + + /** Returns the object with the settings used for calls to getParticipant. */ + public UnaryCallSettings getParticipantSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).getParticipantSettings(); + } + + /** Returns the object with the settings used for calls to listParticipants. */ + public PagedCallSettings< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + listParticipantsSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).listParticipantsSettings(); + } + + /** Returns the object with the settings used for calls to getParticipantSession. */ + public UnaryCallSettings + getParticipantSessionSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()) + .getParticipantSessionSettings(); + } + + /** Returns the object with the settings used for calls to listParticipantSessions. */ + public PagedCallSettings< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + listParticipantSessionsSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()) + .listParticipantSessionsSettings(); + } + + /** Returns the object with the settings used for calls to getRecording. */ + public UnaryCallSettings getRecordingSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).getRecordingSettings(); + } + + /** Returns the object with the settings used for calls to listRecordings. */ + public PagedCallSettings< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + listRecordingsSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).listRecordingsSettings(); + } + + /** Returns the object with the settings used for calls to getTranscript. */ + public UnaryCallSettings getTranscriptSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).getTranscriptSettings(); + } + + /** Returns the object with the settings used for calls to listTranscripts. */ + public PagedCallSettings< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + listTranscriptsSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).listTranscriptsSettings(); + } + + /** Returns the object with the settings used for calls to getTranscriptEntry. */ + public UnaryCallSettings + getTranscriptEntrySettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()).getTranscriptEntrySettings(); + } + + /** Returns the object with the settings used for calls to listTranscriptEntries. */ + public PagedCallSettings< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + listTranscriptEntriesSettings() { + return ((ConferenceRecordsServiceStubSettings) getStubSettings()) + .listTranscriptEntriesSettings(); + } + + public static final ConferenceRecordsServiceSettings create( + ConferenceRecordsServiceStubSettings stub) throws IOException { + return new ConferenceRecordsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ConferenceRecordsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ConferenceRecordsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ConferenceRecordsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ConferenceRecordsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ConferenceRecordsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConferenceRecordsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ConferenceRecordsServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConferenceRecordsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConferenceRecordsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ConferenceRecordsServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ConferenceRecordsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ConferenceRecordsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ConferenceRecordsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ConferenceRecordsServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ConferenceRecordsServiceStubSettings.newHttpJsonBuilder()); + } + + public ConferenceRecordsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ConferenceRecordsServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getConferenceRecord. */ + public UnaryCallSettings.Builder + getConferenceRecordSettings() { + return getStubSettingsBuilder().getConferenceRecordSettings(); + } + + /** Returns the builder for the settings used for calls to listConferenceRecords. */ + public PagedCallSettings.Builder< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + listConferenceRecordsSettings() { + return getStubSettingsBuilder().listConferenceRecordsSettings(); + } + + /** Returns the builder for the settings used for calls to getParticipant. */ + public UnaryCallSettings.Builder getParticipantSettings() { + return getStubSettingsBuilder().getParticipantSettings(); + } + + /** Returns the builder for the settings used for calls to listParticipants. */ + public PagedCallSettings.Builder< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + listParticipantsSettings() { + return getStubSettingsBuilder().listParticipantsSettings(); + } + + /** Returns the builder for the settings used for calls to getParticipantSession. */ + public UnaryCallSettings.Builder + getParticipantSessionSettings() { + return getStubSettingsBuilder().getParticipantSessionSettings(); + } + + /** Returns the builder for the settings used for calls to listParticipantSessions. */ + public PagedCallSettings.Builder< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + listParticipantSessionsSettings() { + return getStubSettingsBuilder().listParticipantSessionsSettings(); + } + + /** Returns the builder for the settings used for calls to getRecording. */ + public UnaryCallSettings.Builder getRecordingSettings() { + return getStubSettingsBuilder().getRecordingSettings(); + } + + /** Returns the builder for the settings used for calls to listRecordings. */ + public PagedCallSettings.Builder< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + listRecordingsSettings() { + return getStubSettingsBuilder().listRecordingsSettings(); + } + + /** Returns the builder for the settings used for calls to getTranscript. */ + public UnaryCallSettings.Builder getTranscriptSettings() { + return getStubSettingsBuilder().getTranscriptSettings(); + } + + /** Returns the builder for the settings used for calls to listTranscripts. */ + public PagedCallSettings.Builder< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + listTranscriptsSettings() { + return getStubSettingsBuilder().listTranscriptsSettings(); + } + + /** Returns the builder for the settings used for calls to getTranscriptEntry. */ + public UnaryCallSettings.Builder + getTranscriptEntrySettings() { + return getStubSettingsBuilder().getTranscriptEntrySettings(); + } + + /** Returns the builder for the settings used for calls to listTranscriptEntries. */ + public PagedCallSettings.Builder< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + listTranscriptEntriesSettings() { + return getStubSettingsBuilder().listTranscriptEntriesSettings(); + } + + @Override + public ConferenceRecordsServiceSettings build() throws IOException { + return new ConferenceRecordsServiceSettings(this); + } + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java new file mode 100644 index 000000000000..fee3f9098e92 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java @@ -0,0 +1,648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.stub.SpacesServiceStub; +import com.google.apps.meet.v2.stub.SpacesServiceStubSettings; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: REST API for services dealing with spaces. + * + *

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

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

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

CreateSpace

Creates a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createSpace(CreateSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createSpace(Space space) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createSpaceCallable() + *

+ *

GetSpace

Gets a space by `space_id` or `meeting_code`.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSpace(GetSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSpace(SpaceName name) + *

  • getSpace(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSpaceCallable() + *

+ *

UpdateSpace

Updates a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSpace(UpdateSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSpace(Space space, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateSpaceCallable() + *

+ *

EndActiveConference

Ends an active conference (if there's one).

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • endActiveConference(EndActiveConferenceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • endActiveConference(SpaceName name) + *

  • endActiveConference(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • endActiveConferenceCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class SpacesServiceClient implements BackgroundResource { + private final SpacesServiceSettings settings; + private final SpacesServiceStub stub; + + /** Constructs an instance of SpacesServiceClient with default settings. */ + public static final SpacesServiceClient create() throws IOException { + return create(SpacesServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SpacesServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SpacesServiceClient create(SpacesServiceSettings settings) + throws IOException { + return new SpacesServiceClient(settings); + } + + /** + * Constructs an instance of SpacesServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(SpacesServiceSettings). + */ + public static final SpacesServiceClient create(SpacesServiceStub stub) { + return new SpacesServiceClient(stub); + } + + /** + * Constructs an instance of SpacesServiceClient, 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 SpacesServiceClient(SpacesServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SpacesServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected SpacesServiceClient(SpacesServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SpacesServiceSettings getSettings() { + return settings; + } + + public SpacesServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   Space space = Space.newBuilder().build();
+   *   Space response = spacesServiceClient.createSpace(space);
+   * }
+   * }
+ * + * @param space Space to be created. As of May 2023, the input space can be empty. Later on the + * input space can be non-empty when space configuration is introduced. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space createSpace(Space space) { + CreateSpaceRequest request = CreateSpaceRequest.newBuilder().setSpace(space).build(); + return createSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   CreateSpaceRequest request =
+   *       CreateSpaceRequest.newBuilder().setSpace(Space.newBuilder().build()).build();
+   *   Space response = spacesServiceClient.createSpace(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space createSpace(CreateSpaceRequest request) { + return createSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   CreateSpaceRequest request =
+   *       CreateSpaceRequest.newBuilder().setSpace(Space.newBuilder().build()).build();
+   *   ApiFuture future = spacesServiceClient.createSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   Space response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createSpaceCallable() { + return stub.createSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a space by `space_id` or `meeting_code`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   SpaceName name = SpaceName.of("[SPACE]");
+   *   Space response = spacesServiceClient.getSpace(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the space. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space getSpace(SpaceName name) { + GetSpaceRequest request = + GetSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a space by `space_id` or `meeting_code`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   String name = SpaceName.of("[SPACE]").toString();
+   *   Space response = spacesServiceClient.getSpace(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the space. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space getSpace(String name) { + GetSpaceRequest request = GetSpaceRequest.newBuilder().setName(name).build(); + return getSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a space by `space_id` or `meeting_code`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   GetSpaceRequest request =
+   *       GetSpaceRequest.newBuilder().setName(SpaceName.of("[SPACE]").toString()).build();
+   *   Space response = spacesServiceClient.getSpace(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space getSpace(GetSpaceRequest request) { + return getSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a space by `space_id` or `meeting_code`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   GetSpaceRequest request =
+   *       GetSpaceRequest.newBuilder().setName(SpaceName.of("[SPACE]").toString()).build();
+   *   ApiFuture future = spacesServiceClient.getSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   Space response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSpaceCallable() { + return stub.getSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   Space space = Space.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Space response = spacesServiceClient.updateSpace(space, updateMask);
+   * }
+   * }
+ * + * @param space Required. Space to be updated. + * @param updateMask Optional. Field mask used to specify the fields to be updated in the space. + * If update_mask isn't provided, it defaults to '*' and updates all fields provided in + * the request, including deleting fields not set in the request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space updateSpace(Space space, FieldMask updateMask) { + UpdateSpaceRequest request = + UpdateSpaceRequest.newBuilder().setSpace(space).setUpdateMask(updateMask).build(); + return updateSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   UpdateSpaceRequest request =
+   *       UpdateSpaceRequest.newBuilder()
+   *           .setSpace(Space.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Space response = spacesServiceClient.updateSpace(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space updateSpace(UpdateSpaceRequest request) { + return updateSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   UpdateSpaceRequest request =
+   *       UpdateSpaceRequest.newBuilder()
+   *           .setSpace(Space.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = spacesServiceClient.updateSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   Space response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSpaceCallable() { + return stub.updateSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ends an active conference (if there's one). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   SpaceName name = SpaceName.of("[SPACE]");
+   *   spacesServiceClient.endActiveConference(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the space. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void endActiveConference(SpaceName name) { + EndActiveConferenceRequest request = + EndActiveConferenceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + endActiveConference(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ends an active conference (if there's one). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   String name = SpaceName.of("[SPACE]").toString();
+   *   spacesServiceClient.endActiveConference(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the space. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void endActiveConference(String name) { + EndActiveConferenceRequest request = + EndActiveConferenceRequest.newBuilder().setName(name).build(); + endActiveConference(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ends an active conference (if there's one). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   EndActiveConferenceRequest request =
+   *       EndActiveConferenceRequest.newBuilder()
+   *           .setName(SpaceName.of("[SPACE]").toString())
+   *           .build();
+   *   spacesServiceClient.endActiveConference(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void endActiveConference(EndActiveConferenceRequest request) { + endActiveConferenceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ends an active conference (if there's one). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   EndActiveConferenceRequest request =
+   *       EndActiveConferenceRequest.newBuilder()
+   *           .setName(SpaceName.of("[SPACE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       spacesServiceClient.endActiveConferenceCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable endActiveConferenceCallable() { + return stub.endActiveConferenceCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java new file mode 100644 index 000000000000..74f923f7d042 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java @@ -0,0 +1,236 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.apps.meet.v2.stub.SpacesServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SpacesServiceClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpacesServiceSettings.Builder spacesServiceSettingsBuilder = SpacesServiceSettings.newBuilder();
+ * spacesServiceSettingsBuilder
+ *     .createSpaceSettings()
+ *     .setRetrySettings(
+ *         spacesServiceSettingsBuilder
+ *             .createSpaceSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SpacesServiceSettings spacesServiceSettings = spacesServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class SpacesServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createSpace. */ + public UnaryCallSettings createSpaceSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).createSpaceSettings(); + } + + /** Returns the object with the settings used for calls to getSpace. */ + public UnaryCallSettings getSpaceSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).getSpaceSettings(); + } + + /** Returns the object with the settings used for calls to updateSpace. */ + public UnaryCallSettings updateSpaceSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).updateSpaceSettings(); + } + + /** Returns the object with the settings used for calls to endActiveConference. */ + public UnaryCallSettings endActiveConferenceSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).endActiveConferenceSettings(); + } + + public static final SpacesServiceSettings create(SpacesServiceStubSettings stub) + throws IOException { + return new SpacesServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SpacesServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SpacesServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SpacesServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SpacesServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SpacesServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SpacesServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SpacesServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SpacesServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SpacesServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SpacesServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SpacesServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SpacesServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SpacesServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SpacesServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SpacesServiceStubSettings.newHttpJsonBuilder()); + } + + public SpacesServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SpacesServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createSpace. */ + public UnaryCallSettings.Builder createSpaceSettings() { + return getStubSettingsBuilder().createSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to getSpace. */ + public UnaryCallSettings.Builder getSpaceSettings() { + return getStubSettingsBuilder().getSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to updateSpace. */ + public UnaryCallSettings.Builder updateSpaceSettings() { + return getStubSettingsBuilder().updateSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to endActiveConference. */ + public UnaryCallSettings.Builder + endActiveConferenceSettings() { + return getStubSettingsBuilder().endActiveConferenceSettings(); + } + + @Override + public SpacesServiceSettings build() throws IOException { + return new SpacesServiceSettings(this); + } + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/gapic_metadata.json b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/gapic_metadata.json new file mode 100644 index 000000000000..c0c4c8c8c637 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/gapic_metadata.json @@ -0,0 +1,75 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.apps.meet.v2", + "libraryPackage": "com.google.apps.meet.v2", + "services": { + "SpacesService": { + "clients": { + "grpc": { + "libraryClient": "SpacesServiceClient", + "rpcs": { + "CreateSpace": { + "methods": ["createSpace", "createSpace", "createSpaceCallable"] + }, + "EndActiveConference": { + "methods": ["endActiveConference", "endActiveConference", "endActiveConference", "endActiveConferenceCallable"] + }, + "GetSpace": { + "methods": ["getSpace", "getSpace", "getSpace", "getSpaceCallable"] + }, + "UpdateSpace": { + "methods": ["updateSpace", "updateSpace", "updateSpaceCallable"] + } + } + } + } + }, + "ConferenceRecordsService": { + "clients": { + "grpc": { + "libraryClient": "ConferenceRecordsServiceClient", + "rpcs": { + "GetConferenceRecord": { + "methods": ["getConferenceRecord", "getConferenceRecord", "getConferenceRecord", "getConferenceRecordCallable"] + }, + "GetParticipant": { + "methods": ["getParticipant", "getParticipant", "getParticipant", "getParticipantCallable"] + }, + "GetParticipantSession": { + "methods": ["getParticipantSession", "getParticipantSession", "getParticipantSession", "getParticipantSessionCallable"] + }, + "GetRecording": { + "methods": ["getRecording", "getRecording", "getRecording", "getRecordingCallable"] + }, + "GetTranscript": { + "methods": ["getTranscript", "getTranscript", "getTranscript", "getTranscriptCallable"] + }, + "GetTranscriptEntry": { + "methods": ["getTranscriptEntry", "getTranscriptEntry", "getTranscriptEntry", "getTranscriptEntryCallable"] + }, + "ListConferenceRecords": { + "methods": ["listConferenceRecords", "listConferenceRecordsPagedCallable", "listConferenceRecordsCallable"] + }, + "ListParticipantSessions": { + "methods": ["listParticipantSessions", "listParticipantSessions", "listParticipantSessions", "listParticipantSessionsPagedCallable", "listParticipantSessionsCallable"] + }, + "ListParticipants": { + "methods": ["listParticipants", "listParticipants", "listParticipants", "listParticipantsPagedCallable", "listParticipantsCallable"] + }, + "ListRecordings": { + "methods": ["listRecordings", "listRecordings", "listRecordings", "listRecordingsPagedCallable", "listRecordingsCallable"] + }, + "ListTranscriptEntries": { + "methods": ["listTranscriptEntries", "listTranscriptEntries", "listTranscriptEntries", "listTranscriptEntriesPagedCallable", "listTranscriptEntriesCallable"] + }, + "ListTranscripts": { + "methods": ["listTranscripts", "listTranscripts", "listTranscripts", "listTranscriptsPagedCallable", "listTranscriptsCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/package-info.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/package-info.java new file mode 100644 index 000000000000..0ae87eed8e88 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/package-info.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Google Meet API + * + *

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

======================= SpacesServiceClient ======================= + * + *

Service Description: REST API for services dealing with spaces. + * + *

Sample for SpacesServiceClient: + * + *

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

======================= ConferenceRecordsServiceClient ======================= + * + *

Service Description: REST API for services dealing with conference records. + * + *

Sample for ConferenceRecordsServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
+ *     ConferenceRecordsServiceClient.create()) {
+ *   ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]");
+ *   ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.apps.meet.v2; + +import javax.annotation.Generated; diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStub.java new file mode 100644 index 000000000000..03ca511cd300 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStub.java @@ -0,0 +1,151 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.GetConferenceRecordRequest; +import com.google.apps.meet.v2.GetParticipantRequest; +import com.google.apps.meet.v2.GetParticipantSessionRequest; +import com.google.apps.meet.v2.GetRecordingRequest; +import com.google.apps.meet.v2.GetTranscriptEntryRequest; +import com.google.apps.meet.v2.GetTranscriptRequest; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; +import com.google.apps.meet.v2.ListConferenceRecordsResponse; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ListParticipantSessionsResponse; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.ListParticipantsResponse; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.ListRecordingsResponse; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.ListTranscriptEntriesResponse; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.ListTranscriptsResponse; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptEntry; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ConferenceRecordsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ConferenceRecordsServiceStub implements BackgroundResource { + + public UnaryCallable getConferenceRecordCallable() { + throw new UnsupportedOperationException("Not implemented: getConferenceRecordCallable()"); + } + + public UnaryCallable + listConferenceRecordsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listConferenceRecordsPagedCallable()"); + } + + public UnaryCallable + listConferenceRecordsCallable() { + throw new UnsupportedOperationException("Not implemented: listConferenceRecordsCallable()"); + } + + public UnaryCallable getParticipantCallable() { + throw new UnsupportedOperationException("Not implemented: getParticipantCallable()"); + } + + public UnaryCallable + listParticipantsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listParticipantsPagedCallable()"); + } + + public UnaryCallable + listParticipantsCallable() { + throw new UnsupportedOperationException("Not implemented: listParticipantsCallable()"); + } + + public UnaryCallable + getParticipantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: getParticipantSessionCallable()"); + } + + public UnaryCallable + listParticipantSessionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listParticipantSessionsPagedCallable()"); + } + + public UnaryCallable + listParticipantSessionsCallable() { + throw new UnsupportedOperationException("Not implemented: listParticipantSessionsCallable()"); + } + + public UnaryCallable getRecordingCallable() { + throw new UnsupportedOperationException("Not implemented: getRecordingCallable()"); + } + + public UnaryCallable + listRecordingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRecordingsPagedCallable()"); + } + + public UnaryCallable listRecordingsCallable() { + throw new UnsupportedOperationException("Not implemented: listRecordingsCallable()"); + } + + public UnaryCallable getTranscriptCallable() { + throw new UnsupportedOperationException("Not implemented: getTranscriptCallable()"); + } + + public UnaryCallable + listTranscriptsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTranscriptsPagedCallable()"); + } + + public UnaryCallable listTranscriptsCallable() { + throw new UnsupportedOperationException("Not implemented: listTranscriptsCallable()"); + } + + public UnaryCallable getTranscriptEntryCallable() { + throw new UnsupportedOperationException("Not implemented: getTranscriptEntryCallable()"); + } + + public UnaryCallable + listTranscriptEntriesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTranscriptEntriesPagedCallable()"); + } + + public UnaryCallable + listTranscriptEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: listTranscriptEntriesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java new file mode 100644 index 000000000000..6e8446a488e4 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java @@ -0,0 +1,1089 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.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; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.GetConferenceRecordRequest; +import com.google.apps.meet.v2.GetParticipantRequest; +import com.google.apps.meet.v2.GetParticipantSessionRequest; +import com.google.apps.meet.v2.GetRecordingRequest; +import com.google.apps.meet.v2.GetTranscriptEntryRequest; +import com.google.apps.meet.v2.GetTranscriptRequest; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; +import com.google.apps.meet.v2.ListConferenceRecordsResponse; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ListParticipantSessionsResponse; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.ListParticipantsResponse; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.ListRecordingsResponse; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.ListTranscriptEntriesResponse; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.ListTranscriptsResponse; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConferenceRecordsServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConferenceRecordsServiceStubSettings.Builder conferenceRecordsServiceSettingsBuilder =
+ *     ConferenceRecordsServiceStubSettings.newBuilder();
+ * conferenceRecordsServiceSettingsBuilder
+ *     .getConferenceRecordSettings()
+ *     .setRetrySettings(
+ *         conferenceRecordsServiceSettingsBuilder
+ *             .getConferenceRecordSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConferenceRecordsServiceStubSettings conferenceRecordsServiceSettings =
+ *     conferenceRecordsServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ConferenceRecordsServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings + getConferenceRecordSettings; + private final PagedCallSettings< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + listConferenceRecordsSettings; + private final UnaryCallSettings getParticipantSettings; + private final PagedCallSettings< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + listParticipantsSettings; + private final UnaryCallSettings + getParticipantSessionSettings; + private final PagedCallSettings< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + listParticipantSessionsSettings; + private final UnaryCallSettings getRecordingSettings; + private final PagedCallSettings< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + listRecordingsSettings; + private final UnaryCallSettings getTranscriptSettings; + private final PagedCallSettings< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + listTranscriptsSettings; + private final UnaryCallSettings + getTranscriptEntrySettings; + private final PagedCallSettings< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + listTranscriptEntriesSettings; + + private static final PagedListDescriptor< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> + LIST_CONFERENCE_RECORDS_PAGE_STR_DESC = + new PagedListDescriptor< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConferenceRecordsRequest injectToken( + ListConferenceRecordsRequest payload, String token) { + return ListConferenceRecordsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConferenceRecordsRequest injectPageSize( + ListConferenceRecordsRequest payload, int pageSize) { + return ListConferenceRecordsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListConferenceRecordsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConferenceRecordsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListConferenceRecordsResponse payload) { + return payload.getConferenceRecordsList() == null + ? ImmutableList.of() + : payload.getConferenceRecordsList(); + } + }; + + private static final PagedListDescriptor< + ListParticipantsRequest, ListParticipantsResponse, Participant> + LIST_PARTICIPANTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListParticipantsRequest, ListParticipantsResponse, Participant>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListParticipantsRequest injectToken( + ListParticipantsRequest payload, String token) { + return ListParticipantsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListParticipantsRequest injectPageSize( + ListParticipantsRequest payload, int pageSize) { + return ListParticipantsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListParticipantsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListParticipantsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListParticipantsResponse payload) { + return payload.getParticipantsList() == null + ? ImmutableList.of() + : payload.getParticipantsList(); + } + }; + + private static final PagedListDescriptor< + ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> + LIST_PARTICIPANT_SESSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ParticipantSession>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListParticipantSessionsRequest injectToken( + ListParticipantSessionsRequest payload, String token) { + return ListParticipantSessionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListParticipantSessionsRequest injectPageSize( + ListParticipantSessionsRequest payload, int pageSize) { + return ListParticipantSessionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListParticipantSessionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListParticipantSessionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListParticipantSessionsResponse payload) { + return payload.getParticipantSessionsList() == null + ? ImmutableList.of() + : payload.getParticipantSessionsList(); + } + }; + + private static final PagedListDescriptor + LIST_RECORDINGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRecordingsRequest injectToken(ListRecordingsRequest payload, String token) { + return ListRecordingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRecordingsRequest injectPageSize( + ListRecordingsRequest payload, int pageSize) { + return ListRecordingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRecordingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRecordingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRecordingsResponse payload) { + return payload.getRecordingsList() == null + ? ImmutableList.of() + : payload.getRecordingsList(); + } + }; + + private static final PagedListDescriptor< + ListTranscriptsRequest, ListTranscriptsResponse, Transcript> + LIST_TRANSCRIPTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTranscriptsRequest injectToken( + ListTranscriptsRequest payload, String token) { + return ListTranscriptsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTranscriptsRequest injectPageSize( + ListTranscriptsRequest payload, int pageSize) { + return ListTranscriptsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTranscriptsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTranscriptsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTranscriptsResponse payload) { + return payload.getTranscriptsList() == null + ? ImmutableList.of() + : payload.getTranscriptsList(); + } + }; + + private static final PagedListDescriptor< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> + LIST_TRANSCRIPT_ENTRIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTranscriptEntriesRequest injectToken( + ListTranscriptEntriesRequest payload, String token) { + return ListTranscriptEntriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTranscriptEntriesRequest injectPageSize( + ListTranscriptEntriesRequest payload, int pageSize) { + return ListTranscriptEntriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTranscriptEntriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTranscriptEntriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListTranscriptEntriesResponse payload) { + return payload.getTranscriptEntriesList() == null + ? ImmutableList.of() + : payload.getTranscriptEntriesList(); + } + }; + + private static final PagedListResponseFactory< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + LIST_CONFERENCE_RECORDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListConferenceRecordsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> + pageContext = + PageContext.create( + callable, LIST_CONFERENCE_RECORDS_PAGE_STR_DESC, request, context); + return ListConferenceRecordsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + LIST_PARTICIPANTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListParticipantsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PARTICIPANTS_PAGE_STR_DESC, request, context); + return ListParticipantsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + LIST_PARTICIPANT_SESSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListParticipantSessionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ParticipantSession> + pageContext = + PageContext.create( + callable, LIST_PARTICIPANT_SESSIONS_PAGE_STR_DESC, request, context); + return ListParticipantSessionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + LIST_RECORDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRecordingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_RECORDINGS_PAGE_STR_DESC, request, context); + return ListRecordingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + LIST_TRANSCRIPTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTranscriptsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TRANSCRIPTS_PAGE_STR_DESC, request, context); + return ListTranscriptsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + LIST_TRANSCRIPT_ENTRIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTranscriptEntriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> + pageContext = + PageContext.create( + callable, LIST_TRANSCRIPT_ENTRIES_PAGE_STR_DESC, request, context); + return ListTranscriptEntriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getConferenceRecord. */ + public UnaryCallSettings + getConferenceRecordSettings() { + return getConferenceRecordSettings; + } + + /** Returns the object with the settings used for calls to listConferenceRecords. */ + public PagedCallSettings< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + listConferenceRecordsSettings() { + return listConferenceRecordsSettings; + } + + /** Returns the object with the settings used for calls to getParticipant. */ + public UnaryCallSettings getParticipantSettings() { + return getParticipantSettings; + } + + /** Returns the object with the settings used for calls to listParticipants. */ + public PagedCallSettings< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + listParticipantsSettings() { + return listParticipantsSettings; + } + + /** Returns the object with the settings used for calls to getParticipantSession. */ + public UnaryCallSettings + getParticipantSessionSettings() { + return getParticipantSessionSettings; + } + + /** Returns the object with the settings used for calls to listParticipantSessions. */ + public PagedCallSettings< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + listParticipantSessionsSettings() { + return listParticipantSessionsSettings; + } + + /** Returns the object with the settings used for calls to getRecording. */ + public UnaryCallSettings getRecordingSettings() { + return getRecordingSettings; + } + + /** Returns the object with the settings used for calls to listRecordings. */ + public PagedCallSettings< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + listRecordingsSettings() { + return listRecordingsSettings; + } + + /** Returns the object with the settings used for calls to getTranscript. */ + public UnaryCallSettings getTranscriptSettings() { + return getTranscriptSettings; + } + + /** Returns the object with the settings used for calls to listTranscripts. */ + public PagedCallSettings< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + listTranscriptsSettings() { + return listTranscriptsSettings; + } + + /** Returns the object with the settings used for calls to getTranscriptEntry. */ + public UnaryCallSettings + getTranscriptEntrySettings() { + return getTranscriptEntrySettings; + } + + /** Returns the object with the settings used for calls to listTranscriptEntries. */ + public PagedCallSettings< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + listTranscriptEntriesSettings() { + return listTranscriptEntriesSettings; + } + + public ConferenceRecordsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcConferenceRecordsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConferenceRecordsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "meet"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "meet.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "meet.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConferenceRecordsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConferenceRecordsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConferenceRecordsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConferenceRecordsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getConferenceRecordSettings = settingsBuilder.getConferenceRecordSettings().build(); + listConferenceRecordsSettings = settingsBuilder.listConferenceRecordsSettings().build(); + getParticipantSettings = settingsBuilder.getParticipantSettings().build(); + listParticipantsSettings = settingsBuilder.listParticipantsSettings().build(); + getParticipantSessionSettings = settingsBuilder.getParticipantSessionSettings().build(); + listParticipantSessionsSettings = settingsBuilder.listParticipantSessionsSettings().build(); + getRecordingSettings = settingsBuilder.getRecordingSettings().build(); + listRecordingsSettings = settingsBuilder.listRecordingsSettings().build(); + getTranscriptSettings = settingsBuilder.getTranscriptSettings().build(); + listTranscriptsSettings = settingsBuilder.listTranscriptsSettings().build(); + getTranscriptEntrySettings = settingsBuilder.getTranscriptEntrySettings().build(); + listTranscriptEntriesSettings = settingsBuilder.listTranscriptEntriesSettings().build(); + } + + /** Builder for ConferenceRecordsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getConferenceRecordSettings; + private final PagedCallSettings.Builder< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + listConferenceRecordsSettings; + private final UnaryCallSettings.Builder + getParticipantSettings; + private final PagedCallSettings.Builder< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + listParticipantsSettings; + private final UnaryCallSettings.Builder + getParticipantSessionSettings; + private final PagedCallSettings.Builder< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + listParticipantSessionsSettings; + private final UnaryCallSettings.Builder getRecordingSettings; + private final PagedCallSettings.Builder< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + listRecordingsSettings; + private final UnaryCallSettings.Builder getTranscriptSettings; + private final PagedCallSettings.Builder< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + listTranscriptsSettings; + private final UnaryCallSettings.Builder + getTranscriptEntrySettings; + private final PagedCallSettings.Builder< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + listTranscriptEntriesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getConferenceRecordSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listConferenceRecordsSettings = + PagedCallSettings.newBuilder(LIST_CONFERENCE_RECORDS_PAGE_STR_FACT); + getParticipantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listParticipantsSettings = PagedCallSettings.newBuilder(LIST_PARTICIPANTS_PAGE_STR_FACT); + getParticipantSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listParticipantSessionsSettings = + PagedCallSettings.newBuilder(LIST_PARTICIPANT_SESSIONS_PAGE_STR_FACT); + getRecordingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRecordingsSettings = PagedCallSettings.newBuilder(LIST_RECORDINGS_PAGE_STR_FACT); + getTranscriptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTranscriptsSettings = PagedCallSettings.newBuilder(LIST_TRANSCRIPTS_PAGE_STR_FACT); + getTranscriptEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTranscriptEntriesSettings = + PagedCallSettings.newBuilder(LIST_TRANSCRIPT_ENTRIES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getConferenceRecordSettings, + listConferenceRecordsSettings, + getParticipantSettings, + listParticipantsSettings, + getParticipantSessionSettings, + listParticipantSessionsSettings, + getRecordingSettings, + listRecordingsSettings, + getTranscriptSettings, + listTranscriptsSettings, + getTranscriptEntrySettings, + listTranscriptEntriesSettings); + initDefaults(this); + } + + protected Builder(ConferenceRecordsServiceStubSettings settings) { + super(settings); + + getConferenceRecordSettings = settings.getConferenceRecordSettings.toBuilder(); + listConferenceRecordsSettings = settings.listConferenceRecordsSettings.toBuilder(); + getParticipantSettings = settings.getParticipantSettings.toBuilder(); + listParticipantsSettings = settings.listParticipantsSettings.toBuilder(); + getParticipantSessionSettings = settings.getParticipantSessionSettings.toBuilder(); + listParticipantSessionsSettings = settings.listParticipantSessionsSettings.toBuilder(); + getRecordingSettings = settings.getRecordingSettings.toBuilder(); + listRecordingsSettings = settings.listRecordingsSettings.toBuilder(); + getTranscriptSettings = settings.getTranscriptSettings.toBuilder(); + listTranscriptsSettings = settings.listTranscriptsSettings.toBuilder(); + getTranscriptEntrySettings = settings.getTranscriptEntrySettings.toBuilder(); + listTranscriptEntriesSettings = settings.listTranscriptEntriesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getConferenceRecordSettings, + listConferenceRecordsSettings, + getParticipantSettings, + listParticipantsSettings, + getParticipantSessionSettings, + listParticipantSessionsSettings, + getRecordingSettings, + listRecordingsSettings, + getTranscriptSettings, + listTranscriptsSettings, + getTranscriptEntrySettings, + listTranscriptEntriesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getConferenceRecordSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listConferenceRecordsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getParticipantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listParticipantsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getParticipantSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listParticipantSessionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getRecordingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listRecordingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getTranscriptSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listTranscriptsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getTranscriptEntrySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listTranscriptEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getConferenceRecord. */ + public UnaryCallSettings.Builder + getConferenceRecordSettings() { + return getConferenceRecordSettings; + } + + /** Returns the builder for the settings used for calls to listConferenceRecords. */ + public PagedCallSettings.Builder< + ListConferenceRecordsRequest, + ListConferenceRecordsResponse, + ListConferenceRecordsPagedResponse> + listConferenceRecordsSettings() { + return listConferenceRecordsSettings; + } + + /** Returns the builder for the settings used for calls to getParticipant. */ + public UnaryCallSettings.Builder getParticipantSettings() { + return getParticipantSettings; + } + + /** Returns the builder for the settings used for calls to listParticipants. */ + public PagedCallSettings.Builder< + ListParticipantsRequest, ListParticipantsResponse, ListParticipantsPagedResponse> + listParticipantsSettings() { + return listParticipantsSettings; + } + + /** Returns the builder for the settings used for calls to getParticipantSession. */ + public UnaryCallSettings.Builder + getParticipantSessionSettings() { + return getParticipantSessionSettings; + } + + /** Returns the builder for the settings used for calls to listParticipantSessions. */ + public PagedCallSettings.Builder< + ListParticipantSessionsRequest, + ListParticipantSessionsResponse, + ListParticipantSessionsPagedResponse> + listParticipantSessionsSettings() { + return listParticipantSessionsSettings; + } + + /** Returns the builder for the settings used for calls to getRecording. */ + public UnaryCallSettings.Builder getRecordingSettings() { + return getRecordingSettings; + } + + /** Returns the builder for the settings used for calls to listRecordings. */ + public PagedCallSettings.Builder< + ListRecordingsRequest, ListRecordingsResponse, ListRecordingsPagedResponse> + listRecordingsSettings() { + return listRecordingsSettings; + } + + /** Returns the builder for the settings used for calls to getTranscript. */ + public UnaryCallSettings.Builder getTranscriptSettings() { + return getTranscriptSettings; + } + + /** Returns the builder for the settings used for calls to listTranscripts. */ + public PagedCallSettings.Builder< + ListTranscriptsRequest, ListTranscriptsResponse, ListTranscriptsPagedResponse> + listTranscriptsSettings() { + return listTranscriptsSettings; + } + + /** Returns the builder for the settings used for calls to getTranscriptEntry. */ + public UnaryCallSettings.Builder + getTranscriptEntrySettings() { + return getTranscriptEntrySettings; + } + + /** Returns the builder for the settings used for calls to listTranscriptEntries. */ + public PagedCallSettings.Builder< + ListTranscriptEntriesRequest, + ListTranscriptEntriesResponse, + ListTranscriptEntriesPagedResponse> + listTranscriptEntriesSettings() { + return listTranscriptEntriesSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public ConferenceRecordsServiceStubSettings build() throws IOException { + return new ConferenceRecordsServiceStubSettings(this); + } + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceCallableFactory.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceCallableFactory.java new file mode 100644 index 000000000000..745390e090c5 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ConferenceRecordsService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcConferenceRecordsServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceStub.java new file mode 100644 index 000000000000..e4c2584fe6bf --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcConferenceRecordsServiceStub.java @@ -0,0 +1,625 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.GetConferenceRecordRequest; +import com.google.apps.meet.v2.GetParticipantRequest; +import com.google.apps.meet.v2.GetParticipantSessionRequest; +import com.google.apps.meet.v2.GetRecordingRequest; +import com.google.apps.meet.v2.GetTranscriptEntryRequest; +import com.google.apps.meet.v2.GetTranscriptRequest; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; +import com.google.apps.meet.v2.ListConferenceRecordsResponse; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ListParticipantSessionsResponse; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.ListParticipantsResponse; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.ListRecordingsResponse; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.ListTranscriptEntriesResponse; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.ListTranscriptsResponse; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ConferenceRecordsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcConferenceRecordsServiceStub extends ConferenceRecordsServiceStub { + private static final MethodDescriptor + getConferenceRecordMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetConferenceRecord") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConferenceRecordRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConferenceRecord.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listConferenceRecordsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/ListConferenceRecords") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConferenceRecordsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConferenceRecordsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getParticipantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetParticipant") + .setRequestMarshaller( + ProtoUtils.marshaller(GetParticipantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Participant.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listParticipantsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/ListParticipants") + .setRequestMarshaller( + ProtoUtils.marshaller(ListParticipantsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListParticipantsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getParticipantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/GetParticipantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(GetParticipantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ParticipantSession.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListParticipantSessionsRequest, ListParticipantSessionsResponse> + listParticipantSessionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/ListParticipantSessions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListParticipantSessionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListParticipantSessionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getRecordingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetRecording") + .setRequestMarshaller(ProtoUtils.marshaller(GetRecordingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Recording.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRecordingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/ListRecordings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRecordingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRecordingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTranscriptMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetTranscript") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTranscriptRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Transcript.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTranscriptsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/ListTranscripts") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTranscriptsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTranscriptsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTranscriptEntryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetTranscriptEntry") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTranscriptEntryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TranscriptEntry.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTranscriptEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/ListTranscriptEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTranscriptEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTranscriptEntriesResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + getConferenceRecordCallable; + private final UnaryCallable + listConferenceRecordsCallable; + private final UnaryCallable + listConferenceRecordsPagedCallable; + private final UnaryCallable getParticipantCallable; + private final UnaryCallable + listParticipantsCallable; + private final UnaryCallable + listParticipantsPagedCallable; + private final UnaryCallable + getParticipantSessionCallable; + private final UnaryCallable + listParticipantSessionsCallable; + private final UnaryCallable + listParticipantSessionsPagedCallable; + private final UnaryCallable getRecordingCallable; + private final UnaryCallable listRecordingsCallable; + private final UnaryCallable + listRecordingsPagedCallable; + private final UnaryCallable getTranscriptCallable; + private final UnaryCallable + listTranscriptsCallable; + private final UnaryCallable + listTranscriptsPagedCallable; + private final UnaryCallable + getTranscriptEntryCallable; + private final UnaryCallable + listTranscriptEntriesCallable; + private final UnaryCallable + listTranscriptEntriesPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcConferenceRecordsServiceStub create( + ConferenceRecordsServiceStubSettings settings) throws IOException { + return new GrpcConferenceRecordsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcConferenceRecordsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcConferenceRecordsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcConferenceRecordsServiceStub, 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 GrpcConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcConferenceRecordsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcConferenceRecordsServiceStub, 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 GrpcConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + getConferenceRecordTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConferenceRecordMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listConferenceRecordsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listConferenceRecordsMethodDescriptor) + .build(); + GrpcCallSettings getParticipantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getParticipantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listParticipantsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listParticipantsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getParticipantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getParticipantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listParticipantSessionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listParticipantSessionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getRecordingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRecordingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listRecordingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRecordingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getTranscriptTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTranscriptMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listTranscriptsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTranscriptsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getTranscriptEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTranscriptEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listTranscriptEntriesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listTranscriptEntriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getConferenceRecordCallable = + callableFactory.createUnaryCallable( + getConferenceRecordTransportSettings, + settings.getConferenceRecordSettings(), + clientContext); + this.listConferenceRecordsCallable = + callableFactory.createUnaryCallable( + listConferenceRecordsTransportSettings, + settings.listConferenceRecordsSettings(), + clientContext); + this.listConferenceRecordsPagedCallable = + callableFactory.createPagedCallable( + listConferenceRecordsTransportSettings, + settings.listConferenceRecordsSettings(), + clientContext); + this.getParticipantCallable = + callableFactory.createUnaryCallable( + getParticipantTransportSettings, settings.getParticipantSettings(), clientContext); + this.listParticipantsCallable = + callableFactory.createUnaryCallable( + listParticipantsTransportSettings, settings.listParticipantsSettings(), clientContext); + this.listParticipantsPagedCallable = + callableFactory.createPagedCallable( + listParticipantsTransportSettings, settings.listParticipantsSettings(), clientContext); + this.getParticipantSessionCallable = + callableFactory.createUnaryCallable( + getParticipantSessionTransportSettings, + settings.getParticipantSessionSettings(), + clientContext); + this.listParticipantSessionsCallable = + callableFactory.createUnaryCallable( + listParticipantSessionsTransportSettings, + settings.listParticipantSessionsSettings(), + clientContext); + this.listParticipantSessionsPagedCallable = + callableFactory.createPagedCallable( + listParticipantSessionsTransportSettings, + settings.listParticipantSessionsSettings(), + clientContext); + this.getRecordingCallable = + callableFactory.createUnaryCallable( + getRecordingTransportSettings, settings.getRecordingSettings(), clientContext); + this.listRecordingsCallable = + callableFactory.createUnaryCallable( + listRecordingsTransportSettings, settings.listRecordingsSettings(), clientContext); + this.listRecordingsPagedCallable = + callableFactory.createPagedCallable( + listRecordingsTransportSettings, settings.listRecordingsSettings(), clientContext); + this.getTranscriptCallable = + callableFactory.createUnaryCallable( + getTranscriptTransportSettings, settings.getTranscriptSettings(), clientContext); + this.listTranscriptsCallable = + callableFactory.createUnaryCallable( + listTranscriptsTransportSettings, settings.listTranscriptsSettings(), clientContext); + this.listTranscriptsPagedCallable = + callableFactory.createPagedCallable( + listTranscriptsTransportSettings, settings.listTranscriptsSettings(), clientContext); + this.getTranscriptEntryCallable = + callableFactory.createUnaryCallable( + getTranscriptEntryTransportSettings, + settings.getTranscriptEntrySettings(), + clientContext); + this.listTranscriptEntriesCallable = + callableFactory.createUnaryCallable( + listTranscriptEntriesTransportSettings, + settings.listTranscriptEntriesSettings(), + clientContext); + this.listTranscriptEntriesPagedCallable = + callableFactory.createPagedCallable( + listTranscriptEntriesTransportSettings, + settings.listTranscriptEntriesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getConferenceRecordCallable() { + return getConferenceRecordCallable; + } + + @Override + public UnaryCallable + listConferenceRecordsCallable() { + return listConferenceRecordsCallable; + } + + @Override + public UnaryCallable + listConferenceRecordsPagedCallable() { + return listConferenceRecordsPagedCallable; + } + + @Override + public UnaryCallable getParticipantCallable() { + return getParticipantCallable; + } + + @Override + public UnaryCallable + listParticipantsCallable() { + return listParticipantsCallable; + } + + @Override + public UnaryCallable + listParticipantsPagedCallable() { + return listParticipantsPagedCallable; + } + + @Override + public UnaryCallable + getParticipantSessionCallable() { + return getParticipantSessionCallable; + } + + @Override + public UnaryCallable + listParticipantSessionsCallable() { + return listParticipantSessionsCallable; + } + + @Override + public UnaryCallable + listParticipantSessionsPagedCallable() { + return listParticipantSessionsPagedCallable; + } + + @Override + public UnaryCallable getRecordingCallable() { + return getRecordingCallable; + } + + @Override + public UnaryCallable listRecordingsCallable() { + return listRecordingsCallable; + } + + @Override + public UnaryCallable + listRecordingsPagedCallable() { + return listRecordingsPagedCallable; + } + + @Override + public UnaryCallable getTranscriptCallable() { + return getTranscriptCallable; + } + + @Override + public UnaryCallable listTranscriptsCallable() { + return listTranscriptsCallable; + } + + @Override + public UnaryCallable + listTranscriptsPagedCallable() { + return listTranscriptsPagedCallable; + } + + @Override + public UnaryCallable getTranscriptEntryCallable() { + return getTranscriptEntryCallable; + } + + @Override + public UnaryCallable + listTranscriptEntriesCallable() { + return listTranscriptEntriesCallable; + } + + @Override + public UnaryCallable + listTranscriptEntriesPagedCallable() { + return listTranscriptEntriesPagedCallable; + } + + @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/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceCallableFactory.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceCallableFactory.java new file mode 100644 index 000000000000..f2785e973861 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SpacesService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcSpacesServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceStub.java new file mode 100644 index 000000000000..7f104cccef20 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/GrpcSpacesServiceStub.java @@ -0,0 +1,241 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.CreateSpaceRequest; +import com.google.apps.meet.v2.EndActiveConferenceRequest; +import com.google.apps.meet.v2.GetSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.UpdateSpaceRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SpacesService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcSpacesServiceStub extends SpacesServiceStub { + private static final MethodDescriptor createSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.SpacesService/CreateSpace") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Space.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.SpacesService/GetSpace") + .setRequestMarshaller(ProtoUtils.marshaller(GetSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Space.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.SpacesService/UpdateSpace") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Space.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + endActiveConferenceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2.SpacesService/EndActiveConference") + .setRequestMarshaller( + ProtoUtils.marshaller(EndActiveConferenceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private final UnaryCallable createSpaceCallable; + private final UnaryCallable getSpaceCallable; + private final UnaryCallable updateSpaceCallable; + private final UnaryCallable endActiveConferenceCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSpacesServiceStub create(SpacesServiceStubSettings settings) + throws IOException { + return new GrpcSpacesServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSpacesServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcSpacesServiceStub(SpacesServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSpacesServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSpacesServiceStub( + SpacesServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSpacesServiceStub, 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 GrpcSpacesServiceStub(SpacesServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSpacesServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSpacesServiceStub, 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 GrpcSpacesServiceStub( + SpacesServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSpaceMethodDescriptor) + .build(); + GrpcCallSettings getSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("space.name", String.valueOf(request.getSpace().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings endActiveConferenceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(endActiveConferenceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.createSpaceCallable = + callableFactory.createUnaryCallable( + createSpaceTransportSettings, settings.createSpaceSettings(), clientContext); + this.getSpaceCallable = + callableFactory.createUnaryCallable( + getSpaceTransportSettings, settings.getSpaceSettings(), clientContext); + this.updateSpaceCallable = + callableFactory.createUnaryCallable( + updateSpaceTransportSettings, settings.updateSpaceSettings(), clientContext); + this.endActiveConferenceCallable = + callableFactory.createUnaryCallable( + endActiveConferenceTransportSettings, + settings.endActiveConferenceSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createSpaceCallable() { + return createSpaceCallable; + } + + @Override + public UnaryCallable getSpaceCallable() { + return getSpaceCallable; + } + + @Override + public UnaryCallable updateSpaceCallable() { + return updateSpaceCallable; + } + + @Override + public UnaryCallable endActiveConferenceCallable() { + return endActiveConferenceCallable; + } + + @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/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceCallableFactory.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceCallableFactory.java new file mode 100644 index 000000000000..cdd7c33ce863 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.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 ConferenceRecordsService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConferenceRecordsServiceCallableFactory + 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/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceStub.java new file mode 100644 index 000000000000..bc58514f83af --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonConferenceRecordsServiceStub.java @@ -0,0 +1,963 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.GetConferenceRecordRequest; +import com.google.apps.meet.v2.GetParticipantRequest; +import com.google.apps.meet.v2.GetParticipantSessionRequest; +import com.google.apps.meet.v2.GetRecordingRequest; +import com.google.apps.meet.v2.GetTranscriptEntryRequest; +import com.google.apps.meet.v2.GetTranscriptRequest; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; +import com.google.apps.meet.v2.ListConferenceRecordsResponse; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ListParticipantSessionsResponse; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.ListParticipantsResponse; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.ListRecordingsResponse; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.ListTranscriptEntriesResponse; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.ListTranscriptsResponse; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptEntry; +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 ConferenceRecordsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConferenceRecordsServiceStub extends ConferenceRecordsServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getConferenceRecordMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetConferenceRecord") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=conferenceRecords/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConferenceRecord.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListConferenceRecordsRequest, ListConferenceRecordsResponse> + listConferenceRecordsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/ListConferenceRecords") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/conferenceRecords", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .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()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConferenceRecordsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getParticipantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetParticipant") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=conferenceRecords/*/participants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Participant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listParticipantsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/ListParticipants") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=conferenceRecords/*}/participants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListParticipantsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getParticipantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/GetParticipantSession") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=conferenceRecords/*/participants/*/participantSessions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ParticipantSession.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListParticipantSessionsRequest, ListParticipantSessionsResponse> + listParticipantSessionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/ListParticipantSessions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=conferenceRecords/*/participants/*}/participantSessions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListParticipantSessionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getRecordingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetRecording") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=conferenceRecords/*/recordings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Recording.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listRecordingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/ListRecordings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=conferenceRecords/*}/recordings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRecordingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getTranscriptMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetTranscript") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=conferenceRecords/*/transcripts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Transcript.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTranscriptsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/ListTranscripts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=conferenceRecords/*}/transcripts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTranscriptsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getTranscriptEntryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.ConferenceRecordsService/GetTranscriptEntry") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=conferenceRecords/*/transcripts/*/entries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranscriptEntry.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse> + listTranscriptEntriesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.apps.meet.v2.ConferenceRecordsService/ListTranscriptEntries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=conferenceRecords/*/transcripts/*}/entries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTranscriptEntriesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getConferenceRecordCallable; + private final UnaryCallable + listConferenceRecordsCallable; + private final UnaryCallable + listConferenceRecordsPagedCallable; + private final UnaryCallable getParticipantCallable; + private final UnaryCallable + listParticipantsCallable; + private final UnaryCallable + listParticipantsPagedCallable; + private final UnaryCallable + getParticipantSessionCallable; + private final UnaryCallable + listParticipantSessionsCallable; + private final UnaryCallable + listParticipantSessionsPagedCallable; + private final UnaryCallable getRecordingCallable; + private final UnaryCallable listRecordingsCallable; + private final UnaryCallable + listRecordingsPagedCallable; + private final UnaryCallable getTranscriptCallable; + private final UnaryCallable + listTranscriptsCallable; + private final UnaryCallable + listTranscriptsPagedCallable; + private final UnaryCallable + getTranscriptEntryCallable; + private final UnaryCallable + listTranscriptEntriesCallable; + private final UnaryCallable + listTranscriptEntriesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConferenceRecordsServiceStub create( + ConferenceRecordsServiceStubSettings settings) throws IOException { + return new HttpJsonConferenceRecordsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConferenceRecordsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConferenceRecordsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonConferenceRecordsServiceStub, 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 HttpJsonConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonConferenceRecordsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConferenceRecordsServiceStub, 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 HttpJsonConferenceRecordsServiceStub( + ConferenceRecordsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getConferenceRecordTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConferenceRecordMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listConferenceRecordsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listConferenceRecordsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getParticipantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getParticipantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listParticipantsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listParticipantsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getParticipantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getParticipantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listParticipantSessionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listParticipantSessionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getRecordingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRecordingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listRecordingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRecordingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getTranscriptTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTranscriptMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listTranscriptsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTranscriptsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getTranscriptEntryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTranscriptEntryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listTranscriptEntriesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listTranscriptEntriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getConferenceRecordCallable = + callableFactory.createUnaryCallable( + getConferenceRecordTransportSettings, + settings.getConferenceRecordSettings(), + clientContext); + this.listConferenceRecordsCallable = + callableFactory.createUnaryCallable( + listConferenceRecordsTransportSettings, + settings.listConferenceRecordsSettings(), + clientContext); + this.listConferenceRecordsPagedCallable = + callableFactory.createPagedCallable( + listConferenceRecordsTransportSettings, + settings.listConferenceRecordsSettings(), + clientContext); + this.getParticipantCallable = + callableFactory.createUnaryCallable( + getParticipantTransportSettings, settings.getParticipantSettings(), clientContext); + this.listParticipantsCallable = + callableFactory.createUnaryCallable( + listParticipantsTransportSettings, settings.listParticipantsSettings(), clientContext); + this.listParticipantsPagedCallable = + callableFactory.createPagedCallable( + listParticipantsTransportSettings, settings.listParticipantsSettings(), clientContext); + this.getParticipantSessionCallable = + callableFactory.createUnaryCallable( + getParticipantSessionTransportSettings, + settings.getParticipantSessionSettings(), + clientContext); + this.listParticipantSessionsCallable = + callableFactory.createUnaryCallable( + listParticipantSessionsTransportSettings, + settings.listParticipantSessionsSettings(), + clientContext); + this.listParticipantSessionsPagedCallable = + callableFactory.createPagedCallable( + listParticipantSessionsTransportSettings, + settings.listParticipantSessionsSettings(), + clientContext); + this.getRecordingCallable = + callableFactory.createUnaryCallable( + getRecordingTransportSettings, settings.getRecordingSettings(), clientContext); + this.listRecordingsCallable = + callableFactory.createUnaryCallable( + listRecordingsTransportSettings, settings.listRecordingsSettings(), clientContext); + this.listRecordingsPagedCallable = + callableFactory.createPagedCallable( + listRecordingsTransportSettings, settings.listRecordingsSettings(), clientContext); + this.getTranscriptCallable = + callableFactory.createUnaryCallable( + getTranscriptTransportSettings, settings.getTranscriptSettings(), clientContext); + this.listTranscriptsCallable = + callableFactory.createUnaryCallable( + listTranscriptsTransportSettings, settings.listTranscriptsSettings(), clientContext); + this.listTranscriptsPagedCallable = + callableFactory.createPagedCallable( + listTranscriptsTransportSettings, settings.listTranscriptsSettings(), clientContext); + this.getTranscriptEntryCallable = + callableFactory.createUnaryCallable( + getTranscriptEntryTransportSettings, + settings.getTranscriptEntrySettings(), + clientContext); + this.listTranscriptEntriesCallable = + callableFactory.createUnaryCallable( + listTranscriptEntriesTransportSettings, + settings.listTranscriptEntriesSettings(), + clientContext); + this.listTranscriptEntriesPagedCallable = + callableFactory.createPagedCallable( + listTranscriptEntriesTransportSettings, + settings.listTranscriptEntriesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getConferenceRecordMethodDescriptor); + methodDescriptors.add(listConferenceRecordsMethodDescriptor); + methodDescriptors.add(getParticipantMethodDescriptor); + methodDescriptors.add(listParticipantsMethodDescriptor); + methodDescriptors.add(getParticipantSessionMethodDescriptor); + methodDescriptors.add(listParticipantSessionsMethodDescriptor); + methodDescriptors.add(getRecordingMethodDescriptor); + methodDescriptors.add(listRecordingsMethodDescriptor); + methodDescriptors.add(getTranscriptMethodDescriptor); + methodDescriptors.add(listTranscriptsMethodDescriptor); + methodDescriptors.add(getTranscriptEntryMethodDescriptor); + methodDescriptors.add(listTranscriptEntriesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getConferenceRecordCallable() { + return getConferenceRecordCallable; + } + + @Override + public UnaryCallable + listConferenceRecordsCallable() { + return listConferenceRecordsCallable; + } + + @Override + public UnaryCallable + listConferenceRecordsPagedCallable() { + return listConferenceRecordsPagedCallable; + } + + @Override + public UnaryCallable getParticipantCallable() { + return getParticipantCallable; + } + + @Override + public UnaryCallable + listParticipantsCallable() { + return listParticipantsCallable; + } + + @Override + public UnaryCallable + listParticipantsPagedCallable() { + return listParticipantsPagedCallable; + } + + @Override + public UnaryCallable + getParticipantSessionCallable() { + return getParticipantSessionCallable; + } + + @Override + public UnaryCallable + listParticipantSessionsCallable() { + return listParticipantSessionsCallable; + } + + @Override + public UnaryCallable + listParticipantSessionsPagedCallable() { + return listParticipantSessionsPagedCallable; + } + + @Override + public UnaryCallable getRecordingCallable() { + return getRecordingCallable; + } + + @Override + public UnaryCallable listRecordingsCallable() { + return listRecordingsCallable; + } + + @Override + public UnaryCallable + listRecordingsPagedCallable() { + return listRecordingsPagedCallable; + } + + @Override + public UnaryCallable getTranscriptCallable() { + return getTranscriptCallable; + } + + @Override + public UnaryCallable listTranscriptsCallable() { + return listTranscriptsCallable; + } + + @Override + public UnaryCallable + listTranscriptsPagedCallable() { + return listTranscriptsPagedCallable; + } + + @Override + public UnaryCallable getTranscriptEntryCallable() { + return getTranscriptEntryCallable; + } + + @Override + public UnaryCallable + listTranscriptEntriesCallable() { + return listTranscriptEntriesCallable; + } + + @Override + public UnaryCallable + listTranscriptEntriesPagedCallable() { + return listTranscriptEntriesPagedCallable; + } + + @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/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceCallableFactory.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceCallableFactory.java new file mode 100644 index 000000000000..53c4d7339d9b --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.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 SpacesService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSpacesServiceCallableFactory + 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/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceStub.java new file mode 100644 index 000000000000..a0898cbbba66 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/HttpJsonSpacesServiceStub.java @@ -0,0 +1,368 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.CreateSpaceRequest; +import com.google.apps.meet.v2.EndActiveConferenceRequest; +import com.google.apps.meet.v2.GetSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.UpdateSpaceRequest; +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 SpacesService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSpacesServiceStub extends SpacesServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor createSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.SpacesService/CreateSpace") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/spaces", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("space", request.getSpace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Space.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.SpacesService/GetSpace") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=spaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Space.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.SpacesService/UpdateSpace") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{space.name=spaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "space.name", request.getSpace().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("space", request.getSpace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Space.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + endActiveConferenceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2.SpacesService/EndActiveConference") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=spaces/*}:endActiveConference", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createSpaceCallable; + private final UnaryCallable getSpaceCallable; + private final UnaryCallable updateSpaceCallable; + private final UnaryCallable endActiveConferenceCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSpacesServiceStub create(SpacesServiceStubSettings settings) + throws IOException { + return new HttpJsonSpacesServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSpacesServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSpacesServiceStub( + SpacesServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSpacesServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSpacesServiceStub( + SpacesServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSpacesServiceStub, 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 HttpJsonSpacesServiceStub( + SpacesServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSpacesServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSpacesServiceStub, 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 HttpJsonSpacesServiceStub( + SpacesServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("space.name", String.valueOf(request.getSpace().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings endActiveConferenceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(endActiveConferenceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.createSpaceCallable = + callableFactory.createUnaryCallable( + createSpaceTransportSettings, settings.createSpaceSettings(), clientContext); + this.getSpaceCallable = + callableFactory.createUnaryCallable( + getSpaceTransportSettings, settings.getSpaceSettings(), clientContext); + this.updateSpaceCallable = + callableFactory.createUnaryCallable( + updateSpaceTransportSettings, settings.updateSpaceSettings(), clientContext); + this.endActiveConferenceCallable = + callableFactory.createUnaryCallable( + endActiveConferenceTransportSettings, + settings.endActiveConferenceSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createSpaceMethodDescriptor); + methodDescriptors.add(getSpaceMethodDescriptor); + methodDescriptors.add(updateSpaceMethodDescriptor); + methodDescriptors.add(endActiveConferenceMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createSpaceCallable() { + return createSpaceCallable; + } + + @Override + public UnaryCallable getSpaceCallable() { + return getSpaceCallable; + } + + @Override + public UnaryCallable updateSpaceCallable() { + return updateSpaceCallable; + } + + @Override + public UnaryCallable endActiveConferenceCallable() { + return endActiveConferenceCallable; + } + + @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/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStub.java new file mode 100644 index 000000000000..087556ba19eb --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStub.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2.CreateSpaceRequest; +import com.google.apps.meet.v2.EndActiveConferenceRequest; +import com.google.apps.meet.v2.GetSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.UpdateSpaceRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SpacesService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class SpacesServiceStub implements BackgroundResource { + + public UnaryCallable createSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: createSpaceCallable()"); + } + + public UnaryCallable getSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: getSpaceCallable()"); + } + + public UnaryCallable updateSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: updateSpaceCallable()"); + } + + public UnaryCallable endActiveConferenceCallable() { + throw new UnsupportedOperationException("Not implemented: endActiveConferenceCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java new file mode 100644 index 000000000000..c598bb9c5938 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java @@ -0,0 +1,431 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.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.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.apps.meet.v2.CreateSpaceRequest; +import com.google.apps.meet.v2.EndActiveConferenceRequest; +import com.google.apps.meet.v2.GetSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.UpdateSpaceRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SpacesServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpacesServiceStubSettings.Builder spacesServiceSettingsBuilder =
+ *     SpacesServiceStubSettings.newBuilder();
+ * spacesServiceSettingsBuilder
+ *     .createSpaceSettings()
+ *     .setRetrySettings(
+ *         spacesServiceSettingsBuilder
+ *             .createSpaceSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SpacesServiceStubSettings spacesServiceSettings = spacesServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class SpacesServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings createSpaceSettings; + private final UnaryCallSettings getSpaceSettings; + private final UnaryCallSettings updateSpaceSettings; + private final UnaryCallSettings endActiveConferenceSettings; + + /** Returns the object with the settings used for calls to createSpace. */ + public UnaryCallSettings createSpaceSettings() { + return createSpaceSettings; + } + + /** Returns the object with the settings used for calls to getSpace. */ + public UnaryCallSettings getSpaceSettings() { + return getSpaceSettings; + } + + /** Returns the object with the settings used for calls to updateSpace. */ + public UnaryCallSettings updateSpaceSettings() { + return updateSpaceSettings; + } + + /** Returns the object with the settings used for calls to endActiveConference. */ + public UnaryCallSettings endActiveConferenceSettings() { + return endActiveConferenceSettings; + } + + public SpacesServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSpacesServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSpacesServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "meet"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "meet.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "meet.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SpacesServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SpacesServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SpacesServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SpacesServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createSpaceSettings = settingsBuilder.createSpaceSettings().build(); + getSpaceSettings = settingsBuilder.getSpaceSettings().build(); + updateSpaceSettings = settingsBuilder.updateSpaceSettings().build(); + endActiveConferenceSettings = settingsBuilder.endActiveConferenceSettings().build(); + } + + /** Builder for SpacesServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder createSpaceSettings; + private final UnaryCallSettings.Builder getSpaceSettings; + private final UnaryCallSettings.Builder updateSpaceSettings; + private final UnaryCallSettings.Builder + endActiveConferenceSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + endActiveConferenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSpaceSettings, + getSpaceSettings, + updateSpaceSettings, + endActiveConferenceSettings); + initDefaults(this); + } + + protected Builder(SpacesServiceStubSettings settings) { + super(settings); + + createSpaceSettings = settings.createSpaceSettings.toBuilder(); + getSpaceSettings = settings.getSpaceSettings.toBuilder(); + updateSpaceSettings = settings.updateSpaceSettings.toBuilder(); + endActiveConferenceSettings = settings.endActiveConferenceSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSpaceSettings, + getSpaceSettings, + updateSpaceSettings, + endActiveConferenceSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .endActiveConferenceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createSpace. */ + public UnaryCallSettings.Builder createSpaceSettings() { + return createSpaceSettings; + } + + /** Returns the builder for the settings used for calls to getSpace. */ + public UnaryCallSettings.Builder getSpaceSettings() { + return getSpaceSettings; + } + + /** Returns the builder for the settings used for calls to updateSpace. */ + public UnaryCallSettings.Builder updateSpaceSettings() { + return updateSpaceSettings; + } + + /** Returns the builder for the settings used for calls to endActiveConference. */ + public UnaryCallSettings.Builder + endActiveConferenceSettings() { + return endActiveConferenceSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public SpacesServiceStubSettings build() throws IOException { + return new SpacesServiceStubSettings(this); + } + } +} diff --git a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json new file mode 100644 index 000000000000..e3ad04240c30 --- /dev/null +++ b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json @@ -0,0 +1,1865 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ActiveConference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ActiveConference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.AnonymousUser", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.AnonymousUser$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ConferenceRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ConferenceRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.CreateSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.CreateSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.DocsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.DocsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.DriveDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.DriveDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.EndActiveConferenceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.EndActiveConferenceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetConferenceRecordRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetConferenceRecordRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetParticipantRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetParticipantRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetParticipantSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetParticipantSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetRecordingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetRecordingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetTranscriptEntryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetTranscriptEntryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetTranscriptRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.GetTranscriptRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListConferenceRecordsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListConferenceRecordsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListConferenceRecordsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListConferenceRecordsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListParticipantsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListRecordingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListRecordingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListRecordingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListRecordingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ListTranscriptsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Participant", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Participant$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ParticipantSession", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.ParticipantSession$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.PhoneUser", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.PhoneUser$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Recording", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Recording$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Recording$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.SignedinUser", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.SignedinUser$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Space", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Space$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.SpaceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.SpaceConfig$AccessType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.SpaceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.SpaceConfig$EntryPointAccess", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Transcript", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Transcript$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.Transcript$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.TranscriptEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.TranscriptEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.UpdateSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2.UpdateSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json index 8f6eb9c2bade..9036f8843c0c 100644 --- a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json +++ b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json @@ -1115,6 +1115,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -1250,6 +1259,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -1313,6 +1430,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientHttpJsonTest.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..daefae25963a --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientHttpJsonTest.java @@ -0,0 +1,1222 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +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.apps.meet.v2.stub.HttpJsonConferenceRecordsServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Timestamp; +import java.io.IOException; +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 ConferenceRecordsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConferenceRecordsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConferenceRecordsServiceStub.getMethodDescriptors(), + ConferenceRecordsServiceSettings.getDefaultEndpoint()); + ConferenceRecordsServiceSettings settings = + ConferenceRecordsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConferenceRecordsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConferenceRecordsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getConferenceRecordTest() throws Exception { + ConferenceRecord expectedResponse = + ConferenceRecord.newBuilder() + .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setSpace(SpaceName.of("[SPACE]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ConferenceRecord actualResponse = client.getConferenceRecord(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 getConferenceRecordExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.getConferenceRecord(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConferenceRecordTest2() throws Exception { + ConferenceRecord expectedResponse = + ConferenceRecord.newBuilder() + .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setSpace(SpaceName.of("[SPACE]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "conferenceRecords/conferenceRecord-4138"; + + ConferenceRecord actualResponse = client.getConferenceRecord(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 getConferenceRecordExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "conferenceRecords/conferenceRecord-4138"; + client.getConferenceRecord(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConferenceRecordsTest() throws Exception { + ConferenceRecord responsesElement = ConferenceRecord.newBuilder().build(); + ListConferenceRecordsResponse expectedResponse = + ListConferenceRecordsResponse.newBuilder() + .setNextPageToken("") + .addAllConferenceRecords(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + ListConferenceRecordsPagedResponse pagedListResponse = client.listConferenceRecords(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConferenceRecordsList().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 listConferenceRecordsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.listConferenceRecords(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantTest() throws Exception { + Participant expectedResponse = + Participant.newBuilder() + .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setEarliestStartTime(Timestamp.newBuilder().build()) + .setLatestEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + + Participant actualResponse = client.getParticipant(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 getParticipantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + client.getParticipant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantTest2() throws Exception { + Participant expectedResponse = + Participant.newBuilder() + .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setEarliestStartTime(Timestamp.newBuilder().build()) + .setLatestEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "conferenceRecords/conferenceRecord-6004/participants/participant-6004"; + + Participant actualResponse = client.getParticipant(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 getParticipantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "conferenceRecords/conferenceRecord-6004/participants/participant-6004"; + client.getParticipant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantsTest() throws Exception { + Participant responsesElement = Participant.newBuilder().build(); + ListParticipantsResponse expectedResponse = + ListParticipantsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ListParticipantsPagedResponse pagedListResponse = client.listParticipants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantsList().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 listParticipantsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.listParticipants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantsTest2() throws Exception { + Participant responsesElement = Participant.newBuilder().build(); + ListParticipantsResponse expectedResponse = + ListParticipantsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "conferenceRecords/conferenceRecord-7879"; + + ListParticipantsPagedResponse pagedListResponse = client.listParticipants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantsList().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 listParticipantsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "conferenceRecords/conferenceRecord-7879"; + client.listParticipants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantSessionTest() throws Exception { + ParticipantSession expectedResponse = + ParticipantSession.newBuilder() + .setName( + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ParticipantSessionName name = + ParticipantSessionName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]"); + + ParticipantSession actualResponse = client.getParticipantSession(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 getParticipantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ParticipantSessionName name = + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]"); + client.getParticipantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantSessionTest2() throws Exception { + ParticipantSession expectedResponse = + ParticipantSession.newBuilder() + .setName( + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "conferenceRecords/conferenceRecord-5872/participants/participant-5872/participantSessions/participantSession-5872"; + + ParticipantSession actualResponse = client.getParticipantSession(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 getParticipantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "conferenceRecords/conferenceRecord-5872/participants/participant-5872/participantSessions/participantSession-5872"; + client.getParticipantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantSessionsTest() throws Exception { + ParticipantSession responsesElement = ParticipantSession.newBuilder().build(); + ListParticipantSessionsResponse expectedResponse = + ListParticipantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipantSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + + ListParticipantSessionsPagedResponse pagedListResponse = client.listParticipantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantSessionsList().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 listParticipantSessionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + client.listParticipantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantSessionsTest2() throws Exception { + ParticipantSession responsesElement = ParticipantSession.newBuilder().build(); + ListParticipantSessionsResponse expectedResponse = + ListParticipantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipantSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "conferenceRecords/conferenceRecord-8605/participants/participant-8605"; + + ListParticipantSessionsPagedResponse pagedListResponse = client.listParticipantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantSessionsList().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 listParticipantSessionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "conferenceRecords/conferenceRecord-8605/participants/participant-8605"; + client.listParticipantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRecordingTest() throws Exception { + Recording expectedResponse = + Recording.newBuilder() + .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]"); + + Recording actualResponse = client.getRecording(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 getRecordingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]"); + client.getRecording(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRecordingTest2() throws Exception { + Recording expectedResponse = + Recording.newBuilder() + .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "conferenceRecords/conferenceRecord-9994/recordings/recording-9994"; + + Recording actualResponse = client.getRecording(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 getRecordingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "conferenceRecords/conferenceRecord-9994/recordings/recording-9994"; + client.getRecording(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRecordingsTest() throws Exception { + Recording responsesElement = Recording.newBuilder().build(); + ListRecordingsResponse expectedResponse = + ListRecordingsResponse.newBuilder() + .setNextPageToken("") + .addAllRecordings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ListRecordingsPagedResponse pagedListResponse = client.listRecordings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRecordingsList().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 listRecordingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.listRecordings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRecordingsTest2() throws Exception { + Recording responsesElement = Recording.newBuilder().build(); + ListRecordingsResponse expectedResponse = + ListRecordingsResponse.newBuilder() + .setNextPageToken("") + .addAllRecordings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "conferenceRecords/conferenceRecord-7879"; + + ListRecordingsPagedResponse pagedListResponse = client.listRecordings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRecordingsList().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 listRecordingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "conferenceRecords/conferenceRecord-7879"; + client.listRecordings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptTest() throws Exception { + Transcript expectedResponse = + Transcript.newBuilder() + .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + + Transcript actualResponse = client.getTranscript(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 getTranscriptExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + client.getTranscript(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptTest2() throws Exception { + Transcript expectedResponse = + Transcript.newBuilder() + .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "conferenceRecords/conferenceRecord-8047/transcripts/transcript-8047"; + + Transcript actualResponse = client.getTranscript(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 getTranscriptExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "conferenceRecords/conferenceRecord-8047/transcripts/transcript-8047"; + client.getTranscript(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptsTest() throws Exception { + Transcript responsesElement = Transcript.newBuilder().build(); + ListTranscriptsResponse expectedResponse = + ListTranscriptsResponse.newBuilder() + .setNextPageToken("") + .addAllTranscripts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ListTranscriptsPagedResponse pagedListResponse = client.listTranscripts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptsList().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 listTranscriptsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.listTranscripts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptsTest2() throws Exception { + Transcript responsesElement = Transcript.newBuilder().build(); + ListTranscriptsResponse expectedResponse = + ListTranscriptsResponse.newBuilder() + .setNextPageToken("") + .addAllTranscripts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "conferenceRecords/conferenceRecord-7879"; + + ListTranscriptsPagedResponse pagedListResponse = client.listTranscripts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptsList().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 listTranscriptsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "conferenceRecords/conferenceRecord-7879"; + client.listTranscripts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptEntryTest() throws Exception { + TranscriptEntry expectedResponse = + TranscriptEntry.newBuilder() + .setName( + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString()) + .setParticipant(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setText("text3556653") + .setLanguageCode("languageCode-2092349083") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TranscriptEntryName name = + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]"); + + TranscriptEntry actualResponse = client.getTranscriptEntry(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 getTranscriptEntryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranscriptEntryName name = + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]"); + client.getTranscriptEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptEntryTest2() throws Exception { + TranscriptEntry expectedResponse = + TranscriptEntry.newBuilder() + .setName( + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString()) + .setParticipant(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setText("text3556653") + .setLanguageCode("languageCode-2092349083") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "conferenceRecords/conferenceRecord-4037/transcripts/transcript-4037/entries/entrie-4037"; + + TranscriptEntry actualResponse = client.getTranscriptEntry(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 getTranscriptEntryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "conferenceRecords/conferenceRecord-4037/transcripts/transcript-4037/entries/entrie-4037"; + client.getTranscriptEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptEntriesTest() throws Exception { + TranscriptEntry responsesElement = TranscriptEntry.newBuilder().build(); + ListTranscriptEntriesResponse expectedResponse = + ListTranscriptEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllTranscriptEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + + ListTranscriptEntriesPagedResponse pagedListResponse = client.listTranscriptEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptEntriesList().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 listTranscriptEntriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + client.listTranscriptEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptEntriesTest2() throws Exception { + TranscriptEntry responsesElement = TranscriptEntry.newBuilder().build(); + ListTranscriptEntriesResponse expectedResponse = + ListTranscriptEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllTranscriptEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "conferenceRecords/conferenceRecord-976/transcripts/transcript-976"; + + ListTranscriptEntriesPagedResponse pagedListResponse = client.listTranscriptEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptEntriesList().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 listTranscriptEntriesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "conferenceRecords/conferenceRecord-976/transcripts/transcript-976"; + client.listTranscriptEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientTest.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientTest.java new file mode 100644 index 000000000000..b143d810b468 --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/ConferenceRecordsServiceClientTest.java @@ -0,0 +1,1093 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListConferenceRecordsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantSessionsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListParticipantsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListRecordingsPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptEntriesPagedResponse; +import static com.google.apps.meet.v2.ConferenceRecordsServiceClient.ListTranscriptsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +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 ConferenceRecordsServiceClientTest { + private static MockConferenceRecordsService mockConferenceRecordsService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ConferenceRecordsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockConferenceRecordsService = new MockConferenceRecordsService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockConferenceRecordsService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ConferenceRecordsServiceSettings settings = + ConferenceRecordsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConferenceRecordsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getConferenceRecordTest() throws Exception { + ConferenceRecord expectedResponse = + ConferenceRecord.newBuilder() + .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setSpace(SpaceName.of("[SPACE]").toString()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ConferenceRecord actualResponse = client.getConferenceRecord(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConferenceRecordRequest actualRequest = ((GetConferenceRecordRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConferenceRecordExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.getConferenceRecord(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConferenceRecordTest2() throws Exception { + ConferenceRecord expectedResponse = + ConferenceRecord.newBuilder() + .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setSpace(SpaceName.of("[SPACE]").toString()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String name = "name3373707"; + + ConferenceRecord actualResponse = client.getConferenceRecord(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConferenceRecordRequest actualRequest = ((GetConferenceRecordRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConferenceRecordExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String name = "name3373707"; + client.getConferenceRecord(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConferenceRecordsTest() throws Exception { + ConferenceRecord responsesElement = ConferenceRecord.newBuilder().build(); + ListConferenceRecordsResponse expectedResponse = + ListConferenceRecordsResponse.newBuilder() + .setNextPageToken("") + .addAllConferenceRecords(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + ListConferenceRecordsPagedResponse pagedListResponse = client.listConferenceRecords(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConferenceRecordsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConferenceRecordsRequest actualRequest = + ((ListConferenceRecordsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConferenceRecordsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.listConferenceRecords(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantTest() throws Exception { + Participant expectedResponse = + Participant.newBuilder() + .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setEarliestStartTime(Timestamp.newBuilder().build()) + .setLatestEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + + Participant actualResponse = client.getParticipant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetParticipantRequest actualRequest = ((GetParticipantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getParticipantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + client.getParticipant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantTest2() throws Exception { + Participant expectedResponse = + Participant.newBuilder() + .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setEarliestStartTime(Timestamp.newBuilder().build()) + .setLatestEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String name = "name3373707"; + + Participant actualResponse = client.getParticipant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetParticipantRequest actualRequest = ((GetParticipantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getParticipantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String name = "name3373707"; + client.getParticipant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantsTest() throws Exception { + Participant responsesElement = Participant.newBuilder().build(); + ListParticipantsResponse expectedResponse = + ListParticipantsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipants(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ListParticipantsPagedResponse pagedListResponse = client.listParticipants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListParticipantsRequest actualRequest = ((ListParticipantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listParticipantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.listParticipants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantsTest2() throws Exception { + Participant responsesElement = Participant.newBuilder().build(); + ListParticipantsResponse expectedResponse = + ListParticipantsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipants(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListParticipantsPagedResponse pagedListResponse = client.listParticipants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListParticipantsRequest actualRequest = ((ListParticipantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listParticipantsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listParticipants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantSessionTest() throws Exception { + ParticipantSession expectedResponse = + ParticipantSession.newBuilder() + .setName( + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ParticipantSessionName name = + ParticipantSessionName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]"); + + ParticipantSession actualResponse = client.getParticipantSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetParticipantSessionRequest actualRequest = + ((GetParticipantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getParticipantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ParticipantSessionName name = + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]"); + client.getParticipantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getParticipantSessionTest2() throws Exception { + ParticipantSession expectedResponse = + ParticipantSession.newBuilder() + .setName( + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String name = "name3373707"; + + ParticipantSession actualResponse = client.getParticipantSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetParticipantSessionRequest actualRequest = + ((GetParticipantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getParticipantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String name = "name3373707"; + client.getParticipantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantSessionsTest() throws Exception { + ParticipantSession responsesElement = ParticipantSession.newBuilder().build(); + ListParticipantSessionsResponse expectedResponse = + ListParticipantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipantSessions(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + + ListParticipantSessionsPagedResponse pagedListResponse = client.listParticipantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantSessionsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListParticipantSessionsRequest actualRequest = + ((ListParticipantSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listParticipantSessionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + client.listParticipantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listParticipantSessionsTest2() throws Exception { + ParticipantSession responsesElement = ParticipantSession.newBuilder().build(); + ListParticipantSessionsResponse expectedResponse = + ListParticipantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllParticipantSessions(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListParticipantSessionsPagedResponse pagedListResponse = client.listParticipantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getParticipantSessionsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListParticipantSessionsRequest actualRequest = + ((ListParticipantSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listParticipantSessionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listParticipantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRecordingTest() throws Exception { + Recording expectedResponse = + Recording.newBuilder() + .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]"); + + Recording actualResponse = client.getRecording(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRecordingRequest actualRequest = ((GetRecordingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRecordingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]"); + client.getRecording(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRecordingTest2() throws Exception { + Recording expectedResponse = + Recording.newBuilder() + .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String name = "name3373707"; + + Recording actualResponse = client.getRecording(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRecordingRequest actualRequest = ((GetRecordingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRecordingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String name = "name3373707"; + client.getRecording(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRecordingsTest() throws Exception { + Recording responsesElement = Recording.newBuilder().build(); + ListRecordingsResponse expectedResponse = + ListRecordingsResponse.newBuilder() + .setNextPageToken("") + .addAllRecordings(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ListRecordingsPagedResponse pagedListResponse = client.listRecordings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRecordingsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRecordingsRequest actualRequest = ((ListRecordingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRecordingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.listRecordings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRecordingsTest2() throws Exception { + Recording responsesElement = Recording.newBuilder().build(); + ListRecordingsResponse expectedResponse = + ListRecordingsResponse.newBuilder() + .setNextPageToken("") + .addAllRecordings(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRecordingsPagedResponse pagedListResponse = client.listRecordings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRecordingsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRecordingsRequest actualRequest = ((ListRecordingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRecordingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRecordings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptTest() throws Exception { + Transcript expectedResponse = + Transcript.newBuilder() + .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + + Transcript actualResponse = client.getTranscript(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTranscriptRequest actualRequest = ((GetTranscriptRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTranscriptExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + client.getTranscript(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptTest2() throws Exception { + Transcript expectedResponse = + Transcript.newBuilder() + .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String name = "name3373707"; + + Transcript actualResponse = client.getTranscript(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTranscriptRequest actualRequest = ((GetTranscriptRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTranscriptExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String name = "name3373707"; + client.getTranscript(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptsTest() throws Exception { + Transcript responsesElement = Transcript.newBuilder().build(); + ListTranscriptsResponse expectedResponse = + ListTranscriptsResponse.newBuilder() + .setNextPageToken("") + .addAllTranscripts(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + + ListTranscriptsPagedResponse pagedListResponse = client.listTranscripts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTranscriptsRequest actualRequest = ((ListTranscriptsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTranscriptsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + client.listTranscripts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptsTest2() throws Exception { + Transcript responsesElement = Transcript.newBuilder().build(); + ListTranscriptsResponse expectedResponse = + ListTranscriptsResponse.newBuilder() + .setNextPageToken("") + .addAllTranscripts(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTranscriptsPagedResponse pagedListResponse = client.listTranscripts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptsList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTranscriptsRequest actualRequest = ((ListTranscriptsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTranscriptsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTranscripts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptEntryTest() throws Exception { + TranscriptEntry expectedResponse = + TranscriptEntry.newBuilder() + .setName( + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString()) + .setParticipant(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setText("text3556653") + .setLanguageCode("languageCode-2092349083") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + TranscriptEntryName name = + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]"); + + TranscriptEntry actualResponse = client.getTranscriptEntry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTranscriptEntryRequest actualRequest = ((GetTranscriptEntryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTranscriptEntryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + TranscriptEntryName name = + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]"); + client.getTranscriptEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTranscriptEntryTest2() throws Exception { + TranscriptEntry expectedResponse = + TranscriptEntry.newBuilder() + .setName( + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString()) + .setParticipant(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setText("text3556653") + .setLanguageCode("languageCode-2092349083") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String name = "name3373707"; + + TranscriptEntry actualResponse = client.getTranscriptEntry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTranscriptEntryRequest actualRequest = ((GetTranscriptEntryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTranscriptEntryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String name = "name3373707"; + client.getTranscriptEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptEntriesTest() throws Exception { + TranscriptEntry responsesElement = TranscriptEntry.newBuilder().build(); + ListTranscriptEntriesResponse expectedResponse = + ListTranscriptEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllTranscriptEntries(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + + ListTranscriptEntriesPagedResponse pagedListResponse = client.listTranscriptEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptEntriesList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTranscriptEntriesRequest actualRequest = + ((ListTranscriptEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTranscriptEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + client.listTranscriptEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTranscriptEntriesTest2() throws Exception { + TranscriptEntry responsesElement = TranscriptEntry.newBuilder().build(); + ListTranscriptEntriesResponse expectedResponse = + ListTranscriptEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllTranscriptEntries(Arrays.asList(responsesElement)) + .build(); + mockConferenceRecordsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTranscriptEntriesPagedResponse pagedListResponse = client.listTranscriptEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTranscriptEntriesList().get(0), resources.get(0)); + + List actualRequests = mockConferenceRecordsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTranscriptEntriesRequest actualRequest = + ((ListTranscriptEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTranscriptEntriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConferenceRecordsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTranscriptEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsService.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsService.java new file mode 100644 index 000000000000..a37bbaad02a6 --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConferenceRecordsService implements MockGrpcService { + private final MockConferenceRecordsServiceImpl serviceImpl; + + public MockConferenceRecordsService() { + serviceImpl = new MockConferenceRecordsServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsServiceImpl.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsServiceImpl.java new file mode 100644 index 000000000000..6ff7fe3c58dd --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockConferenceRecordsServiceImpl.java @@ -0,0 +1,315 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.core.BetaApi; +import com.google.apps.meet.v2.ConferenceRecordsServiceGrpc.ConferenceRecordsServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConferenceRecordsServiceImpl extends ConferenceRecordsServiceImplBase { + private List requests; + private Queue responses; + + public MockConferenceRecordsServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getConferenceRecord( + GetConferenceRecordRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConferenceRecord) { + requests.add(request); + responseObserver.onNext(((ConferenceRecord) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetConferenceRecord, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConferenceRecord.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConferenceRecords( + ListConferenceRecordsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConferenceRecordsResponse) { + requests.add(request); + responseObserver.onNext(((ListConferenceRecordsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListConferenceRecords, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConferenceRecordsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getParticipant( + GetParticipantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Participant) { + requests.add(request); + responseObserver.onNext(((Participant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetParticipant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Participant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listParticipants( + ListParticipantsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListParticipantsResponse) { + requests.add(request); + responseObserver.onNext(((ListParticipantsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListParticipants, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListParticipantsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getParticipantSession( + GetParticipantSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ParticipantSession) { + requests.add(request); + responseObserver.onNext(((ParticipantSession) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetParticipantSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ParticipantSession.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listParticipantSessions( + ListParticipantSessionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListParticipantSessionsResponse) { + requests.add(request); + responseObserver.onNext(((ListParticipantSessionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListParticipantSessions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListParticipantSessionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRecording( + GetRecordingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Recording) { + requests.add(request); + responseObserver.onNext(((Recording) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRecording, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Recording.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRecordings( + ListRecordingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRecordingsResponse) { + requests.add(request); + responseObserver.onNext(((ListRecordingsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRecordings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRecordingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTranscript( + GetTranscriptRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Transcript) { + requests.add(request); + responseObserver.onNext(((Transcript) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTranscript, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Transcript.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTranscripts( + ListTranscriptsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTranscriptsResponse) { + requests.add(request); + responseObserver.onNext(((ListTranscriptsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTranscripts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTranscriptsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTranscriptEntry( + GetTranscriptEntryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranscriptEntry) { + requests.add(request); + responseObserver.onNext(((TranscriptEntry) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTranscriptEntry, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranscriptEntry.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTranscriptEntries( + ListTranscriptEntriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTranscriptEntriesResponse) { + requests.add(request); + responseObserver.onNext(((ListTranscriptEntriesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTranscriptEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTranscriptEntriesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesService.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesService.java new file mode 100644 index 000000000000..70f7bcb69415 --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSpacesService implements MockGrpcService { + private final MockSpacesServiceImpl serviceImpl; + + public MockSpacesService() { + serviceImpl = new MockSpacesServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesServiceImpl.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesServiceImpl.java new file mode 100644 index 000000000000..707268b1cd6b --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/MockSpacesServiceImpl.java @@ -0,0 +1,142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.core.BetaApi; +import com.google.apps.meet.v2.SpacesServiceGrpc.SpacesServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSpacesServiceImpl extends SpacesServiceImplBase { + private List requests; + private Queue responses; + + public MockSpacesServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createSpace(CreateSpaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Space) { + requests.add(request); + responseObserver.onNext(((Space) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Space.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSpace(GetSpaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Space) { + requests.add(request); + responseObserver.onNext(((Space) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Space.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSpace(UpdateSpaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Space) { + requests.add(request); + responseObserver.onNext(((Space) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Space.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void endActiveConference( + EndActiveConferenceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method EndActiveConference, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientHttpJsonTest.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..b73fe4536868 --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientHttpJsonTest.java @@ -0,0 +1,363 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +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.apps.meet.v2.stub.HttpJsonSpacesServiceStub; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +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 SpacesServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SpacesServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSpacesServiceStub.getMethodDescriptors(), + SpacesServiceSettings.getDefaultEndpoint()); + SpacesServiceSettings settings = + SpacesServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SpacesServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpacesServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Space space = Space.newBuilder().build(); + + Space actualResponse = client.createSpace(space); + 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 createSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Space space = Space.newBuilder().build(); + client.createSpace(space); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[SPACE]"); + + Space actualResponse = client.getSpace(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 getSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName name = SpaceName.of("[SPACE]"); + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceTest2() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "spaces/space-5469"; + + Space actualResponse = client.getSpace(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 getSpaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "spaces/space-5469"; + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Space space = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Space actualResponse = client.updateSpace(space, 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 updateSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Space space = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSpace(space, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void endActiveConferenceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[SPACE]"); + + client.endActiveConference(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 endActiveConferenceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName name = SpaceName.of("[SPACE]"); + client.endActiveConference(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void endActiveConferenceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "spaces/space-5469"; + + client.endActiveConference(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 endActiveConferenceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "spaces/space-5469"; + client.endActiveConference(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientTest.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientTest.java new file mode 100644 index 000000000000..6e267706a8c1 --- /dev/null +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2/SpacesServiceClientTest.java @@ -0,0 +1,318 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +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 SpacesServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockSpacesService mockSpacesService; + private LocalChannelProvider channelProvider; + private SpacesServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSpacesService = new MockSpacesService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockSpacesService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SpacesServiceSettings settings = + SpacesServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpacesServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockSpacesService.addResponse(expectedResponse); + + Space space = Space.newBuilder().build(); + + Space actualResponse = client.createSpace(space); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSpaceRequest actualRequest = ((CreateSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(space, actualRequest.getSpace()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + Space space = Space.newBuilder().build(); + client.createSpace(space); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockSpacesService.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[SPACE]"); + + Space actualResponse = client.getSpace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSpaceRequest actualRequest = ((GetSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + SpaceName name = SpaceName.of("[SPACE]"); + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceTest2() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockSpacesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Space actualResponse = client.getSpace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSpaceRequest actualRequest = ((GetSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSpaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + String name = "name3373707"; + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .setMeetingUri("meetingUri802788657") + .setMeetingCode("meetingCode-883894584") + .setConfig(SpaceConfig.newBuilder().build()) + .setActiveConference(ActiveConference.newBuilder().build()) + .build(); + mockSpacesService.addResponse(expectedResponse); + + Space space = Space.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Space actualResponse = client.updateSpace(space, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSpaceRequest actualRequest = ((UpdateSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(space, actualRequest.getSpace()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + Space space = Space.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSpace(space, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void endActiveConferenceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpacesService.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[SPACE]"); + + client.endActiveConference(name); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EndActiveConferenceRequest actualRequest = ((EndActiveConferenceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void endActiveConferenceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + SpaceName name = SpaceName.of("[SPACE]"); + client.endActiveConference(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void endActiveConferenceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpacesService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.endActiveConference(name); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EndActiveConferenceRequest actualRequest = ((EndActiveConferenceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void endActiveConferenceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + String name = "name3373707"; + client.endActiveConference(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-meet/grpc-google-cloud-meet-v2/pom.xml b/java-meet/grpc-google-cloud-meet-v2/pom.xml new file mode 100644 index 000000000000..eea49d892806 --- /dev/null +++ b/java-meet/grpc-google-cloud-meet-v2/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-meet-v2 + 0.2.0-SNAPSHOT + grpc-google-cloud-meet-v2 + GRPC library for google-cloud-meet + + com.google.cloud + google-cloud-meet-parent + 0.2.0-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-meet-v2 + + + com.google.guava + guava + + + \ No newline at end of file diff --git a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java new file mode 100644 index 000000000000..e80345aee96c --- /dev/null +++ b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java @@ -0,0 +1,1781 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * REST API for services dealing with conference records.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/apps/meet/v2/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConferenceRecordsServiceGrpc { + + private ConferenceRecordsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.apps.meet.v2.ConferenceRecordsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetConferenceRecordRequest, + com.google.apps.meet.v2.ConferenceRecord> + getGetConferenceRecordMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConferenceRecord", + requestType = com.google.apps.meet.v2.GetConferenceRecordRequest.class, + responseType = com.google.apps.meet.v2.ConferenceRecord.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetConferenceRecordRequest, + com.google.apps.meet.v2.ConferenceRecord> + getGetConferenceRecordMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetConferenceRecordRequest, + com.google.apps.meet.v2.ConferenceRecord> + getGetConferenceRecordMethod; + if ((getGetConferenceRecordMethod = ConferenceRecordsServiceGrpc.getGetConferenceRecordMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getGetConferenceRecordMethod = + ConferenceRecordsServiceGrpc.getGetConferenceRecordMethod) + == null) { + ConferenceRecordsServiceGrpc.getGetConferenceRecordMethod = + getGetConferenceRecordMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetConferenceRecord")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetConferenceRecordRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ConferenceRecord.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier( + "GetConferenceRecord")) + .build(); + } + } + } + return getGetConferenceRecordMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListConferenceRecordsRequest, + com.google.apps.meet.v2.ListConferenceRecordsResponse> + getListConferenceRecordsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConferenceRecords", + requestType = com.google.apps.meet.v2.ListConferenceRecordsRequest.class, + responseType = com.google.apps.meet.v2.ListConferenceRecordsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListConferenceRecordsRequest, + com.google.apps.meet.v2.ListConferenceRecordsResponse> + getListConferenceRecordsMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListConferenceRecordsRequest, + com.google.apps.meet.v2.ListConferenceRecordsResponse> + getListConferenceRecordsMethod; + if ((getListConferenceRecordsMethod = + ConferenceRecordsServiceGrpc.getListConferenceRecordsMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getListConferenceRecordsMethod = + ConferenceRecordsServiceGrpc.getListConferenceRecordsMethod) + == null) { + ConferenceRecordsServiceGrpc.getListConferenceRecordsMethod = + getListConferenceRecordsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConferenceRecords")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListConferenceRecordsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListConferenceRecordsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier( + "ListConferenceRecords")) + .build(); + } + } + } + return getListConferenceRecordsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetParticipantRequest, com.google.apps.meet.v2.Participant> + getGetParticipantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetParticipant", + requestType = com.google.apps.meet.v2.GetParticipantRequest.class, + responseType = com.google.apps.meet.v2.Participant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetParticipantRequest, com.google.apps.meet.v2.Participant> + getGetParticipantMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetParticipantRequest, com.google.apps.meet.v2.Participant> + getGetParticipantMethod; + if ((getGetParticipantMethod = ConferenceRecordsServiceGrpc.getGetParticipantMethod) == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getGetParticipantMethod = ConferenceRecordsServiceGrpc.getGetParticipantMethod) + == null) { + ConferenceRecordsServiceGrpc.getGetParticipantMethod = + getGetParticipantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParticipant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetParticipantRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.Participant.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier("GetParticipant")) + .build(); + } + } + } + return getGetParticipantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListParticipantsRequest, + com.google.apps.meet.v2.ListParticipantsResponse> + getListParticipantsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListParticipants", + requestType = com.google.apps.meet.v2.ListParticipantsRequest.class, + responseType = com.google.apps.meet.v2.ListParticipantsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListParticipantsRequest, + com.google.apps.meet.v2.ListParticipantsResponse> + getListParticipantsMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListParticipantsRequest, + com.google.apps.meet.v2.ListParticipantsResponse> + getListParticipantsMethod; + if ((getListParticipantsMethod = ConferenceRecordsServiceGrpc.getListParticipantsMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getListParticipantsMethod = ConferenceRecordsServiceGrpc.getListParticipantsMethod) + == null) { + ConferenceRecordsServiceGrpc.getListParticipantsMethod = + getListParticipantsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListParticipants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListParticipantsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListParticipantsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier("ListParticipants")) + .build(); + } + } + } + return getListParticipantsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetParticipantSessionRequest, + com.google.apps.meet.v2.ParticipantSession> + getGetParticipantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetParticipantSession", + requestType = com.google.apps.meet.v2.GetParticipantSessionRequest.class, + responseType = com.google.apps.meet.v2.ParticipantSession.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetParticipantSessionRequest, + com.google.apps.meet.v2.ParticipantSession> + getGetParticipantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetParticipantSessionRequest, + com.google.apps.meet.v2.ParticipantSession> + getGetParticipantSessionMethod; + if ((getGetParticipantSessionMethod = + ConferenceRecordsServiceGrpc.getGetParticipantSessionMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getGetParticipantSessionMethod = + ConferenceRecordsServiceGrpc.getGetParticipantSessionMethod) + == null) { + ConferenceRecordsServiceGrpc.getGetParticipantSessionMethod = + getGetParticipantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetParticipantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetParticipantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ParticipantSession.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier( + "GetParticipantSession")) + .build(); + } + } + } + return getGetParticipantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListParticipantSessionsRequest, + com.google.apps.meet.v2.ListParticipantSessionsResponse> + getListParticipantSessionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListParticipantSessions", + requestType = com.google.apps.meet.v2.ListParticipantSessionsRequest.class, + responseType = com.google.apps.meet.v2.ListParticipantSessionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListParticipantSessionsRequest, + com.google.apps.meet.v2.ListParticipantSessionsResponse> + getListParticipantSessionsMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListParticipantSessionsRequest, + com.google.apps.meet.v2.ListParticipantSessionsResponse> + getListParticipantSessionsMethod; + if ((getListParticipantSessionsMethod = + ConferenceRecordsServiceGrpc.getListParticipantSessionsMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getListParticipantSessionsMethod = + ConferenceRecordsServiceGrpc.getListParticipantSessionsMethod) + == null) { + ConferenceRecordsServiceGrpc.getListParticipantSessionsMethod = + getListParticipantSessionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListParticipantSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListParticipantSessionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListParticipantSessionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier( + "ListParticipantSessions")) + .build(); + } + } + } + return getListParticipantSessionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetRecordingRequest, com.google.apps.meet.v2.Recording> + getGetRecordingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRecording", + requestType = com.google.apps.meet.v2.GetRecordingRequest.class, + responseType = com.google.apps.meet.v2.Recording.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetRecordingRequest, com.google.apps.meet.v2.Recording> + getGetRecordingMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetRecordingRequest, com.google.apps.meet.v2.Recording> + getGetRecordingMethod; + if ((getGetRecordingMethod = ConferenceRecordsServiceGrpc.getGetRecordingMethod) == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getGetRecordingMethod = ConferenceRecordsServiceGrpc.getGetRecordingMethod) == null) { + ConferenceRecordsServiceGrpc.getGetRecordingMethod = + getGetRecordingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecording")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetRecordingRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.Recording.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier("GetRecording")) + .build(); + } + } + } + return getGetRecordingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListRecordingsRequest, + com.google.apps.meet.v2.ListRecordingsResponse> + getListRecordingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRecordings", + requestType = com.google.apps.meet.v2.ListRecordingsRequest.class, + responseType = com.google.apps.meet.v2.ListRecordingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListRecordingsRequest, + com.google.apps.meet.v2.ListRecordingsResponse> + getListRecordingsMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListRecordingsRequest, + com.google.apps.meet.v2.ListRecordingsResponse> + getListRecordingsMethod; + if ((getListRecordingsMethod = ConferenceRecordsServiceGrpc.getListRecordingsMethod) == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getListRecordingsMethod = ConferenceRecordsServiceGrpc.getListRecordingsMethod) + == null) { + ConferenceRecordsServiceGrpc.getListRecordingsMethod = + getListRecordingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecordings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListRecordingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListRecordingsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier("ListRecordings")) + .build(); + } + } + } + return getListRecordingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetTranscriptRequest, com.google.apps.meet.v2.Transcript> + getGetTranscriptMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTranscript", + requestType = com.google.apps.meet.v2.GetTranscriptRequest.class, + responseType = com.google.apps.meet.v2.Transcript.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetTranscriptRequest, com.google.apps.meet.v2.Transcript> + getGetTranscriptMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetTranscriptRequest, com.google.apps.meet.v2.Transcript> + getGetTranscriptMethod; + if ((getGetTranscriptMethod = ConferenceRecordsServiceGrpc.getGetTranscriptMethod) == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getGetTranscriptMethod = ConferenceRecordsServiceGrpc.getGetTranscriptMethod) + == null) { + ConferenceRecordsServiceGrpc.getGetTranscriptMethod = + getGetTranscriptMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTranscript")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetTranscriptRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.Transcript.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier("GetTranscript")) + .build(); + } + } + } + return getGetTranscriptMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListTranscriptsRequest, + com.google.apps.meet.v2.ListTranscriptsResponse> + getListTranscriptsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTranscripts", + requestType = com.google.apps.meet.v2.ListTranscriptsRequest.class, + responseType = com.google.apps.meet.v2.ListTranscriptsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListTranscriptsRequest, + com.google.apps.meet.v2.ListTranscriptsResponse> + getListTranscriptsMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListTranscriptsRequest, + com.google.apps.meet.v2.ListTranscriptsResponse> + getListTranscriptsMethod; + if ((getListTranscriptsMethod = ConferenceRecordsServiceGrpc.getListTranscriptsMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getListTranscriptsMethod = ConferenceRecordsServiceGrpc.getListTranscriptsMethod) + == null) { + ConferenceRecordsServiceGrpc.getListTranscriptsMethod = + getListTranscriptsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTranscripts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListTranscriptsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListTranscriptsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier("ListTranscripts")) + .build(); + } + } + } + return getListTranscriptsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetTranscriptEntryRequest, + com.google.apps.meet.v2.TranscriptEntry> + getGetTranscriptEntryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTranscriptEntry", + requestType = com.google.apps.meet.v2.GetTranscriptEntryRequest.class, + responseType = com.google.apps.meet.v2.TranscriptEntry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetTranscriptEntryRequest, + com.google.apps.meet.v2.TranscriptEntry> + getGetTranscriptEntryMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetTranscriptEntryRequest, + com.google.apps.meet.v2.TranscriptEntry> + getGetTranscriptEntryMethod; + if ((getGetTranscriptEntryMethod = ConferenceRecordsServiceGrpc.getGetTranscriptEntryMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getGetTranscriptEntryMethod = ConferenceRecordsServiceGrpc.getGetTranscriptEntryMethod) + == null) { + ConferenceRecordsServiceGrpc.getGetTranscriptEntryMethod = + getGetTranscriptEntryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTranscriptEntry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetTranscriptEntryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.TranscriptEntry.getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier( + "GetTranscriptEntry")) + .build(); + } + } + } + return getGetTranscriptEntryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListTranscriptEntriesRequest, + com.google.apps.meet.v2.ListTranscriptEntriesResponse> + getListTranscriptEntriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTranscriptEntries", + requestType = com.google.apps.meet.v2.ListTranscriptEntriesRequest.class, + responseType = com.google.apps.meet.v2.ListTranscriptEntriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListTranscriptEntriesRequest, + com.google.apps.meet.v2.ListTranscriptEntriesResponse> + getListTranscriptEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.ListTranscriptEntriesRequest, + com.google.apps.meet.v2.ListTranscriptEntriesResponse> + getListTranscriptEntriesMethod; + if ((getListTranscriptEntriesMethod = + ConferenceRecordsServiceGrpc.getListTranscriptEntriesMethod) + == null) { + synchronized (ConferenceRecordsServiceGrpc.class) { + if ((getListTranscriptEntriesMethod = + ConferenceRecordsServiceGrpc.getListTranscriptEntriesMethod) + == null) { + ConferenceRecordsServiceGrpc.getListTranscriptEntriesMethod = + getListTranscriptEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTranscriptEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListTranscriptEntriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.ListTranscriptEntriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConferenceRecordsServiceMethodDescriptorSupplier( + "ListTranscriptEntries")) + .build(); + } + } + } + return getListTranscriptEntriesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConferenceRecordsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConferenceRecordsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConferenceRecordsServiceStub(channel, callOptions); + } + }; + return ConferenceRecordsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConferenceRecordsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConferenceRecordsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConferenceRecordsServiceBlockingStub(channel, callOptions); + } + }; + return ConferenceRecordsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConferenceRecordsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConferenceRecordsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConferenceRecordsServiceFutureStub(channel, callOptions); + } + }; + return ConferenceRecordsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * REST API for services dealing with conference records.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Gets a conference record by conference ID.
+     * 
+ */ + default void getConferenceRecord( + com.google.apps.meet.v2.GetConferenceRecordRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConferenceRecordMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
+     * 
+ */ + default void listConferenceRecords( + com.google.apps.meet.v2.ListConferenceRecordsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConferenceRecordsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a participant by participant ID.
+     * 
+ */ + default void getParticipant( + com.google.apps.meet.v2.GetParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetParticipantMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the participants in a conference record. By default, ordered by join
+     * time and in descending order. This API supports `fields` as standard
+     * parameters like every other API. However, when the `fields` request
+     * parameter is omitted, this API defaults to `'participants/*,
+     * next_page_token'`.
+     * 
+ */ + default void listParticipants( + com.google.apps.meet.v2.ListParticipantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListParticipantsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a participant session by participant session ID.
+     * 
+ */ + default void getParticipantSession( + com.google.apps.meet.v2.GetParticipantSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetParticipantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
+     * `fields` as standard parameters like every other API. However, when the
+     * `fields` request parameter is omitted this API defaults to
+     * `'participantsessions/*, next_page_token'`.
+     * 
+ */ + default void listParticipantSessions( + com.google.apps.meet.v2.ListParticipantSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListParticipantSessionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a recording by recording ID.
+     * 
+ */ + default void getRecording( + com.google.apps.meet.v2.GetRecordingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRecordingMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + default void listRecordings( + com.google.apps.meet.v2.ListRecordingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRecordingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a transcript by transcript ID.
+     * 
+ */ + default void getTranscript( + com.google.apps.meet.v2.GetTranscriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTranscriptMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + default void listTranscripts( + com.google.apps.meet.v2.ListTranscriptsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTranscriptsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a `TranscriptEntry` resource by entry ID.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + default void getTranscriptEntry( + com.google.apps.meet.v2.GetTranscriptEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTranscriptEntryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the structured transcript entries per transcript. By default, ordered
+     * by start time and in ascending order.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + default void listTranscriptEntries( + com.google.apps.meet.v2.ListTranscriptEntriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTranscriptEntriesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConferenceRecordsService. + * + *
+   * REST API for services dealing with conference records.
+   * 
+ */ + public abstract static class ConferenceRecordsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ConferenceRecordsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConferenceRecordsService. + * + *
+   * REST API for services dealing with conference records.
+   * 
+ */ + public static final class ConferenceRecordsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConferenceRecordsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConferenceRecordsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConferenceRecordsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a conference record by conference ID.
+     * 
+ */ + public void getConferenceRecord( + com.google.apps.meet.v2.GetConferenceRecordRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConferenceRecordMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
+     * 
+ */ + public void listConferenceRecords( + com.google.apps.meet.v2.ListConferenceRecordsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConferenceRecordsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a participant by participant ID.
+     * 
+ */ + public void getParticipant( + com.google.apps.meet.v2.GetParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetParticipantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the participants in a conference record. By default, ordered by join
+     * time and in descending order. This API supports `fields` as standard
+     * parameters like every other API. However, when the `fields` request
+     * parameter is omitted, this API defaults to `'participants/*,
+     * next_page_token'`.
+     * 
+ */ + public void listParticipants( + com.google.apps.meet.v2.ListParticipantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListParticipantsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a participant session by participant session ID.
+     * 
+ */ + public void getParticipantSession( + com.google.apps.meet.v2.GetParticipantSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetParticipantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
+     * `fields` as standard parameters like every other API. However, when the
+     * `fields` request parameter is omitted this API defaults to
+     * `'participantsessions/*, next_page_token'`.
+     * 
+ */ + public void listParticipantSessions( + com.google.apps.meet.v2.ListParticipantSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListParticipantSessionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a recording by recording ID.
+     * 
+ */ + public void getRecording( + com.google.apps.meet.v2.GetRecordingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRecordingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + public void listRecordings( + com.google.apps.meet.v2.ListRecordingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRecordingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a transcript by transcript ID.
+     * 
+ */ + public void getTranscript( + com.google.apps.meet.v2.GetTranscriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTranscriptMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + public void listTranscripts( + com.google.apps.meet.v2.ListTranscriptsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTranscriptsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a `TranscriptEntry` resource by entry ID.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + public void getTranscriptEntry( + com.google.apps.meet.v2.GetTranscriptEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTranscriptEntryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the structured transcript entries per transcript. By default, ordered
+     * by start time and in ascending order.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + public void listTranscriptEntries( + com.google.apps.meet.v2.ListTranscriptEntriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTranscriptEntriesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConferenceRecordsService. + * + *
+   * REST API for services dealing with conference records.
+   * 
+ */ + public static final class ConferenceRecordsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConferenceRecordsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConferenceRecordsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConferenceRecordsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a conference record by conference ID.
+     * 
+ */ + public com.google.apps.meet.v2.ConferenceRecord getConferenceRecord( + com.google.apps.meet.v2.GetConferenceRecordRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConferenceRecordMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
+     * 
+ */ + public com.google.apps.meet.v2.ListConferenceRecordsResponse listConferenceRecords( + com.google.apps.meet.v2.ListConferenceRecordsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConferenceRecordsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a participant by participant ID.
+     * 
+ */ + public com.google.apps.meet.v2.Participant getParticipant( + com.google.apps.meet.v2.GetParticipantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetParticipantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the participants in a conference record. By default, ordered by join
+     * time and in descending order. This API supports `fields` as standard
+     * parameters like every other API. However, when the `fields` request
+     * parameter is omitted, this API defaults to `'participants/*,
+     * next_page_token'`.
+     * 
+ */ + public com.google.apps.meet.v2.ListParticipantsResponse listParticipants( + com.google.apps.meet.v2.ListParticipantsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListParticipantsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a participant session by participant session ID.
+     * 
+ */ + public com.google.apps.meet.v2.ParticipantSession getParticipantSession( + com.google.apps.meet.v2.GetParticipantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetParticipantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
+     * `fields` as standard parameters like every other API. However, when the
+     * `fields` request parameter is omitted this API defaults to
+     * `'participantsessions/*, next_page_token'`.
+     * 
+ */ + public com.google.apps.meet.v2.ListParticipantSessionsResponse listParticipantSessions( + com.google.apps.meet.v2.ListParticipantSessionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListParticipantSessionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a recording by recording ID.
+     * 
+ */ + public com.google.apps.meet.v2.Recording getRecording( + com.google.apps.meet.v2.GetRecordingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRecordingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + public com.google.apps.meet.v2.ListRecordingsResponse listRecordings( + com.google.apps.meet.v2.ListRecordingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRecordingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a transcript by transcript ID.
+     * 
+ */ + public com.google.apps.meet.v2.Transcript getTranscript( + com.google.apps.meet.v2.GetTranscriptRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTranscriptMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + public com.google.apps.meet.v2.ListTranscriptsResponse listTranscripts( + com.google.apps.meet.v2.ListTranscriptsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTranscriptsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a `TranscriptEntry` resource by entry ID.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + public com.google.apps.meet.v2.TranscriptEntry getTranscriptEntry( + com.google.apps.meet.v2.GetTranscriptEntryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTranscriptEntryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the structured transcript entries per transcript. By default, ordered
+     * by start time and in ascending order.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + public com.google.apps.meet.v2.ListTranscriptEntriesResponse listTranscriptEntries( + com.google.apps.meet.v2.ListTranscriptEntriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTranscriptEntriesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConferenceRecordsService. + * + *
+   * REST API for services dealing with conference records.
+   * 
+ */ + public static final class ConferenceRecordsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConferenceRecordsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConferenceRecordsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConferenceRecordsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a conference record by conference ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ConferenceRecord> + getConferenceRecord(com.google.apps.meet.v2.GetConferenceRecordRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConferenceRecordMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ListConferenceRecordsResponse> + listConferenceRecords(com.google.apps.meet.v2.ListConferenceRecordsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConferenceRecordsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a participant by participant ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getParticipant(com.google.apps.meet.v2.GetParticipantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the participants in a conference record. By default, ordered by join
+     * time and in descending order. This API supports `fields` as standard
+     * parameters like every other API. However, when the `fields` request
+     * parameter is omitted, this API defaults to `'participants/*,
+     * next_page_token'`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ListParticipantsResponse> + listParticipants(com.google.apps.meet.v2.ListParticipantsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a participant session by participant session ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ParticipantSession> + getParticipantSession(com.google.apps.meet.v2.GetParticipantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetParticipantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
+     * `fields` as standard parameters like every other API. However, when the
+     * `fields` request parameter is omitted this API defaults to
+     * `'participantsessions/*, next_page_token'`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ListParticipantSessionsResponse> + listParticipantSessions(com.google.apps.meet.v2.ListParticipantSessionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListParticipantSessionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a recording by recording ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRecording(com.google.apps.meet.v2.GetRecordingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRecordingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ListRecordingsResponse> + listRecordings(com.google.apps.meet.v2.ListRecordingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRecordingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a transcript by transcript ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getTranscript(com.google.apps.meet.v2.GetTranscriptRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTranscriptMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ListTranscriptsResponse> + listTranscripts(com.google.apps.meet.v2.ListTranscriptsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTranscriptsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a `TranscriptEntry` resource by entry ID.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.TranscriptEntry> + getTranscriptEntry(com.google.apps.meet.v2.GetTranscriptEntryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTranscriptEntryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the structured transcript entries per transcript. By default, ordered
+     * by start time and in ascending order.
+     * Note: The transcript entries returned by the Google Meet API might not
+     * match the transcription found in the Google Docs transcript file. This can
+     * occur when the Google Docs transcript file is modified after generation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2.ListTranscriptEntriesResponse> + listTranscriptEntries(com.google.apps.meet.v2.ListTranscriptEntriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTranscriptEntriesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_CONFERENCE_RECORD = 0; + private static final int METHODID_LIST_CONFERENCE_RECORDS = 1; + private static final int METHODID_GET_PARTICIPANT = 2; + private static final int METHODID_LIST_PARTICIPANTS = 3; + private static final int METHODID_GET_PARTICIPANT_SESSION = 4; + private static final int METHODID_LIST_PARTICIPANT_SESSIONS = 5; + private static final int METHODID_GET_RECORDING = 6; + private static final int METHODID_LIST_RECORDINGS = 7; + private static final int METHODID_GET_TRANSCRIPT = 8; + private static final int METHODID_LIST_TRANSCRIPTS = 9; + private static final int METHODID_GET_TRANSCRIPT_ENTRY = 10; + private static final int METHODID_LIST_TRANSCRIPT_ENTRIES = 11; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_CONFERENCE_RECORD: + serviceImpl.getConferenceRecord( + (com.google.apps.meet.v2.GetConferenceRecordRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONFERENCE_RECORDS: + serviceImpl.listConferenceRecords( + (com.google.apps.meet.v2.ListConferenceRecordsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PARTICIPANT: + serviceImpl.getParticipant( + (com.google.apps.meet.v2.GetParticipantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PARTICIPANTS: + serviceImpl.listParticipants( + (com.google.apps.meet.v2.ListParticipantsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PARTICIPANT_SESSION: + serviceImpl.getParticipantSession( + (com.google.apps.meet.v2.GetParticipantSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PARTICIPANT_SESSIONS: + serviceImpl.listParticipantSessions( + (com.google.apps.meet.v2.ListParticipantSessionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RECORDING: + serviceImpl.getRecording( + (com.google.apps.meet.v2.GetRecordingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RECORDINGS: + serviceImpl.listRecordings( + (com.google.apps.meet.v2.ListRecordingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TRANSCRIPT: + serviceImpl.getTranscript( + (com.google.apps.meet.v2.GetTranscriptRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TRANSCRIPTS: + serviceImpl.listTranscripts( + (com.google.apps.meet.v2.ListTranscriptsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TRANSCRIPT_ENTRY: + serviceImpl.getTranscriptEntry( + (com.google.apps.meet.v2.GetTranscriptEntryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TRANSCRIPT_ENTRIES: + serviceImpl.listTranscriptEntries( + (com.google.apps.meet.v2.ListTranscriptEntriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetConferenceRecordMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetConferenceRecordRequest, + com.google.apps.meet.v2.ConferenceRecord>( + service, METHODID_GET_CONFERENCE_RECORD))) + .addMethod( + getListConferenceRecordsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.ListConferenceRecordsRequest, + com.google.apps.meet.v2.ListConferenceRecordsResponse>( + service, METHODID_LIST_CONFERENCE_RECORDS))) + .addMethod( + getGetParticipantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetParticipantRequest, + com.google.apps.meet.v2.Participant>(service, METHODID_GET_PARTICIPANT))) + .addMethod( + getListParticipantsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.ListParticipantsRequest, + com.google.apps.meet.v2.ListParticipantsResponse>( + service, METHODID_LIST_PARTICIPANTS))) + .addMethod( + getGetParticipantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetParticipantSessionRequest, + com.google.apps.meet.v2.ParticipantSession>( + service, METHODID_GET_PARTICIPANT_SESSION))) + .addMethod( + getListParticipantSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.ListParticipantSessionsRequest, + com.google.apps.meet.v2.ListParticipantSessionsResponse>( + service, METHODID_LIST_PARTICIPANT_SESSIONS))) + .addMethod( + getGetRecordingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetRecordingRequest, com.google.apps.meet.v2.Recording>( + service, METHODID_GET_RECORDING))) + .addMethod( + getListRecordingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.ListRecordingsRequest, + com.google.apps.meet.v2.ListRecordingsResponse>( + service, METHODID_LIST_RECORDINGS))) + .addMethod( + getGetTranscriptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetTranscriptRequest, + com.google.apps.meet.v2.Transcript>(service, METHODID_GET_TRANSCRIPT))) + .addMethod( + getListTranscriptsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.ListTranscriptsRequest, + com.google.apps.meet.v2.ListTranscriptsResponse>( + service, METHODID_LIST_TRANSCRIPTS))) + .addMethod( + getGetTranscriptEntryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetTranscriptEntryRequest, + com.google.apps.meet.v2.TranscriptEntry>( + service, METHODID_GET_TRANSCRIPT_ENTRY))) + .addMethod( + getListTranscriptEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.ListTranscriptEntriesRequest, + com.google.apps.meet.v2.ListTranscriptEntriesResponse>( + service, METHODID_LIST_TRANSCRIPT_ENTRIES))) + .build(); + } + + private abstract static class ConferenceRecordsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConferenceRecordsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.apps.meet.v2.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConferenceRecordsService"); + } + } + + private static final class ConferenceRecordsServiceFileDescriptorSupplier + extends ConferenceRecordsServiceBaseDescriptorSupplier { + ConferenceRecordsServiceFileDescriptorSupplier() {} + } + + private static final class ConferenceRecordsServiceMethodDescriptorSupplier + extends ConferenceRecordsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ConferenceRecordsServiceMethodDescriptorSupplier(java.lang.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 (ConferenceRecordsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConferenceRecordsServiceFileDescriptorSupplier()) + .addMethod(getGetConferenceRecordMethod()) + .addMethod(getListConferenceRecordsMethod()) + .addMethod(getGetParticipantMethod()) + .addMethod(getListParticipantsMethod()) + .addMethod(getGetParticipantSessionMethod()) + .addMethod(getListParticipantSessionsMethod()) + .addMethod(getGetRecordingMethod()) + .addMethod(getListRecordingsMethod()) + .addMethod(getGetTranscriptMethod()) + .addMethod(getListTranscriptsMethod()) + .addMethod(getGetTranscriptEntryMethod()) + .addMethod(getListTranscriptEntriesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java new file mode 100644 index 000000000000..5996a712fc31 --- /dev/null +++ b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java @@ -0,0 +1,693 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * REST API for services dealing with spaces.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/apps/meet/v2/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpacesServiceGrpc { + + private SpacesServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.apps.meet.v2.SpacesService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.CreateSpaceRequest, com.google.apps.meet.v2.Space> + getCreateSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpace", + requestType = com.google.apps.meet.v2.CreateSpaceRequest.class, + responseType = com.google.apps.meet.v2.Space.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.CreateSpaceRequest, com.google.apps.meet.v2.Space> + getCreateSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.CreateSpaceRequest, com.google.apps.meet.v2.Space> + getCreateSpaceMethod; + if ((getCreateSpaceMethod = SpacesServiceGrpc.getCreateSpaceMethod) == null) { + synchronized (SpacesServiceGrpc.class) { + if ((getCreateSpaceMethod = SpacesServiceGrpc.getCreateSpaceMethod) == null) { + SpacesServiceGrpc.getCreateSpaceMethod = + getCreateSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.CreateSpaceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.Space.getDefaultInstance())) + .setSchemaDescriptor(new SpacesServiceMethodDescriptorSupplier("CreateSpace")) + .build(); + } + } + } + return getCreateSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetSpaceRequest, com.google.apps.meet.v2.Space> + getGetSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpace", + requestType = com.google.apps.meet.v2.GetSpaceRequest.class, + responseType = com.google.apps.meet.v2.Space.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.GetSpaceRequest, com.google.apps.meet.v2.Space> + getGetSpaceMethod() { + io.grpc.MethodDescriptor + getGetSpaceMethod; + if ((getGetSpaceMethod = SpacesServiceGrpc.getGetSpaceMethod) == null) { + synchronized (SpacesServiceGrpc.class) { + if ((getGetSpaceMethod = SpacesServiceGrpc.getGetSpaceMethod) == null) { + SpacesServiceGrpc.getGetSpaceMethod = + getGetSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.GetSpaceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.Space.getDefaultInstance())) + .setSchemaDescriptor(new SpacesServiceMethodDescriptorSupplier("GetSpace")) + .build(); + } + } + } + return getGetSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.UpdateSpaceRequest, com.google.apps.meet.v2.Space> + getUpdateSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpace", + requestType = com.google.apps.meet.v2.UpdateSpaceRequest.class, + responseType = com.google.apps.meet.v2.Space.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.UpdateSpaceRequest, com.google.apps.meet.v2.Space> + getUpdateSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.UpdateSpaceRequest, com.google.apps.meet.v2.Space> + getUpdateSpaceMethod; + if ((getUpdateSpaceMethod = SpacesServiceGrpc.getUpdateSpaceMethod) == null) { + synchronized (SpacesServiceGrpc.class) { + if ((getUpdateSpaceMethod = SpacesServiceGrpc.getUpdateSpaceMethod) == null) { + SpacesServiceGrpc.getUpdateSpaceMethod = + getUpdateSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.UpdateSpaceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.Space.getDefaultInstance())) + .setSchemaDescriptor(new SpacesServiceMethodDescriptorSupplier("UpdateSpace")) + .build(); + } + } + } + return getUpdateSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.apps.meet.v2.EndActiveConferenceRequest, com.google.protobuf.Empty> + getEndActiveConferenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EndActiveConference", + requestType = com.google.apps.meet.v2.EndActiveConferenceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.apps.meet.v2.EndActiveConferenceRequest, com.google.protobuf.Empty> + getEndActiveConferenceMethod() { + io.grpc.MethodDescriptor< + com.google.apps.meet.v2.EndActiveConferenceRequest, com.google.protobuf.Empty> + getEndActiveConferenceMethod; + if ((getEndActiveConferenceMethod = SpacesServiceGrpc.getEndActiveConferenceMethod) == null) { + synchronized (SpacesServiceGrpc.class) { + if ((getEndActiveConferenceMethod = SpacesServiceGrpc.getEndActiveConferenceMethod) + == null) { + SpacesServiceGrpc.getEndActiveConferenceMethod = + getEndActiveConferenceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "EndActiveConference")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.apps.meet.v2.EndActiveConferenceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SpacesServiceMethodDescriptorSupplier("EndActiveConference")) + .build(); + } + } + } + return getEndActiveConferenceMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpacesServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpacesServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpacesServiceStub(channel, callOptions); + } + }; + return SpacesServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpacesServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpacesServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpacesServiceBlockingStub(channel, callOptions); + } + }; + return SpacesServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpacesServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpacesServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpacesServiceFutureStub(channel, callOptions); + } + }; + return SpacesServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * REST API for services dealing with spaces.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + default void createSpace( + com.google.apps.meet.v2.CreateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a space by `space_id` or `meeting_code`.
+     * 
+ */ + default void getSpace( + com.google.apps.meet.v2.GetSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + default void updateSpace( + com.google.apps.meet.v2.UpdateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Ends an active conference (if there's one).
+     * 
+ */ + default void endActiveConference( + com.google.apps.meet.v2.EndActiveConferenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEndActiveConferenceMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SpacesService. + * + *
+   * REST API for services dealing with spaces.
+   * 
+ */ + public abstract static class SpacesServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SpacesServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SpacesService. + * + *
+   * REST API for services dealing with spaces.
+   * 
+ */ + public static final class SpacesServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SpacesServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpacesServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpacesServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public void createSpace( + com.google.apps.meet.v2.CreateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a space by `space_id` or `meeting_code`.
+     * 
+ */ + public void getSpace( + com.google.apps.meet.v2.GetSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpaceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public void updateSpace( + com.google.apps.meet.v2.UpdateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Ends an active conference (if there's one).
+     * 
+ */ + public void endActiveConference( + com.google.apps.meet.v2.EndActiveConferenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEndActiveConferenceMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SpacesService. + * + *
+   * REST API for services dealing with spaces.
+   * 
+ */ + public static final class SpacesServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpacesServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpacesServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpacesServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public com.google.apps.meet.v2.Space createSpace( + com.google.apps.meet.v2.CreateSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a space by `space_id` or `meeting_code`.
+     * 
+ */ + public com.google.apps.meet.v2.Space getSpace(com.google.apps.meet.v2.GetSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public com.google.apps.meet.v2.Space updateSpace( + com.google.apps.meet.v2.UpdateSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Ends an active conference (if there's one).
+     * 
+ */ + public com.google.protobuf.Empty endActiveConference( + com.google.apps.meet.v2.EndActiveConferenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEndActiveConferenceMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SpacesService. + * + *
+   * REST API for services dealing with spaces.
+   * 
+ */ + public static final class SpacesServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpacesServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpacesServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpacesServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpace(com.google.apps.meet.v2.CreateSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a space by `space_id` or `meeting_code`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getSpace(com.google.apps.meet.v2.GetSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpace(com.google.apps.meet.v2.UpdateSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Ends an active conference (if there's one).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + endActiveConference(com.google.apps.meet.v2.EndActiveConferenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEndActiveConferenceMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SPACE = 0; + private static final int METHODID_GET_SPACE = 1; + private static final int METHODID_UPDATE_SPACE = 2; + private static final int METHODID_END_ACTIVE_CONFERENCE = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SPACE: + serviceImpl.createSpace( + (com.google.apps.meet.v2.CreateSpaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPACE: + serviceImpl.getSpace( + (com.google.apps.meet.v2.GetSpaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPACE: + serviceImpl.updateSpace( + (com.google.apps.meet.v2.UpdateSpaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_END_ACTIVE_CONFERENCE: + serviceImpl.endActiveConference( + (com.google.apps.meet.v2.EndActiveConferenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.CreateSpaceRequest, com.google.apps.meet.v2.Space>( + service, METHODID_CREATE_SPACE))) + .addMethod( + getGetSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.GetSpaceRequest, com.google.apps.meet.v2.Space>( + service, METHODID_GET_SPACE))) + .addMethod( + getUpdateSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.UpdateSpaceRequest, com.google.apps.meet.v2.Space>( + service, METHODID_UPDATE_SPACE))) + .addMethod( + getEndActiveConferenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2.EndActiveConferenceRequest, com.google.protobuf.Empty>( + service, METHODID_END_ACTIVE_CONFERENCE))) + .build(); + } + + private abstract static class SpacesServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpacesServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.apps.meet.v2.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SpacesService"); + } + } + + private static final class SpacesServiceFileDescriptorSupplier + extends SpacesServiceBaseDescriptorSupplier { + SpacesServiceFileDescriptorSupplier() {} + } + + private static final class SpacesServiceMethodDescriptorSupplier + extends SpacesServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SpacesServiceMethodDescriptorSupplier(java.lang.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 (SpacesServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpacesServiceFileDescriptorSupplier()) + .addMethod(getCreateSpaceMethod()) + .addMethod(getGetSpaceMethod()) + .addMethod(getUpdateSpaceMethod()) + .addMethod(getEndActiveConferenceMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java index 166bd47f104f..90089a470a8b 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java index 60da56baa701..b962a56b9ef9 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-meet/pom.xml b/java-meet/pom.xml index 8b653879ccd2..197a88c81f41 100644 --- a/java-meet/pom.xml +++ b/java-meet/pom.xml @@ -31,6 +31,16 @@ google-cloud-meet 0.2.0-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-meet-v2 + 0.2.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-meet-v2 + 0.2.0-SNAPSHOT + com.google.api.grpc grpc-google-cloud-meet-v2beta @@ -47,7 +57,9 @@ google-cloud-meet grpc-google-cloud-meet-v2beta + grpc-google-cloud-meet-v2 proto-google-cloud-meet-v2beta + proto-google-cloud-meet-v2 google-cloud-meet-bom diff --git a/java-meet/proto-google-cloud-meet-v2/clirr-ignored-differences.xml b/java-meet/proto-google-cloud-meet-v2/clirr-ignored-differences.xml new file mode 100644 index 000000000000..bda48c23b61e --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/apps/meet/v2/*OrBuilder + * get*(*) + + + 7012 + com/google/apps/meet/v2/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/apps/meet/v2/*OrBuilder + boolean has*(*) + + diff --git a/java-meet/proto-google-cloud-meet-v2/pom.xml b/java-meet/proto-google-cloud-meet-v2/pom.xml new file mode 100644 index 000000000000..32aa906304ec --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-meet-v2 + 0.2.0-SNAPSHOT + proto-google-cloud-meet-v2 + Proto library for google-cloud-meet + + com.google.cloud + google-cloud-meet-parent + 0.2.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConference.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConference.java new file mode 100644 index 000000000000..b5df71edd1d8 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConference.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Active conference.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ActiveConference} + */ +public final class ActiveConference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ActiveConference) + ActiveConferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveConference.newBuilder() to construct. + private ActiveConference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ActiveConference() { + conferenceRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ActiveConference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ActiveConference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ActiveConference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ActiveConference.class, + com.google.apps.meet.v2.ActiveConference.Builder.class); + } + + public static final int CONFERENCE_RECORD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object conferenceRecord_ = ""; + /** + * + * + *
+   * Output only. Reference to 'ConferenceRecord' resource.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The conferenceRecord. + */ + @java.lang.Override + public java.lang.String getConferenceRecord() { + java.lang.Object ref = conferenceRecord_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conferenceRecord_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Reference to 'ConferenceRecord' resource.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conferenceRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConferenceRecordBytes() { + java.lang.Object ref = conferenceRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conferenceRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conferenceRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conferenceRecord_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conferenceRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conferenceRecord_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ActiveConference)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ActiveConference other = (com.google.apps.meet.v2.ActiveConference) obj; + + if (!getConferenceRecord().equals(other.getConferenceRecord())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFERENCE_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getConferenceRecord().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ActiveConference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ActiveConference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ActiveConference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ActiveConference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Active conference.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ActiveConference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ActiveConference) + com.google.apps.meet.v2.ActiveConferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ActiveConference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ActiveConference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ActiveConference.class, + com.google.apps.meet.v2.ActiveConference.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ActiveConference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conferenceRecord_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ActiveConference_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ActiveConference getDefaultInstanceForType() { + return com.google.apps.meet.v2.ActiveConference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ActiveConference build() { + com.google.apps.meet.v2.ActiveConference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ActiveConference buildPartial() { + com.google.apps.meet.v2.ActiveConference result = + new com.google.apps.meet.v2.ActiveConference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ActiveConference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conferenceRecord_ = conferenceRecord_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ActiveConference) { + return mergeFrom((com.google.apps.meet.v2.ActiveConference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ActiveConference other) { + if (other == com.google.apps.meet.v2.ActiveConference.getDefaultInstance()) return this; + if (!other.getConferenceRecord().isEmpty()) { + conferenceRecord_ = other.conferenceRecord_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + conferenceRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object conferenceRecord_ = ""; + /** + * + * + *
+     * Output only. Reference to 'ConferenceRecord' resource.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The conferenceRecord. + */ + public java.lang.String getConferenceRecord() { + java.lang.Object ref = conferenceRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conferenceRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Reference to 'ConferenceRecord' resource.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conferenceRecord. + */ + public com.google.protobuf.ByteString getConferenceRecordBytes() { + java.lang.Object ref = conferenceRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conferenceRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Reference to 'ConferenceRecord' resource.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The conferenceRecord to set. + * @return This builder for chaining. + */ + public Builder setConferenceRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conferenceRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reference to 'ConferenceRecord' resource.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearConferenceRecord() { + conferenceRecord_ = getDefaultInstance().getConferenceRecord(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reference to 'ConferenceRecord' resource.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for conferenceRecord to set. + * @return This builder for chaining. + */ + public Builder setConferenceRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conferenceRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ActiveConference) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ActiveConference) + private static final com.google.apps.meet.v2.ActiveConference DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ActiveConference(); + } + + public static com.google.apps.meet.v2.ActiveConference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveConference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ActiveConference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConferenceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConferenceOrBuilder.java new file mode 100644 index 000000000000..6940ccd89cb0 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ActiveConferenceOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ActiveConferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ActiveConference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Reference to 'ConferenceRecord' resource.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The conferenceRecord. + */ + java.lang.String getConferenceRecord(); + /** + * + * + *
+   * Output only. Reference to 'ConferenceRecord' resource.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * + * string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conferenceRecord. + */ + com.google.protobuf.ByteString getConferenceRecordBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUser.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUser.java new file mode 100644 index 000000000000..ea5d42e8b86e --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUser.java @@ -0,0 +1,622 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * User who joins anonymously (meaning not signed into a Google Account).
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.AnonymousUser} + */ +public final class AnonymousUser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.AnonymousUser) + AnonymousUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnonymousUser.newBuilder() to construct. + private AnonymousUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnonymousUser() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnonymousUser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_AnonymousUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_AnonymousUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.AnonymousUser.class, + com.google.apps.meet.v2.AnonymousUser.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Output only. User provided name when they join a conference anonymously.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. User provided name when they join a conference anonymously.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.AnonymousUser)) { + return super.equals(obj); + } + com.google.apps.meet.v2.AnonymousUser other = (com.google.apps.meet.v2.AnonymousUser) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.AnonymousUser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.AnonymousUser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.AnonymousUser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.AnonymousUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User who joins anonymously (meaning not signed into a Google Account).
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.AnonymousUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.AnonymousUser) + com.google.apps.meet.v2.AnonymousUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_AnonymousUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_AnonymousUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.AnonymousUser.class, + com.google.apps.meet.v2.AnonymousUser.Builder.class); + } + + // Construct using com.google.apps.meet.v2.AnonymousUser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_AnonymousUser_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUser getDefaultInstanceForType() { + return com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUser build() { + com.google.apps.meet.v2.AnonymousUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUser buildPartial() { + com.google.apps.meet.v2.AnonymousUser result = + new com.google.apps.meet.v2.AnonymousUser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.AnonymousUser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.AnonymousUser) { + return mergeFrom((com.google.apps.meet.v2.AnonymousUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.AnonymousUser other) { + if (other == com.google.apps.meet.v2.AnonymousUser.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. User provided name when they join a conference anonymously.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. User provided name when they join a conference anonymously.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. User provided name when they join a conference anonymously.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. User provided name when they join a conference anonymously.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. User provided name when they join a conference anonymously.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.AnonymousUser) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.AnonymousUser) + private static final com.google.apps.meet.v2.AnonymousUser DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.AnonymousUser(); + } + + public static com.google.apps.meet.v2.AnonymousUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnonymousUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUserOrBuilder.java new file mode 100644 index 000000000000..3a18029e9b65 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/AnonymousUserOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface AnonymousUserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.AnonymousUser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. User provided name when they join a conference anonymously.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. User provided name when they join a conference anonymously.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecord.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecord.java new file mode 100644 index 000000000000..2b37b1656630 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecord.java @@ -0,0 +1,1709 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Single instance of a meeting held in a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ConferenceRecord} + */ +public final class ConferenceRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ConferenceRecord) + ConferenceRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConferenceRecord.newBuilder() to construct. + private ConferenceRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConferenceRecord() { + name_ = ""; + space_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConferenceRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ConferenceRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ConferenceRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ConferenceRecord.class, + com.google.apps.meet.v2.ConferenceRecord.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Resource name of the conference record.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier. Resource name of the conference record.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Timestamp when the conference started. Always set.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the conference started. Always set.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the conference started. Always set.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Timestamp when the conference ended.
+   * Set for past conferences. Unset if the conference is ongoing.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the conference ended.
+   * Set for past conferences. Unset if the conference is ongoing.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the conference ended.
+   * Set for past conferences. Unset if the conference is ongoing.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int SPACE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object space_ = ""; + /** + * + * + *
+   * Output only. The space where the conference was held.
+   * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + @java.lang.Override + public java.lang.String getSpace() { + java.lang.Object ref = space_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + space_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The space where the conference was held.
+   * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceBytes() { + java.lang.Object ref = space_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + space_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(space_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, space_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(space_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, space_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ConferenceRecord)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ConferenceRecord other = (com.google.apps.meet.v2.ConferenceRecord) obj; + + if (!getName().equals(other.getName())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getSpace().equals(other.getSpace())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ConferenceRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ConferenceRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Single instance of a meeting held in a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ConferenceRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ConferenceRecord) + com.google.apps.meet.v2.ConferenceRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ConferenceRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ConferenceRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ConferenceRecord.class, + com.google.apps.meet.v2.ConferenceRecord.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ConferenceRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + space_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ConferenceRecord_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ConferenceRecord getDefaultInstanceForType() { + return com.google.apps.meet.v2.ConferenceRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ConferenceRecord build() { + com.google.apps.meet.v2.ConferenceRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ConferenceRecord buildPartial() { + com.google.apps.meet.v2.ConferenceRecord result = + new com.google.apps.meet.v2.ConferenceRecord(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ConferenceRecord result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.space_ = space_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ConferenceRecord) { + return mergeFrom((com.google.apps.meet.v2.ConferenceRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ConferenceRecord other) { + if (other == com.google.apps.meet.v2.ConferenceRecord.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getSpace().isEmpty()) { + space_ = other.space_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + space_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. Resource name of the conference record.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier. Resource name of the conference record.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier. Resource name of the conference record.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Resource name of the conference record.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Resource name of the conference record.
+     * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+     * is a unique ID for each instance of a call within a space.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the conference started. Always set.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the conference ended.
+     * Set for past conferences. Unset if the conference is ongoing.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000008); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object space_ = ""; + /** + * + * + *
+     * Output only. The space where the conference was held.
+     * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + public java.lang.String getSpace() { + java.lang.Object ref = space_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + space_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The space where the conference was held.
+     * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + public com.google.protobuf.ByteString getSpaceBytes() { + java.lang.Object ref = space_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + space_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The space where the conference was held.
+     * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The space to set. + * @return This builder for chaining. + */ + public Builder setSpace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The space where the conference was held.
+     * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSpace() { + space_ = getDefaultInstance().getSpace(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The space where the conference was held.
+     * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for space to set. + * @return This builder for chaining. + */ + public Builder setSpaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + space_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ConferenceRecord) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ConferenceRecord) + private static final com.google.apps.meet.v2.ConferenceRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ConferenceRecord(); + } + + public static com.google.apps.meet.v2.ConferenceRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConferenceRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ConferenceRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java new file mode 100644 index 000000000000..60a2642abe2c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConferenceRecordName implements ResourceName { + private static final PathTemplate CONFERENCE_RECORD = + PathTemplate.createWithoutUrlEncoding("conferenceRecords/{conference_record}"); + private volatile Map fieldValuesMap; + private final String conferenceRecord; + + @Deprecated + protected ConferenceRecordName() { + conferenceRecord = null; + } + + private ConferenceRecordName(Builder builder) { + conferenceRecord = Preconditions.checkNotNull(builder.getConferenceRecord()); + } + + public String getConferenceRecord() { + return conferenceRecord; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConferenceRecordName of(String conferenceRecord) { + return newBuilder().setConferenceRecord(conferenceRecord).build(); + } + + public static String format(String conferenceRecord) { + return newBuilder().setConferenceRecord(conferenceRecord).build().toString(); + } + + public static ConferenceRecordName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + CONFERENCE_RECORD.validatedMatch( + formattedString, "ConferenceRecordName.parse: formattedString not in valid format"); + return of(matchMap.get("conference_record")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConferenceRecordName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return CONFERENCE_RECORD.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (conferenceRecord != null) { + fieldMapBuilder.put("conference_record", conferenceRecord); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return CONFERENCE_RECORD.instantiate("conference_record", conferenceRecord); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConferenceRecordName that = ((ConferenceRecordName) o); + return Objects.equals(this.conferenceRecord, that.conferenceRecord); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(conferenceRecord); + return h; + } + + /** Builder for conferenceRecords/{conference_record}. */ + public static class Builder { + private String conferenceRecord; + + protected Builder() {} + + public String getConferenceRecord() { + return conferenceRecord; + } + + public Builder setConferenceRecord(String conferenceRecord) { + this.conferenceRecord = conferenceRecord; + return this; + } + + private Builder(ConferenceRecordName conferenceRecordName) { + this.conferenceRecord = conferenceRecordName.conferenceRecord; + } + + public ConferenceRecordName build() { + return new ConferenceRecordName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordOrBuilder.java new file mode 100644 index 000000000000..83f8bdb4b8d9 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ConferenceRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ConferenceRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the conference record.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Resource name of the conference record.
+   * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
+   * is a unique ID for each instance of a call within a space.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when the conference started. Always set.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the conference started. Always set.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the conference started. Always set.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the conference ended.
+   * Set for past conferences. Unset if the conference is ongoing.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the conference ended.
+   * Set for past conferences. Unset if the conference is ongoing.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the conference ended.
+   * Set for past conferences. Unset if the conference is ongoing.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The space where the conference was held.
+   * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + java.lang.String getSpace(); + /** + * + * + *
+   * Output only. The space where the conference was held.
+   * 
+ * + * + * string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + com.google.protobuf.ByteString getSpaceBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequest.java new file mode 100644 index 000000000000..6ea0ea98892a --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequest.java @@ -0,0 +1,724 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to create a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.CreateSpaceRequest} + */ +public final class CreateSpaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.CreateSpaceRequest) + CreateSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSpaceRequest.newBuilder() to construct. + private CreateSpaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSpaceRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSpaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_CreateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_CreateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.CreateSpaceRequest.class, + com.google.apps.meet.v2.CreateSpaceRequest.Builder.class); + } + + private int bitField0_; + public static final int SPACE_FIELD_NUMBER = 1; + private com.google.apps.meet.v2.Space space_; + /** + * + * + *
+   * Space to be created. As of May 2023, the input space can be empty. Later on
+   * the input space can be non-empty when space configuration is introduced.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1; + * + * @return Whether the space field is set. + */ + @java.lang.Override + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Space to be created. As of May 2023, the input space can be empty. Later on
+   * the input space can be non-empty when space configuration is introduced.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1; + * + * @return The space. + */ + @java.lang.Override + public com.google.apps.meet.v2.Space getSpace() { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } + /** + * + * + *
+   * Space to be created. As of May 2023, the input space can be empty. Later on
+   * the input space can be non-empty when space configuration is introduced.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder() { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSpace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.CreateSpaceRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.CreateSpaceRequest other = + (com.google.apps.meet.v2.CreateSpaceRequest) obj; + + if (hasSpace() != other.hasSpace()) return false; + if (hasSpace()) { + if (!getSpace().equals(other.getSpace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSpace()) { + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.CreateSpaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to create a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.CreateSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.CreateSpaceRequest) + com.google.apps.meet.v2.CreateSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_CreateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_CreateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.CreateSpaceRequest.class, + com.google.apps.meet.v2.CreateSpaceRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.CreateSpaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSpaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_CreateSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.CreateSpaceRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.CreateSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.CreateSpaceRequest build() { + com.google.apps.meet.v2.CreateSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.CreateSpaceRequest buildPartial() { + com.google.apps.meet.v2.CreateSpaceRequest result = + new com.google.apps.meet.v2.CreateSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.CreateSpaceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.CreateSpaceRequest) { + return mergeFrom((com.google.apps.meet.v2.CreateSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.CreateSpaceRequest other) { + if (other == com.google.apps.meet.v2.CreateSpaceRequest.getDefaultInstance()) return this; + if (other.hasSpace()) { + mergeSpace(other.getSpace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSpaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.apps.meet.v2.Space space_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.Space, + com.google.apps.meet.v2.Space.Builder, + com.google.apps.meet.v2.SpaceOrBuilder> + spaceBuilder_; + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + * + * @return Whether the space field is set. + */ + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + * + * @return The space. + */ + public com.google.apps.meet.v2.Space getSpace() { + if (spaceBuilder_ == null) { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } else { + return spaceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + public Builder setSpace(com.google.apps.meet.v2.Space value) { + if (spaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + } else { + spaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + public Builder setSpace(com.google.apps.meet.v2.Space.Builder builderForValue) { + if (spaceBuilder_ == null) { + space_ = builderForValue.build(); + } else { + spaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + public Builder mergeSpace(com.google.apps.meet.v2.Space value) { + if (spaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && space_ != null + && space_ != com.google.apps.meet.v2.Space.getDefaultInstance()) { + getSpaceBuilder().mergeFrom(value); + } else { + space_ = value; + } + } else { + spaceBuilder_.mergeFrom(value); + } + if (space_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + public Builder clearSpace() { + bitField0_ = (bitField0_ & ~0x00000001); + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + public com.google.apps.meet.v2.Space.Builder getSpaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSpaceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + public com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder() { + if (spaceBuilder_ != null) { + return spaceBuilder_.getMessageOrBuilder(); + } else { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } + } + /** + * + * + *
+     * Space to be created. As of May 2023, the input space can be empty. Later on
+     * the input space can be non-empty when space configuration is introduced.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.Space, + com.google.apps.meet.v2.Space.Builder, + com.google.apps.meet.v2.SpaceOrBuilder> + getSpaceFieldBuilder() { + if (spaceBuilder_ == null) { + spaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.Space, + com.google.apps.meet.v2.Space.Builder, + com.google.apps.meet.v2.SpaceOrBuilder>( + getSpace(), getParentForChildren(), isClean()); + space_ = null; + } + return spaceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.CreateSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.CreateSpaceRequest) + private static final com.google.apps.meet.v2.CreateSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.CreateSpaceRequest(); + } + + public static com.google.apps.meet.v2.CreateSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.CreateSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..23759371ec53 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/CreateSpaceRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface CreateSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.CreateSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Space to be created. As of May 2023, the input space can be empty. Later on
+   * the input space can be non-empty when space configuration is introduced.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1; + * + * @return Whether the space field is set. + */ + boolean hasSpace(); + /** + * + * + *
+   * Space to be created. As of May 2023, the input space can be empty. Later on
+   * the input space can be non-empty when space configuration is introduced.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1; + * + * @return The space. + */ + com.google.apps.meet.v2.Space getSpace(); + /** + * + * + *
+   * Space to be created. As of May 2023, the input space can be empty. Later on
+   * the input space can be non-empty when space configuration is introduced.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1; + */ + com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestination.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestination.java new file mode 100644 index 000000000000..b464ab2f55f9 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestination.java @@ -0,0 +1,847 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Google Docs location where the transcript file is saved.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.DocsDestination} + */ +public final class DocsDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.DocsDestination) + DocsDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocsDestination.newBuilder() to construct. + private DocsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocsDestination() { + document_ = ""; + exportUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocsDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DocsDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DocsDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.DocsDestination.class, + com.google.apps.meet.v2.DocsDestination.Builder.class); + } + + public static final int DOCUMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; + /** + * + * + *
+   * Output only. The document ID for the underlying Google Docs transcript
+   * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+   * `documents.get` method of the Google Docs API
+   * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+   * fetch the content.
+   * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The document ID for the underlying Google Docs transcript
+   * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+   * `documents.get` method of the Google Docs API
+   * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+   * fetch the content.
+   * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPORT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object exportUri_ = ""; + /** + * + * + *
+   * Output only. URI for the Google Docs transcript file. Use
+   * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+   * transcript in the browser.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The exportUri. + */ + @java.lang.Override + public java.lang.String getExportUri() { + java.lang.Object ref = exportUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exportUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. URI for the Google Docs transcript file. Use
+   * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+   * transcript in the browser.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for exportUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExportUriBytes() { + java.lang.Object ref = exportUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, document_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exportUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, document_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exportUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.DocsDestination)) { + return super.equals(obj); + } + com.google.apps.meet.v2.DocsDestination other = (com.google.apps.meet.v2.DocsDestination) obj; + + if (!getDocument().equals(other.getDocument())) return false; + if (!getExportUri().equals(other.getExportUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + hash = (37 * hash) + EXPORT_URI_FIELD_NUMBER; + hash = (53 * hash) + getExportUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.DocsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.DocsDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.DocsDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.DocsDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Google Docs location where the transcript file is saved.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.DocsDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.DocsDestination) + com.google.apps.meet.v2.DocsDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DocsDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DocsDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.DocsDestination.class, + com.google.apps.meet.v2.DocsDestination.Builder.class); + } + + // Construct using com.google.apps.meet.v2.DocsDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = ""; + exportUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DocsDestination_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.DocsDestination getDefaultInstanceForType() { + return com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.DocsDestination build() { + com.google.apps.meet.v2.DocsDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.DocsDestination buildPartial() { + com.google.apps.meet.v2.DocsDestination result = + new com.google.apps.meet.v2.DocsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.DocsDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = document_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exportUri_ = exportUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.DocsDestination) { + return mergeFrom((com.google.apps.meet.v2.DocsDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.DocsDestination other) { + if (other == com.google.apps.meet.v2.DocsDestination.getDefaultInstance()) return this; + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExportUri().isEmpty()) { + exportUri_ = other.exportUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + exportUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object document_ = ""; + /** + * + * + *
+     * Output only. The document ID for the underlying Google Docs transcript
+     * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+     * `documents.get` method of the Google Docs API
+     * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+     * fetch the content.
+     * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The document ID for the underlying Google Docs transcript
+     * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+     * `documents.get` method of the Google Docs API
+     * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+     * fetch the content.
+     * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The document ID for the underlying Google Docs transcript
+     * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+     * `documents.get` method of the Google Docs API
+     * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+     * fetch the content.
+     * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The document ID for the underlying Google Docs transcript
+     * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+     * `documents.get` method of the Google Docs API
+     * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+     * fetch the content.
+     * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The document ID for the underlying Google Docs transcript
+     * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+     * `documents.get` method of the Google Docs API
+     * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+     * fetch the content.
+     * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object exportUri_ = ""; + /** + * + * + *
+     * Output only. URI for the Google Docs transcript file. Use
+     * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+     * transcript in the browser.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The exportUri. + */ + public java.lang.String getExportUri() { + java.lang.Object ref = exportUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exportUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. URI for the Google Docs transcript file. Use
+     * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+     * transcript in the browser.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for exportUri. + */ + public com.google.protobuf.ByteString getExportUriBytes() { + java.lang.Object ref = exportUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. URI for the Google Docs transcript file. Use
+     * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+     * transcript in the browser.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The exportUri to set. + * @return This builder for chaining. + */ + public Builder setExportUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exportUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URI for the Google Docs transcript file. Use
+     * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+     * transcript in the browser.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExportUri() { + exportUri_ = getDefaultInstance().getExportUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URI for the Google Docs transcript file. Use
+     * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+     * transcript in the browser.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for exportUri to set. + * @return This builder for chaining. + */ + public Builder setExportUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exportUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.DocsDestination) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.DocsDestination) + private static final com.google.apps.meet.v2.DocsDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.DocsDestination(); + } + + public static com.google.apps.meet.v2.DocsDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.DocsDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestinationOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestinationOrBuilder.java new file mode 100644 index 000000000000..48f4e90c39cd --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DocsDestinationOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface DocsDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.DocsDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The document ID for the underlying Google Docs transcript
+   * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+   * `documents.get` method of the Google Docs API
+   * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+   * fetch the content.
+   * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The document. + */ + java.lang.String getDocument(); + /** + * + * + *
+   * Output only. The document ID for the underlying Google Docs transcript
+   * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the
+   * `documents.get` method of the Google Docs API
+   * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to
+   * fetch the content.
+   * 
+ * + * string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); + + /** + * + * + *
+   * Output only. URI for the Google Docs transcript file. Use
+   * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+   * transcript in the browser.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The exportUri. + */ + java.lang.String getExportUri(); + /** + * + * + *
+   * Output only. URI for the Google Docs transcript file. Use
+   * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the
+   * transcript in the browser.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for exportUri. + */ + com.google.protobuf.ByteString getExportUriBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestination.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestination.java new file mode 100644 index 000000000000..38db36dead9e --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestination.java @@ -0,0 +1,840 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Export location where a recording file is saved in Google Drive.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.DriveDestination} + */ +public final class DriveDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.DriveDestination) + DriveDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DriveDestination.newBuilder() to construct. + private DriveDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DriveDestination() { + file_ = ""; + exportUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DriveDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DriveDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DriveDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.DriveDestination.class, + com.google.apps.meet.v2.DriveDestination.Builder.class); + } + + public static final int FILE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object file_ = ""; + /** + * + * + *
+   * Output only. The `fileId` for the underlying MP4 file. For example,
+   * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+   * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+   * the blob. For more information, see
+   * https://developers.google.com/drive/api/v3/reference/files/get.
+   * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The file. + */ + @java.lang.Override + public java.lang.String getFile() { + java.lang.Object ref = file_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + file_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The `fileId` for the underlying MP4 file. For example,
+   * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+   * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+   * the blob. For more information, see
+   * https://developers.google.com/drive/api/v3/reference/files/get.
+   * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for file. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPORT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object exportUri_ = ""; + /** + * + * + *
+   * Output only. Link used to play back the recording file in the browser. For
+   * example, `https://drive.google.com/file/d/{$fileId}/view`.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The exportUri. + */ + @java.lang.Override + public java.lang.String getExportUri() { + java.lang.Object ref = exportUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exportUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Link used to play back the recording file in the browser. For
+   * example, `https://drive.google.com/file/d/{$fileId}/view`.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for exportUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExportUriBytes() { + java.lang.Object ref = exportUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(file_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exportUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(file_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, file_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exportUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exportUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.DriveDestination)) { + return super.equals(obj); + } + com.google.apps.meet.v2.DriveDestination other = (com.google.apps.meet.v2.DriveDestination) obj; + + if (!getFile().equals(other.getFile())) return false; + if (!getExportUri().equals(other.getExportUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + hash = (37 * hash) + EXPORT_URI_FIELD_NUMBER; + hash = (53 * hash) + getExportUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.DriveDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.DriveDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.DriveDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.DriveDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Export location where a recording file is saved in Google Drive.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.DriveDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.DriveDestination) + com.google.apps.meet.v2.DriveDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DriveDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DriveDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.DriveDestination.class, + com.google.apps.meet.v2.DriveDestination.Builder.class); + } + + // Construct using com.google.apps.meet.v2.DriveDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + file_ = ""; + exportUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_DriveDestination_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.DriveDestination getDefaultInstanceForType() { + return com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.DriveDestination build() { + com.google.apps.meet.v2.DriveDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.DriveDestination buildPartial() { + com.google.apps.meet.v2.DriveDestination result = + new com.google.apps.meet.v2.DriveDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.DriveDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.file_ = file_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exportUri_ = exportUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.DriveDestination) { + return mergeFrom((com.google.apps.meet.v2.DriveDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.DriveDestination other) { + if (other == com.google.apps.meet.v2.DriveDestination.getDefaultInstance()) return this; + if (!other.getFile().isEmpty()) { + file_ = other.file_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExportUri().isEmpty()) { + exportUri_ = other.exportUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + file_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + exportUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object file_ = ""; + /** + * + * + *
+     * Output only. The `fileId` for the underlying MP4 file. For example,
+     * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+     * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+     * the blob. For more information, see
+     * https://developers.google.com/drive/api/v3/reference/files/get.
+     * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The file. + */ + public java.lang.String getFile() { + java.lang.Object ref = file_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + file_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The `fileId` for the underlying MP4 file. For example,
+     * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+     * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+     * the blob. For more information, see
+     * https://developers.google.com/drive/api/v3/reference/files/get.
+     * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for file. + */ + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The `fileId` for the underlying MP4 file. For example,
+     * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+     * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+     * the blob. For more information, see
+     * https://developers.google.com/drive/api/v3/reference/files/get.
+     * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The file to set. + * @return This builder for chaining. + */ + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The `fileId` for the underlying MP4 file. For example,
+     * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+     * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+     * the blob. For more information, see
+     * https://developers.google.com/drive/api/v3/reference/files/get.
+     * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFile() { + file_ = getDefaultInstance().getFile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The `fileId` for the underlying MP4 file. For example,
+     * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+     * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+     * the blob. For more information, see
+     * https://developers.google.com/drive/api/v3/reference/files/get.
+     * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for file to set. + * @return This builder for chaining. + */ + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + file_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object exportUri_ = ""; + /** + * + * + *
+     * Output only. Link used to play back the recording file in the browser. For
+     * example, `https://drive.google.com/file/d/{$fileId}/view`.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The exportUri. + */ + public java.lang.String getExportUri() { + java.lang.Object ref = exportUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exportUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Link used to play back the recording file in the browser. For
+     * example, `https://drive.google.com/file/d/{$fileId}/view`.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for exportUri. + */ + public com.google.protobuf.ByteString getExportUriBytes() { + java.lang.Object ref = exportUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Link used to play back the recording file in the browser. For
+     * example, `https://drive.google.com/file/d/{$fileId}/view`.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The exportUri to set. + * @return This builder for chaining. + */ + public Builder setExportUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exportUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Link used to play back the recording file in the browser. For
+     * example, `https://drive.google.com/file/d/{$fileId}/view`.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExportUri() { + exportUri_ = getDefaultInstance().getExportUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Link used to play back the recording file in the browser. For
+     * example, `https://drive.google.com/file/d/{$fileId}/view`.
+     * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for exportUri to set. + * @return This builder for chaining. + */ + public Builder setExportUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exportUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.DriveDestination) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.DriveDestination) + private static final com.google.apps.meet.v2.DriveDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.DriveDestination(); + } + + public static com.google.apps.meet.v2.DriveDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DriveDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.DriveDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestinationOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestinationOrBuilder.java new file mode 100644 index 000000000000..2c6e4b642c15 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/DriveDestinationOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface DriveDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.DriveDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The `fileId` for the underlying MP4 file. For example,
+   * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+   * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+   * the blob. For more information, see
+   * https://developers.google.com/drive/api/v3/reference/files/get.
+   * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The file. + */ + java.lang.String getFile(); + /** + * + * + *
+   * Output only. The `fileId` for the underlying MP4 file. For example,
+   * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET
+   * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download
+   * the blob. For more information, see
+   * https://developers.google.com/drive/api/v3/reference/files/get.
+   * 
+ * + * string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for file. + */ + com.google.protobuf.ByteString getFileBytes(); + + /** + * + * + *
+   * Output only. Link used to play back the recording file in the browser. For
+   * example, `https://drive.google.com/file/d/{$fileId}/view`.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The exportUri. + */ + java.lang.String getExportUri(); + /** + * + * + *
+   * Output only. Link used to play back the recording file in the browser. For
+   * example, `https://drive.google.com/file/d/{$fileId}/view`.
+   * 
+ * + * string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for exportUri. + */ + com.google.protobuf.ByteString getExportUriBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java new file mode 100644 index 000000000000..e6bdd87a8cd2 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to end an ongoing conference of a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.EndActiveConferenceRequest} + */ +public final class EndActiveConferenceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.EndActiveConferenceRequest) + EndActiveConferenceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use EndActiveConferenceRequest.newBuilder() to construct. + private EndActiveConferenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EndActiveConferenceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EndActiveConferenceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_EndActiveConferenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_EndActiveConferenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.EndActiveConferenceRequest.class, + com.google.apps.meet.v2.EndActiveConferenceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.EndActiveConferenceRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.EndActiveConferenceRequest other = + (com.google.apps.meet.v2.EndActiveConferenceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.EndActiveConferenceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to end an ongoing conference of a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.EndActiveConferenceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.EndActiveConferenceRequest) + com.google.apps.meet.v2.EndActiveConferenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_EndActiveConferenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_EndActiveConferenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.EndActiveConferenceRequest.class, + com.google.apps.meet.v2.EndActiveConferenceRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.EndActiveConferenceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_EndActiveConferenceRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.EndActiveConferenceRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.EndActiveConferenceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.EndActiveConferenceRequest build() { + com.google.apps.meet.v2.EndActiveConferenceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.EndActiveConferenceRequest buildPartial() { + com.google.apps.meet.v2.EndActiveConferenceRequest result = + new com.google.apps.meet.v2.EndActiveConferenceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.EndActiveConferenceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.EndActiveConferenceRequest) { + return mergeFrom((com.google.apps.meet.v2.EndActiveConferenceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.EndActiveConferenceRequest other) { + if (other == com.google.apps.meet.v2.EndActiveConferenceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.EndActiveConferenceRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.EndActiveConferenceRequest) + private static final com.google.apps.meet.v2.EndActiveConferenceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.EndActiveConferenceRequest(); + } + + public static com.google.apps.meet.v2.EndActiveConferenceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndActiveConferenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.EndActiveConferenceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java new file mode 100644 index 000000000000..dc5a6aba19f6 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface EndActiveConferenceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.EndActiveConferenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequest.java new file mode 100644 index 000000000000..a00bdcd2ac4f --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to get a conference record.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetConferenceRecordRequest} + */ +public final class GetConferenceRecordRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetConferenceRecordRequest) + GetConferenceRecordRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetConferenceRecordRequest.newBuilder() to construct. + private GetConferenceRecordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConferenceRecordRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConferenceRecordRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetConferenceRecordRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetConferenceRecordRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetConferenceRecordRequest.class, + com.google.apps.meet.v2.GetConferenceRecordRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the conference.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the conference.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetConferenceRecordRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetConferenceRecordRequest other = + (com.google.apps.meet.v2.GetConferenceRecordRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetConferenceRecordRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to get a conference record.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetConferenceRecordRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetConferenceRecordRequest) + com.google.apps.meet.v2.GetConferenceRecordRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetConferenceRecordRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetConferenceRecordRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetConferenceRecordRequest.class, + com.google.apps.meet.v2.GetConferenceRecordRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetConferenceRecordRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetConferenceRecordRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetConferenceRecordRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetConferenceRecordRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetConferenceRecordRequest build() { + com.google.apps.meet.v2.GetConferenceRecordRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetConferenceRecordRequest buildPartial() { + com.google.apps.meet.v2.GetConferenceRecordRequest result = + new com.google.apps.meet.v2.GetConferenceRecordRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetConferenceRecordRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetConferenceRecordRequest) { + return mergeFrom((com.google.apps.meet.v2.GetConferenceRecordRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetConferenceRecordRequest other) { + if (other == com.google.apps.meet.v2.GetConferenceRecordRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the conference.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the conference.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the conference.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the conference.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the conference.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetConferenceRecordRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetConferenceRecordRequest) + private static final com.google.apps.meet.v2.GetConferenceRecordRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetConferenceRecordRequest(); + } + + public static com.google.apps.meet.v2.GetConferenceRecordRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConferenceRecordRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetConferenceRecordRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequestOrBuilder.java new file mode 100644 index 000000000000..431ba7a38cb0 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetConferenceRecordRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetConferenceRecordRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetConferenceRecordRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the conference.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the conference.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequest.java new file mode 100644 index 000000000000..897f31549ab1 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to get a participant.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetParticipantRequest} + */ +public final class GetParticipantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetParticipantRequest) + GetParticipantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetParticipantRequest.newBuilder() to construct. + private GetParticipantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetParticipantRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetParticipantRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetParticipantRequest.class, + com.google.apps.meet.v2.GetParticipantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetParticipantRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetParticipantRequest other = + (com.google.apps.meet.v2.GetParticipantRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetParticipantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetParticipantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to get a participant.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetParticipantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetParticipantRequest) + com.google.apps.meet.v2.GetParticipantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetParticipantRequest.class, + com.google.apps.meet.v2.GetParticipantRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetParticipantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetParticipantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantRequest build() { + com.google.apps.meet.v2.GetParticipantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantRequest buildPartial() { + com.google.apps.meet.v2.GetParticipantRequest result = + new com.google.apps.meet.v2.GetParticipantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetParticipantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetParticipantRequest) { + return mergeFrom((com.google.apps.meet.v2.GetParticipantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetParticipantRequest other) { + if (other == com.google.apps.meet.v2.GetParticipantRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetParticipantRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetParticipantRequest) + private static final com.google.apps.meet.v2.GetParticipantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetParticipantRequest(); + } + + public static com.google.apps.meet.v2.GetParticipantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetParticipantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequestOrBuilder.java new file mode 100644 index 000000000000..21999d6c8146 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetParticipantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetParticipantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequest.java new file mode 100644 index 000000000000..0046cf73e49c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to get a participant session.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetParticipantSessionRequest} + */ +public final class GetParticipantSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetParticipantSessionRequest) + GetParticipantSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetParticipantSessionRequest.newBuilder() to construct. + private GetParticipantSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetParticipantSessionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetParticipantSessionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetParticipantSessionRequest.class, + com.google.apps.meet.v2.GetParticipantSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetParticipantSessionRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetParticipantSessionRequest other = + (com.google.apps.meet.v2.GetParticipantSessionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetParticipantSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to get a participant session.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetParticipantSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetParticipantSessionRequest) + com.google.apps.meet.v2.GetParticipantSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetParticipantSessionRequest.class, + com.google.apps.meet.v2.GetParticipantSessionRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetParticipantSessionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetParticipantSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantSessionRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetParticipantSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantSessionRequest build() { + com.google.apps.meet.v2.GetParticipantSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantSessionRequest buildPartial() { + com.google.apps.meet.v2.GetParticipantSessionRequest result = + new com.google.apps.meet.v2.GetParticipantSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetParticipantSessionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetParticipantSessionRequest) { + return mergeFrom((com.google.apps.meet.v2.GetParticipantSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetParticipantSessionRequest other) { + if (other == com.google.apps.meet.v2.GetParticipantSessionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the participant.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetParticipantSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetParticipantSessionRequest) + private static final com.google.apps.meet.v2.GetParticipantSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetParticipantSessionRequest(); + } + + public static com.google.apps.meet.v2.GetParticipantSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetParticipantSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetParticipantSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..75eacc3d2571 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetParticipantSessionRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetParticipantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetParticipantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the participant.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequest.java new file mode 100644 index 000000000000..75314c26c8e0 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request message for GetRecording method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetRecordingRequest} + */ +public final class GetRecordingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetRecordingRequest) + GetRecordingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRecordingRequest.newBuilder() to construct. + private GetRecordingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRecordingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRecordingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetRecordingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetRecordingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetRecordingRequest.class, + com.google.apps.meet.v2.GetRecordingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the recording.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the recording.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetRecordingRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetRecordingRequest other = + (com.google.apps.meet.v2.GetRecordingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetRecordingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetRecordingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetRecording method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetRecordingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetRecordingRequest) + com.google.apps.meet.v2.GetRecordingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetRecordingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetRecordingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetRecordingRequest.class, + com.google.apps.meet.v2.GetRecordingRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetRecordingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetRecordingRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetRecordingRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetRecordingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetRecordingRequest build() { + com.google.apps.meet.v2.GetRecordingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetRecordingRequest buildPartial() { + com.google.apps.meet.v2.GetRecordingRequest result = + new com.google.apps.meet.v2.GetRecordingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetRecordingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetRecordingRequest) { + return mergeFrom((com.google.apps.meet.v2.GetRecordingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetRecordingRequest other) { + if (other == com.google.apps.meet.v2.GetRecordingRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the recording.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the recording.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the recording.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the recording.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the recording.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetRecordingRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetRecordingRequest) + private static final com.google.apps.meet.v2.GetRecordingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetRecordingRequest(); + } + + public static com.google.apps.meet.v2.GetRecordingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRecordingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetRecordingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequestOrBuilder.java new file mode 100644 index 000000000000..bf63c3e37309 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetRecordingRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetRecordingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetRecordingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the recording.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the recording.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java new file mode 100644 index 000000000000..5537ce6d3cd3 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java @@ -0,0 +1,637 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to get a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetSpaceRequest} + */ +public final class GetSpaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetSpaceRequest) + GetSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSpaceRequest.newBuilder() to construct. + private GetSpaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSpaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSpaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetSpaceRequest.class, + com.google.apps.meet.v2.GetSpaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetSpaceRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetSpaceRequest other = (com.google.apps.meet.v2.GetSpaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetSpaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to get a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetSpaceRequest) + com.google.apps.meet.v2.GetSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetSpaceRequest.class, + com.google.apps.meet.v2.GetSpaceRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetSpaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetSpaceRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetSpaceRequest build() { + com.google.apps.meet.v2.GetSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetSpaceRequest buildPartial() { + com.google.apps.meet.v2.GetSpaceRequest result = + new com.google.apps.meet.v2.GetSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetSpaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetSpaceRequest) { + return mergeFrom((com.google.apps.meet.v2.GetSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetSpaceRequest other) { + if (other == com.google.apps.meet.v2.GetSpaceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the space.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetSpaceRequest) + private static final com.google.apps.meet.v2.GetSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetSpaceRequest(); + } + + public static com.google.apps.meet.v2.GetSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..3fdb245c7bdc --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the space.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequest.java new file mode 100644 index 000000000000..3013c2f2c77a --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request for GetTranscriptEntry method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetTranscriptEntryRequest} + */ +public final class GetTranscriptEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetTranscriptEntryRequest) + GetTranscriptEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTranscriptEntryRequest.newBuilder() to construct. + private GetTranscriptEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTranscriptEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTranscriptEntryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetTranscriptEntryRequest.class, + com.google.apps.meet.v2.GetTranscriptEntryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the `TranscriptEntry`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the `TranscriptEntry`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetTranscriptEntryRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetTranscriptEntryRequest other = + (com.google.apps.meet.v2.GetTranscriptEntryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetTranscriptEntryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for GetTranscriptEntry method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetTranscriptEntryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetTranscriptEntryRequest) + com.google.apps.meet.v2.GetTranscriptEntryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetTranscriptEntryRequest.class, + com.google.apps.meet.v2.GetTranscriptEntryRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetTranscriptEntryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptEntryRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetTranscriptEntryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptEntryRequest build() { + com.google.apps.meet.v2.GetTranscriptEntryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptEntryRequest buildPartial() { + com.google.apps.meet.v2.GetTranscriptEntryRequest result = + new com.google.apps.meet.v2.GetTranscriptEntryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetTranscriptEntryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetTranscriptEntryRequest) { + return mergeFrom((com.google.apps.meet.v2.GetTranscriptEntryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetTranscriptEntryRequest other) { + if (other == com.google.apps.meet.v2.GetTranscriptEntryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the `TranscriptEntry`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the `TranscriptEntry`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the `TranscriptEntry`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the `TranscriptEntry`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the `TranscriptEntry`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetTranscriptEntryRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetTranscriptEntryRequest) + private static final com.google.apps.meet.v2.GetTranscriptEntryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetTranscriptEntryRequest(); + } + + public static com.google.apps.meet.v2.GetTranscriptEntryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTranscriptEntryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptEntryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequestOrBuilder.java new file mode 100644 index 000000000000..3158d373d6e7 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptEntryRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetTranscriptEntryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetTranscriptEntryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the `TranscriptEntry`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the `TranscriptEntry`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequest.java new file mode 100644 index 000000000000..1d3c9775dcb2 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request for GetTranscript method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetTranscriptRequest} + */ +public final class GetTranscriptRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.GetTranscriptRequest) + GetTranscriptRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTranscriptRequest.newBuilder() to construct. + private GetTranscriptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTranscriptRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTranscriptRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetTranscriptRequest.class, + com.google.apps.meet.v2.GetTranscriptRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the transcript.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the transcript.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.GetTranscriptRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.GetTranscriptRequest other = + (com.google.apps.meet.v2.GetTranscriptRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.GetTranscriptRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for GetTranscript method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.GetTranscriptRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.GetTranscriptRequest) + com.google.apps.meet.v2.GetTranscriptRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.GetTranscriptRequest.class, + com.google.apps.meet.v2.GetTranscriptRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.GetTranscriptRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_GetTranscriptRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.GetTranscriptRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptRequest build() { + com.google.apps.meet.v2.GetTranscriptRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptRequest buildPartial() { + com.google.apps.meet.v2.GetTranscriptRequest result = + new com.google.apps.meet.v2.GetTranscriptRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.GetTranscriptRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.GetTranscriptRequest) { + return mergeFrom((com.google.apps.meet.v2.GetTranscriptRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.GetTranscriptRequest other) { + if (other == com.google.apps.meet.v2.GetTranscriptRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the transcript.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the transcript.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the transcript.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the transcript.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the transcript.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.GetTranscriptRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.GetTranscriptRequest) + private static final com.google.apps.meet.v2.GetTranscriptRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.GetTranscriptRequest(); + } + + public static com.google.apps.meet.v2.GetTranscriptRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTranscriptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.GetTranscriptRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequestOrBuilder.java new file mode 100644 index 000000000000..526cf8e7e5eb --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetTranscriptRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface GetTranscriptRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.GetTranscriptRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the transcript.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the transcript.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java new file mode 100644 index 000000000000..f13938143026 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to fetch list of conference records per user.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListConferenceRecordsRequest} + */ +public final class ListConferenceRecordsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListConferenceRecordsRequest) + ListConferenceRecordsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConferenceRecordsRequest.newBuilder() to construct. + private ListConferenceRecordsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConferenceRecordsRequest() { + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConferenceRecordsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListConferenceRecordsRequest.class, + com.google.apps.meet.v2.ListConferenceRecordsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. Maximum number of conference records to return. The service might
+   * return fewer than this value. If unspecified, at most 25 conference records
+   * are returned. The maximum value is 100; values above 100 are coerced to
+   * 100. Maximum might change in the future.
+   * 
+ * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `space.meeting_code`
+   * * `space.name`
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `space.meeting_code`
+   * * `space.name`
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListConferenceRecordsRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListConferenceRecordsRequest other = + (com.google.apps.meet.v2.ListConferenceRecordsRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListConferenceRecordsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to fetch list of conference records per user.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListConferenceRecordsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListConferenceRecordsRequest) + com.google.apps.meet.v2.ListConferenceRecordsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListConferenceRecordsRequest.class, + com.google.apps.meet.v2.ListConferenceRecordsRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListConferenceRecordsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListConferenceRecordsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsRequest build() { + com.google.apps.meet.v2.ListConferenceRecordsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsRequest buildPartial() { + com.google.apps.meet.v2.ListConferenceRecordsRequest result = + new com.google.apps.meet.v2.ListConferenceRecordsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ListConferenceRecordsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListConferenceRecordsRequest) { + return mergeFrom((com.google.apps.meet.v2.ListConferenceRecordsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListConferenceRecordsRequest other) { + if (other == com.google.apps.meet.v2.ListConferenceRecordsRequest.getDefaultInstance()) + return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int pageSize_; + /** + * + * + *
+     * Optional. Maximum number of conference records to return. The service might
+     * return fewer than this value. If unspecified, at most 25 conference records
+     * are returned. The maximum value is 100; values above 100 are coerced to
+     * 100. Maximum might change in the future.
+     * 
+ * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Maximum number of conference records to return. The service might
+     * return fewer than this value. If unspecified, at most 25 conference records
+     * are returned. The maximum value is 100; values above 100 are coerced to
+     * 100. Maximum might change in the future.
+     * 
+ * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of conference records to return. The service might
+     * return fewer than this value. If unspecified, at most 25 conference records
+     * are returned. The maximum value is 100; values above 100 are coerced to
+     * 100. Maximum might change in the future.
+     * 
+ * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `space.meeting_code`
+     * * `space.name`
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `space.meeting_code`
+     * * `space.name`
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `space.meeting_code`
+     * * `space.name`
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `space.meeting_code`
+     * * `space.name`
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `space.meeting_code`
+     * * `space.name`
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListConferenceRecordsRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListConferenceRecordsRequest) + private static final com.google.apps.meet.v2.ListConferenceRecordsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListConferenceRecordsRequest(); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConferenceRecordsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java new file mode 100644 index 000000000000..996843639f15 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListConferenceRecordsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListConferenceRecordsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Maximum number of conference records to return. The service might
+   * return fewer than this value. If unspecified, at most 25 conference records
+   * are returned. The maximum value is 100; values above 100 are coerced to
+   * 100. Maximum might change in the future.
+   * 
+ * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `space.meeting_code`
+   * * `space.name`
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `space.meeting_code`
+   * * `space.name`
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponse.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponse.java new file mode 100644 index 000000000000..ed1d6f14e92f --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponse.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Response of ListConferenceRecords method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListConferenceRecordsResponse} + */ +public final class ListConferenceRecordsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListConferenceRecordsResponse) + ListConferenceRecordsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConferenceRecordsResponse.newBuilder() to construct. + private ListConferenceRecordsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConferenceRecordsResponse() { + conferenceRecords_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConferenceRecordsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListConferenceRecordsResponse.class, + com.google.apps.meet.v2.ListConferenceRecordsResponse.Builder.class); + } + + public static final int CONFERENCE_RECORDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List conferenceRecords_; + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + @java.lang.Override + public java.util.List getConferenceRecordsList() { + return conferenceRecords_; + } + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + @java.lang.Override + public java.util.List + getConferenceRecordsOrBuilderList() { + return conferenceRecords_; + } + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + @java.lang.Override + public int getConferenceRecordsCount() { + return conferenceRecords_.size(); + } + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.ConferenceRecord getConferenceRecords(int index) { + return conferenceRecords_.get(index); + } + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.ConferenceRecordOrBuilder getConferenceRecordsOrBuilder( + int index) { + return conferenceRecords_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further List call if current List does NOT
+   * include all the Conferences. Unset if all conferences have been returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to be circulated back for further List call if current List does NOT
+   * include all the Conferences. Unset if all conferences have been returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conferenceRecords_.size(); i++) { + output.writeMessage(1, conferenceRecords_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conferenceRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, conferenceRecords_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListConferenceRecordsResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListConferenceRecordsResponse other = + (com.google.apps.meet.v2.ListConferenceRecordsResponse) obj; + + if (!getConferenceRecordsList().equals(other.getConferenceRecordsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConferenceRecordsCount() > 0) { + hash = (37 * hash) + CONFERENCE_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getConferenceRecordsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2.ListConferenceRecordsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of ListConferenceRecords method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListConferenceRecordsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListConferenceRecordsResponse) + com.google.apps.meet.v2.ListConferenceRecordsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListConferenceRecordsResponse.class, + com.google.apps.meet.v2.ListConferenceRecordsResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListConferenceRecordsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conferenceRecordsBuilder_ == null) { + conferenceRecords_ = java.util.Collections.emptyList(); + } else { + conferenceRecords_ = null; + conferenceRecordsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListConferenceRecordsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsResponse build() { + com.google.apps.meet.v2.ListConferenceRecordsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsResponse buildPartial() { + com.google.apps.meet.v2.ListConferenceRecordsResponse result = + new com.google.apps.meet.v2.ListConferenceRecordsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.apps.meet.v2.ListConferenceRecordsResponse result) { + if (conferenceRecordsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conferenceRecords_ = java.util.Collections.unmodifiableList(conferenceRecords_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conferenceRecords_ = conferenceRecords_; + } else { + result.conferenceRecords_ = conferenceRecordsBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2.ListConferenceRecordsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListConferenceRecordsResponse) { + return mergeFrom((com.google.apps.meet.v2.ListConferenceRecordsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListConferenceRecordsResponse other) { + if (other == com.google.apps.meet.v2.ListConferenceRecordsResponse.getDefaultInstance()) + return this; + if (conferenceRecordsBuilder_ == null) { + if (!other.conferenceRecords_.isEmpty()) { + if (conferenceRecords_.isEmpty()) { + conferenceRecords_ = other.conferenceRecords_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConferenceRecordsIsMutable(); + conferenceRecords_.addAll(other.conferenceRecords_); + } + onChanged(); + } + } else { + if (!other.conferenceRecords_.isEmpty()) { + if (conferenceRecordsBuilder_.isEmpty()) { + conferenceRecordsBuilder_.dispose(); + conferenceRecordsBuilder_ = null; + conferenceRecords_ = other.conferenceRecords_; + bitField0_ = (bitField0_ & ~0x00000001); + conferenceRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConferenceRecordsFieldBuilder() + : null; + } else { + conferenceRecordsBuilder_.addAllMessages(other.conferenceRecords_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.apps.meet.v2.ConferenceRecord m = + input.readMessage( + com.google.apps.meet.v2.ConferenceRecord.parser(), extensionRegistry); + if (conferenceRecordsBuilder_ == null) { + ensureConferenceRecordsIsMutable(); + conferenceRecords_.add(m); + } else { + conferenceRecordsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List conferenceRecords_ = + java.util.Collections.emptyList(); + + private void ensureConferenceRecordsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conferenceRecords_ = + new java.util.ArrayList(conferenceRecords_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.ConferenceRecord, + com.google.apps.meet.v2.ConferenceRecord.Builder, + com.google.apps.meet.v2.ConferenceRecordOrBuilder> + conferenceRecordsBuilder_; + + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public java.util.List getConferenceRecordsList() { + if (conferenceRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conferenceRecords_); + } else { + return conferenceRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public int getConferenceRecordsCount() { + if (conferenceRecordsBuilder_ == null) { + return conferenceRecords_.size(); + } else { + return conferenceRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public com.google.apps.meet.v2.ConferenceRecord getConferenceRecords(int index) { + if (conferenceRecordsBuilder_ == null) { + return conferenceRecords_.get(index); + } else { + return conferenceRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder setConferenceRecords(int index, com.google.apps.meet.v2.ConferenceRecord value) { + if (conferenceRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConferenceRecordsIsMutable(); + conferenceRecords_.set(index, value); + onChanged(); + } else { + conferenceRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder setConferenceRecords( + int index, com.google.apps.meet.v2.ConferenceRecord.Builder builderForValue) { + if (conferenceRecordsBuilder_ == null) { + ensureConferenceRecordsIsMutable(); + conferenceRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + conferenceRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder addConferenceRecords(com.google.apps.meet.v2.ConferenceRecord value) { + if (conferenceRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConferenceRecordsIsMutable(); + conferenceRecords_.add(value); + onChanged(); + } else { + conferenceRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder addConferenceRecords(int index, com.google.apps.meet.v2.ConferenceRecord value) { + if (conferenceRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConferenceRecordsIsMutable(); + conferenceRecords_.add(index, value); + onChanged(); + } else { + conferenceRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder addConferenceRecords( + com.google.apps.meet.v2.ConferenceRecord.Builder builderForValue) { + if (conferenceRecordsBuilder_ == null) { + ensureConferenceRecordsIsMutable(); + conferenceRecords_.add(builderForValue.build()); + onChanged(); + } else { + conferenceRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder addConferenceRecords( + int index, com.google.apps.meet.v2.ConferenceRecord.Builder builderForValue) { + if (conferenceRecordsBuilder_ == null) { + ensureConferenceRecordsIsMutable(); + conferenceRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + conferenceRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder addAllConferenceRecords( + java.lang.Iterable values) { + if (conferenceRecordsBuilder_ == null) { + ensureConferenceRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conferenceRecords_); + onChanged(); + } else { + conferenceRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder clearConferenceRecords() { + if (conferenceRecordsBuilder_ == null) { + conferenceRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conferenceRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public Builder removeConferenceRecords(int index) { + if (conferenceRecordsBuilder_ == null) { + ensureConferenceRecordsIsMutable(); + conferenceRecords_.remove(index); + onChanged(); + } else { + conferenceRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public com.google.apps.meet.v2.ConferenceRecord.Builder getConferenceRecordsBuilder(int index) { + return getConferenceRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public com.google.apps.meet.v2.ConferenceRecordOrBuilder getConferenceRecordsOrBuilder( + int index) { + if (conferenceRecordsBuilder_ == null) { + return conferenceRecords_.get(index); + } else { + return conferenceRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public java.util.List + getConferenceRecordsOrBuilderList() { + if (conferenceRecordsBuilder_ != null) { + return conferenceRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conferenceRecords_); + } + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public com.google.apps.meet.v2.ConferenceRecord.Builder addConferenceRecordsBuilder() { + return getConferenceRecordsFieldBuilder() + .addBuilder(com.google.apps.meet.v2.ConferenceRecord.getDefaultInstance()); + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public com.google.apps.meet.v2.ConferenceRecord.Builder addConferenceRecordsBuilder(int index) { + return getConferenceRecordsFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2.ConferenceRecord.getDefaultInstance()); + } + /** + * + * + *
+     * List of conferences in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + public java.util.List + getConferenceRecordsBuilderList() { + return getConferenceRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.ConferenceRecord, + com.google.apps.meet.v2.ConferenceRecord.Builder, + com.google.apps.meet.v2.ConferenceRecordOrBuilder> + getConferenceRecordsFieldBuilder() { + if (conferenceRecordsBuilder_ == null) { + conferenceRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.ConferenceRecord, + com.google.apps.meet.v2.ConferenceRecord.Builder, + com.google.apps.meet.v2.ConferenceRecordOrBuilder>( + conferenceRecords_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conferenceRecords_ = null; + } + return conferenceRecordsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further List call if current List does NOT
+     * include all the Conferences. Unset if all conferences have been returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List does NOT
+     * include all the Conferences. Unset if all conferences have been returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List does NOT
+     * include all the Conferences. Unset if all conferences have been returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List does NOT
+     * include all the Conferences. Unset if all conferences have been returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List does NOT
+     * include all the Conferences. Unset if all conferences have been returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListConferenceRecordsResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListConferenceRecordsResponse) + private static final com.google.apps.meet.v2.ListConferenceRecordsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListConferenceRecordsResponse(); + } + + public static com.google.apps.meet.v2.ListConferenceRecordsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConferenceRecordsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListConferenceRecordsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponseOrBuilder.java new file mode 100644 index 000000000000..30edadca9b4c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListConferenceRecordsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListConferenceRecordsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + java.util.List getConferenceRecordsList(); + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + com.google.apps.meet.v2.ConferenceRecord getConferenceRecords(int index); + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + int getConferenceRecordsCount(); + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + java.util.List + getConferenceRecordsOrBuilderList(); + /** + * + * + *
+   * List of conferences in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; + */ + com.google.apps.meet.v2.ConferenceRecordOrBuilder getConferenceRecordsOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further List call if current List does NOT
+   * include all the Conferences. Unset if all conferences have been returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further List call if current List does NOT
+   * include all the Conferences. Unset if all conferences have been returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequest.java new file mode 100644 index 000000000000..50a4e5241ffe --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequest.java @@ -0,0 +1,1175 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to fetch list of participant sessions per conference record, per
+ * participant.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantSessionsRequest} + */ +public final class ListParticipantSessionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListParticipantSessionsRequest) + ListParticipantSessionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListParticipantSessionsRequest.newBuilder() to construct. + private ListParticipantSessionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListParticipantSessionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListParticipantSessionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantSessionsRequest.class, + com.google.apps.meet.v2.ListParticipantSessionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. Maximum number of participant sessions to return. The service
+   * might return fewer than this value. If unspecified, at most 100
+   * participants are returned. The maximum value is 250; values above 250 are
+   * coerced to 250. Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `end_time IS NULL` returns active participant sessions in
+   * the conference record.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `end_time IS NULL` returns active participant sessions in
+   * the conference record.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListParticipantSessionsRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListParticipantSessionsRequest other = + (com.google.apps.meet.v2.ListParticipantSessionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2.ListParticipantSessionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to fetch list of participant sessions per conference record, per
+   * participant.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantSessionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListParticipantSessionsRequest) + com.google.apps.meet.v2.ListParticipantSessionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantSessionsRequest.class, + com.google.apps.meet.v2.ListParticipantSessionsRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListParticipantSessionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListParticipantSessionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsRequest build() { + com.google.apps.meet.v2.ListParticipantSessionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsRequest buildPartial() { + com.google.apps.meet.v2.ListParticipantSessionsRequest result = + new com.google.apps.meet.v2.ListParticipantSessionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ListParticipantSessionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListParticipantSessionsRequest) { + return mergeFrom((com.google.apps.meet.v2.ListParticipantSessionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListParticipantSessionsRequest other) { + if (other == com.google.apps.meet.v2.ListParticipantSessionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. Maximum number of participant sessions to return. The service
+     * might return fewer than this value. If unspecified, at most 100
+     * participants are returned. The maximum value is 250; values above 250 are
+     * coerced to 250. Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Maximum number of participant sessions to return. The service
+     * might return fewer than this value. If unspecified, at most 100
+     * participants are returned. The maximum value is 250; values above 250 are
+     * coerced to 250. Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of participant sessions to return. The service
+     * might return fewer than this value. If unspecified, at most 100
+     * participants are returned. The maximum value is 250; values above 250 are
+     * coerced to 250. Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `end_time IS NULL` returns active participant sessions in
+     * the conference record.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `end_time IS NULL` returns active participant sessions in
+     * the conference record.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `end_time IS NULL` returns active participant sessions in
+     * the conference record.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `end_time IS NULL` returns active participant sessions in
+     * the conference record.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `start_time`
+     * * `end_time`
+     *
+     * For example, `end_time IS NULL` returns active participant sessions in
+     * the conference record.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListParticipantSessionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListParticipantSessionsRequest) + private static final com.google.apps.meet.v2.ListParticipantSessionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListParticipantSessionsRequest(); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListParticipantSessionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequestOrBuilder.java new file mode 100644 index 000000000000..2ef1e4f4a0c7 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsRequestOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListParticipantSessionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListParticipantSessionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of participant sessions to return. The service
+   * might return fewer than this value. If unspecified, at most 100
+   * participants are returned. The maximum value is 250; values above 250 are
+   * coerced to 250. Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `end_time IS NULL` returns active participant sessions in
+   * the conference record.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `start_time`
+   * * `end_time`
+   *
+   * For example, `end_time IS NULL` returns active participant sessions in
+   * the conference record.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponse.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponse.java new file mode 100644 index 000000000000..eb4845b6bf80 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Response of ListParticipants method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantSessionsResponse} + */ +public final class ListParticipantSessionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListParticipantSessionsResponse) + ListParticipantSessionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListParticipantSessionsResponse.newBuilder() to construct. + private ListParticipantSessionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListParticipantSessionsResponse() { + participantSessions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListParticipantSessionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantSessionsResponse.class, + com.google.apps.meet.v2.ListParticipantSessionsResponse.Builder.class); + } + + public static final int PARTICIPANT_SESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List participantSessions_; + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + @java.lang.Override + public java.util.List getParticipantSessionsList() { + return participantSessions_; + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + @java.lang.Override + public java.util.List + getParticipantSessionsOrBuilderList() { + return participantSessions_; + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + @java.lang.Override + public int getParticipantSessionsCount() { + return participantSessions_.size(); + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.ParticipantSession getParticipantSessions(int index) { + return participantSessions_.get(index); + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.ParticipantSessionOrBuilder getParticipantSessionsOrBuilder( + int index) { + return participantSessions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < participantSessions_.size(); i++) { + output.writeMessage(1, participantSessions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < participantSessions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, participantSessions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListParticipantSessionsResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListParticipantSessionsResponse other = + (com.google.apps.meet.v2.ListParticipantSessionsResponse) obj; + + if (!getParticipantSessionsList().equals(other.getParticipantSessionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getParticipantSessionsCount() > 0) { + hash = (37 * hash) + PARTICIPANT_SESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getParticipantSessionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2.ListParticipantSessionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of ListParticipants method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantSessionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListParticipantSessionsResponse) + com.google.apps.meet.v2.ListParticipantSessionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantSessionsResponse.class, + com.google.apps.meet.v2.ListParticipantSessionsResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListParticipantSessionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (participantSessionsBuilder_ == null) { + participantSessions_ = java.util.Collections.emptyList(); + } else { + participantSessions_ = null; + participantSessionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListParticipantSessionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsResponse build() { + com.google.apps.meet.v2.ListParticipantSessionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsResponse buildPartial() { + com.google.apps.meet.v2.ListParticipantSessionsResponse result = + new com.google.apps.meet.v2.ListParticipantSessionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.apps.meet.v2.ListParticipantSessionsResponse result) { + if (participantSessionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + participantSessions_ = java.util.Collections.unmodifiableList(participantSessions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.participantSessions_ = participantSessions_; + } else { + result.participantSessions_ = participantSessionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2.ListParticipantSessionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListParticipantSessionsResponse) { + return mergeFrom((com.google.apps.meet.v2.ListParticipantSessionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListParticipantSessionsResponse other) { + if (other == com.google.apps.meet.v2.ListParticipantSessionsResponse.getDefaultInstance()) + return this; + if (participantSessionsBuilder_ == null) { + if (!other.participantSessions_.isEmpty()) { + if (participantSessions_.isEmpty()) { + participantSessions_ = other.participantSessions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureParticipantSessionsIsMutable(); + participantSessions_.addAll(other.participantSessions_); + } + onChanged(); + } + } else { + if (!other.participantSessions_.isEmpty()) { + if (participantSessionsBuilder_.isEmpty()) { + participantSessionsBuilder_.dispose(); + participantSessionsBuilder_ = null; + participantSessions_ = other.participantSessions_; + bitField0_ = (bitField0_ & ~0x00000001); + participantSessionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParticipantSessionsFieldBuilder() + : null; + } else { + participantSessionsBuilder_.addAllMessages(other.participantSessions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.apps.meet.v2.ParticipantSession m = + input.readMessage( + com.google.apps.meet.v2.ParticipantSession.parser(), extensionRegistry); + if (participantSessionsBuilder_ == null) { + ensureParticipantSessionsIsMutable(); + participantSessions_.add(m); + } else { + participantSessionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List participantSessions_ = + java.util.Collections.emptyList(); + + private void ensureParticipantSessionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + participantSessions_ = + new java.util.ArrayList( + participantSessions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.ParticipantSession, + com.google.apps.meet.v2.ParticipantSession.Builder, + com.google.apps.meet.v2.ParticipantSessionOrBuilder> + participantSessionsBuilder_; + + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public java.util.List getParticipantSessionsList() { + if (participantSessionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(participantSessions_); + } else { + return participantSessionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public int getParticipantSessionsCount() { + if (participantSessionsBuilder_ == null) { + return participantSessions_.size(); + } else { + return participantSessionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public com.google.apps.meet.v2.ParticipantSession getParticipantSessions(int index) { + if (participantSessionsBuilder_ == null) { + return participantSessions_.get(index); + } else { + return participantSessionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder setParticipantSessions( + int index, com.google.apps.meet.v2.ParticipantSession value) { + if (participantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantSessionsIsMutable(); + participantSessions_.set(index, value); + onChanged(); + } else { + participantSessionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder setParticipantSessions( + int index, com.google.apps.meet.v2.ParticipantSession.Builder builderForValue) { + if (participantSessionsBuilder_ == null) { + ensureParticipantSessionsIsMutable(); + participantSessions_.set(index, builderForValue.build()); + onChanged(); + } else { + participantSessionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder addParticipantSessions(com.google.apps.meet.v2.ParticipantSession value) { + if (participantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantSessionsIsMutable(); + participantSessions_.add(value); + onChanged(); + } else { + participantSessionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder addParticipantSessions( + int index, com.google.apps.meet.v2.ParticipantSession value) { + if (participantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantSessionsIsMutable(); + participantSessions_.add(index, value); + onChanged(); + } else { + participantSessionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder addParticipantSessions( + com.google.apps.meet.v2.ParticipantSession.Builder builderForValue) { + if (participantSessionsBuilder_ == null) { + ensureParticipantSessionsIsMutable(); + participantSessions_.add(builderForValue.build()); + onChanged(); + } else { + participantSessionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder addParticipantSessions( + int index, com.google.apps.meet.v2.ParticipantSession.Builder builderForValue) { + if (participantSessionsBuilder_ == null) { + ensureParticipantSessionsIsMutable(); + participantSessions_.add(index, builderForValue.build()); + onChanged(); + } else { + participantSessionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder addAllParticipantSessions( + java.lang.Iterable values) { + if (participantSessionsBuilder_ == null) { + ensureParticipantSessionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, participantSessions_); + onChanged(); + } else { + participantSessionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder clearParticipantSessions() { + if (participantSessionsBuilder_ == null) { + participantSessions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + participantSessionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public Builder removeParticipantSessions(int index) { + if (participantSessionsBuilder_ == null) { + ensureParticipantSessionsIsMutable(); + participantSessions_.remove(index); + onChanged(); + } else { + participantSessionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public com.google.apps.meet.v2.ParticipantSession.Builder getParticipantSessionsBuilder( + int index) { + return getParticipantSessionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public com.google.apps.meet.v2.ParticipantSessionOrBuilder getParticipantSessionsOrBuilder( + int index) { + if (participantSessionsBuilder_ == null) { + return participantSessions_.get(index); + } else { + return participantSessionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public java.util.List + getParticipantSessionsOrBuilderList() { + if (participantSessionsBuilder_ != null) { + return participantSessionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(participantSessions_); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public com.google.apps.meet.v2.ParticipantSession.Builder addParticipantSessionsBuilder() { + return getParticipantSessionsFieldBuilder() + .addBuilder(com.google.apps.meet.v2.ParticipantSession.getDefaultInstance()); + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public com.google.apps.meet.v2.ParticipantSession.Builder addParticipantSessionsBuilder( + int index) { + return getParticipantSessionsFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2.ParticipantSession.getDefaultInstance()); + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + public java.util.List + getParticipantSessionsBuilderList() { + return getParticipantSessionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.ParticipantSession, + com.google.apps.meet.v2.ParticipantSession.Builder, + com.google.apps.meet.v2.ParticipantSessionOrBuilder> + getParticipantSessionsFieldBuilder() { + if (participantSessionsBuilder_ == null) { + participantSessionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.ParticipantSession, + com.google.apps.meet.v2.ParticipantSession.Builder, + com.google.apps.meet.v2.ParticipantSessionOrBuilder>( + participantSessions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + participantSessions_ = null; + } + return participantSessionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListParticipantSessionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListParticipantSessionsResponse) + private static final com.google.apps.meet.v2.ListParticipantSessionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListParticipantSessionsResponse(); + } + + public static com.google.apps.meet.v2.ListParticipantSessionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListParticipantSessionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantSessionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponseOrBuilder.java new file mode 100644 index 000000000000..51f9ebd02685 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantSessionsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListParticipantSessionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListParticipantSessionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + java.util.List getParticipantSessionsList(); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + com.google.apps.meet.v2.ParticipantSession getParticipantSessions(int index); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + int getParticipantSessionsCount(); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + java.util.List + getParticipantSessionsOrBuilderList(); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; + */ + com.google.apps.meet.v2.ParticipantSessionOrBuilder getParticipantSessionsOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequest.java new file mode 100644 index 000000000000..5dd507976323 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequest.java @@ -0,0 +1,1168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to fetch list of participants per conference.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantsRequest} + */ +public final class ListParticipantsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListParticipantsRequest) + ListParticipantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListParticipantsRequest.newBuilder() to construct. + private ListParticipantsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListParticipantsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListParticipantsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantsRequest.class, + com.google.apps.meet.v2.ListParticipantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Maximum number of participants to return. The service might return fewer
+   * than this value.
+   * If unspecified, at most 100 participants are returned.
+   * The maximum value is 250; values above 250 are coerced to 250.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `earliest_start_time`
+   * * `latest_end_time`
+   *
+   * For example, `latest_end_time IS NULL` returns active participants in
+   * the conference.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `earliest_start_time`
+   * * `latest_end_time`
+   *
+   * For example, `latest_end_time IS NULL` returns active participants in
+   * the conference.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListParticipantsRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListParticipantsRequest other = + (com.google.apps.meet.v2.ListParticipantsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListParticipantsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to fetch list of participants per conference.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListParticipantsRequest) + com.google.apps.meet.v2.ListParticipantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantsRequest.class, + com.google.apps.meet.v2.ListParticipantsRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListParticipantsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListParticipantsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsRequest build() { + com.google.apps.meet.v2.ListParticipantsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsRequest buildPartial() { + com.google.apps.meet.v2.ListParticipantsRequest result = + new com.google.apps.meet.v2.ListParticipantsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ListParticipantsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListParticipantsRequest) { + return mergeFrom((com.google.apps.meet.v2.ListParticipantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListParticipantsRequest other) { + if (other == com.google.apps.meet.v2.ListParticipantsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Maximum number of participants to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 100 participants are returned.
+     * The maximum value is 250; values above 250 are coerced to 250.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of participants to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 100 participants are returned.
+     * The maximum value is 250; values above 250 are coerced to 250.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of participants to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 100 participants are returned.
+     * The maximum value is 250; values above 250 are coerced to 250.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `earliest_start_time`
+     * * `latest_end_time`
+     *
+     * For example, `latest_end_time IS NULL` returns active participants in
+     * the conference.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `earliest_start_time`
+     * * `latest_end_time`
+     *
+     * For example, `latest_end_time IS NULL` returns active participants in
+     * the conference.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `earliest_start_time`
+     * * `latest_end_time`
+     *
+     * For example, `latest_end_time IS NULL` returns active participants in
+     * the conference.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `earliest_start_time`
+     * * `latest_end_time`
+     *
+     * For example, `latest_end_time IS NULL` returns active participants in
+     * the conference.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
+     *
+     * * `earliest_start_time`
+     * * `latest_end_time`
+     *
+     * For example, `latest_end_time IS NULL` returns active participants in
+     * the conference.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListParticipantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListParticipantsRequest) + private static final com.google.apps.meet.v2.ListParticipantsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListParticipantsRequest(); + } + + public static com.google.apps.meet.v2.ListParticipantsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListParticipantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequestOrBuilder.java new file mode 100644 index 000000000000..7b5b81c396a9 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListParticipantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListParticipantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Maximum number of participants to return. The service might return fewer
+   * than this value.
+   * If unspecified, at most 100 participants are returned.
+   * The maximum value is 250; values above 250 are coerced to 250.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `earliest_start_time`
+   * * `latest_end_time`
+   *
+   * For example, `latest_end_time IS NULL` returns active participants in
+   * the conference.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
+   *
+   * * `earliest_start_time`
+   * * `latest_end_time`
+   *
+   * For example, `latest_end_time IS NULL` returns active participants in
+   * the conference.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponse.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponse.java new file mode 100644 index 000000000000..d34bbeb61803 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponse.java @@ -0,0 +1,1230 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Response of ListParticipants method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantsResponse} + */ +public final class ListParticipantsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListParticipantsResponse) + ListParticipantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListParticipantsResponse.newBuilder() to construct. + private ListParticipantsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListParticipantsResponse() { + participants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListParticipantsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantsResponse.class, + com.google.apps.meet.v2.ListParticipantsResponse.Builder.class); + } + + public static final int PARTICIPANTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List participants_; + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + @java.lang.Override + public java.util.List getParticipantsList() { + return participants_; + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + @java.lang.Override + public java.util.List + getParticipantsOrBuilderList() { + return participants_; + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + @java.lang.Override + public int getParticipantsCount() { + return participants_.size(); + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.Participant getParticipants(int index) { + return participants_.get(index); + } + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.ParticipantOrBuilder getParticipantsOrBuilder(int index) { + return participants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + /** + * + * + *
+   * Total, exact number of `participants`. By default, this field isn't
+   * included in the response. Set the field mask in
+   * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters)
+   * to receive this field in the response.
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < participants_.size(); i++) { + output.writeMessage(1, participants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < participants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, participants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListParticipantsResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListParticipantsResponse other = + (com.google.apps.meet.v2.ListParticipantsResponse) obj; + + if (!getParticipantsList().equals(other.getParticipantsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getParticipantsCount() > 0) { + hash = (37 * hash) + PARTICIPANTS_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListParticipantsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of ListParticipants method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListParticipantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListParticipantsResponse) + com.google.apps.meet.v2.ListParticipantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListParticipantsResponse.class, + com.google.apps.meet.v2.ListParticipantsResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListParticipantsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (participantsBuilder_ == null) { + participants_ = java.util.Collections.emptyList(); + } else { + participants_ = null; + participantsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListParticipantsResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListParticipantsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsResponse build() { + com.google.apps.meet.v2.ListParticipantsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsResponse buildPartial() { + com.google.apps.meet.v2.ListParticipantsResponse result = + new com.google.apps.meet.v2.ListParticipantsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.apps.meet.v2.ListParticipantsResponse result) { + if (participantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + participants_ = java.util.Collections.unmodifiableList(participants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.participants_ = participants_; + } else { + result.participants_ = participantsBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2.ListParticipantsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListParticipantsResponse) { + return mergeFrom((com.google.apps.meet.v2.ListParticipantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListParticipantsResponse other) { + if (other == com.google.apps.meet.v2.ListParticipantsResponse.getDefaultInstance()) + return this; + if (participantsBuilder_ == null) { + if (!other.participants_.isEmpty()) { + if (participants_.isEmpty()) { + participants_ = other.participants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureParticipantsIsMutable(); + participants_.addAll(other.participants_); + } + onChanged(); + } + } else { + if (!other.participants_.isEmpty()) { + if (participantsBuilder_.isEmpty()) { + participantsBuilder_.dispose(); + participantsBuilder_ = null; + participants_ = other.participants_; + bitField0_ = (bitField0_ & ~0x00000001); + participantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParticipantsFieldBuilder() + : null; + } else { + participantsBuilder_.addAllMessages(other.participants_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.apps.meet.v2.Participant m = + input.readMessage( + com.google.apps.meet.v2.Participant.parser(), extensionRegistry); + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.add(m); + } else { + participantsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List participants_ = + java.util.Collections.emptyList(); + + private void ensureParticipantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + participants_ = new java.util.ArrayList(participants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Participant, + com.google.apps.meet.v2.Participant.Builder, + com.google.apps.meet.v2.ParticipantOrBuilder> + participantsBuilder_; + + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public java.util.List getParticipantsList() { + if (participantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(participants_); + } else { + return participantsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public int getParticipantsCount() { + if (participantsBuilder_ == null) { + return participants_.size(); + } else { + return participantsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public com.google.apps.meet.v2.Participant getParticipants(int index) { + if (participantsBuilder_ == null) { + return participants_.get(index); + } else { + return participantsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder setParticipants(int index, com.google.apps.meet.v2.Participant value) { + if (participantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantsIsMutable(); + participants_.set(index, value); + onChanged(); + } else { + participantsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder setParticipants( + int index, com.google.apps.meet.v2.Participant.Builder builderForValue) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.set(index, builderForValue.build()); + onChanged(); + } else { + participantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder addParticipants(com.google.apps.meet.v2.Participant value) { + if (participantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantsIsMutable(); + participants_.add(value); + onChanged(); + } else { + participantsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder addParticipants(int index, com.google.apps.meet.v2.Participant value) { + if (participantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantsIsMutable(); + participants_.add(index, value); + onChanged(); + } else { + participantsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder addParticipants(com.google.apps.meet.v2.Participant.Builder builderForValue) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.add(builderForValue.build()); + onChanged(); + } else { + participantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder addParticipants( + int index, com.google.apps.meet.v2.Participant.Builder builderForValue) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.add(index, builderForValue.build()); + onChanged(); + } else { + participantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder addAllParticipants( + java.lang.Iterable values) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, participants_); + onChanged(); + } else { + participantsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder clearParticipants() { + if (participantsBuilder_ == null) { + participants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + participantsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public Builder removeParticipants(int index) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.remove(index); + onChanged(); + } else { + participantsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public com.google.apps.meet.v2.Participant.Builder getParticipantsBuilder(int index) { + return getParticipantsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public com.google.apps.meet.v2.ParticipantOrBuilder getParticipantsOrBuilder(int index) { + if (participantsBuilder_ == null) { + return participants_.get(index); + } else { + return participantsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public java.util.List + getParticipantsOrBuilderList() { + if (participantsBuilder_ != null) { + return participantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(participants_); + } + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public com.google.apps.meet.v2.Participant.Builder addParticipantsBuilder() { + return getParticipantsFieldBuilder() + .addBuilder(com.google.apps.meet.v2.Participant.getDefaultInstance()); + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public com.google.apps.meet.v2.Participant.Builder addParticipantsBuilder(int index) { + return getParticipantsFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2.Participant.getDefaultInstance()); + } + /** + * + * + *
+     * List of participants in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + public java.util.List + getParticipantsBuilderList() { + return getParticipantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Participant, + com.google.apps.meet.v2.Participant.Builder, + com.google.apps.meet.v2.ParticipantOrBuilder> + getParticipantsFieldBuilder() { + if (participantsBuilder_ == null) { + participantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Participant, + com.google.apps.meet.v2.Participant.Builder, + com.google.apps.meet.v2.ParticipantOrBuilder>( + participants_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + participants_ = null; + } + return participantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the participants. Unset if all participants are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * Total, exact number of `participants`. By default, this field isn't
+     * included in the response. Set the field mask in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters)
+     * to receive this field in the response.
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * Total, exact number of `participants`. By default, this field isn't
+     * included in the response. Set the field mask in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters)
+     * to receive this field in the response.
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Total, exact number of `participants`. By default, this field isn't
+     * included in the response. Set the field mask in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters)
+     * to receive this field in the response.
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListParticipantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListParticipantsResponse) + private static final com.google.apps.meet.v2.ListParticipantsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListParticipantsResponse(); + } + + public static com.google.apps.meet.v2.ListParticipantsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListParticipantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListParticipantsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponseOrBuilder.java new file mode 100644 index 000000000000..4c376c70c913 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListParticipantsResponseOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListParticipantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListParticipantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + java.util.List getParticipantsList(); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + com.google.apps.meet.v2.Participant getParticipants(int index); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + int getParticipantsCount(); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + java.util.List + getParticipantsOrBuilderList(); + /** + * + * + *
+   * List of participants in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Participant participants = 1; + */ + com.google.apps.meet.v2.ParticipantOrBuilder getParticipantsOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the participants. Unset if all participants are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total, exact number of `participants`. By default, this field isn't
+   * included in the response. Set the field mask in
+   * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters)
+   * to receive this field in the response.
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequest.java new file mode 100644 index 000000000000..75308184eb19 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request for ListRecordings method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListRecordingsRequest} + */ +public final class ListRecordingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListRecordingsRequest) + ListRecordingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRecordingsRequest.newBuilder() to construct. + private ListRecordingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRecordingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRecordingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListRecordingsRequest.class, + com.google.apps.meet.v2.ListRecordingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Maximum number of recordings to return. The service might return fewer
+   * than this value.
+   * If unspecified, at most 10 recordings are returned.
+   * The maximum value is 100; values above 100 are coerced to 100.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListRecordingsRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListRecordingsRequest other = + (com.google.apps.meet.v2.ListRecordingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListRecordingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for ListRecordings method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListRecordingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListRecordingsRequest) + com.google.apps.meet.v2.ListRecordingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListRecordingsRequest.class, + com.google.apps.meet.v2.ListRecordingsRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListRecordingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListRecordingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsRequest build() { + com.google.apps.meet.v2.ListRecordingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsRequest buildPartial() { + com.google.apps.meet.v2.ListRecordingsRequest result = + new com.google.apps.meet.v2.ListRecordingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ListRecordingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListRecordingsRequest) { + return mergeFrom((com.google.apps.meet.v2.ListRecordingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListRecordingsRequest other) { + if (other == com.google.apps.meet.v2.ListRecordingsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Maximum number of recordings to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 10 recordings are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of recordings to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 10 recordings are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of recordings to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 10 recordings are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListRecordingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListRecordingsRequest) + private static final com.google.apps.meet.v2.ListRecordingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListRecordingsRequest(); + } + + public static com.google.apps.meet.v2.ListRecordingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecordingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequestOrBuilder.java new file mode 100644 index 000000000000..4bd1ff1212e6 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListRecordingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListRecordingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Maximum number of recordings to return. The service might return fewer
+   * than this value.
+   * If unspecified, at most 10 recordings are returned.
+   * The maximum value is 100; values above 100 are coerced to 100.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponse.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponse.java new file mode 100644 index 000000000000..f538880ca482 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponse.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Response for ListRecordings method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListRecordingsResponse} + */ +public final class ListRecordingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListRecordingsResponse) + ListRecordingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRecordingsResponse.newBuilder() to construct. + private ListRecordingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRecordingsResponse() { + recordings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRecordingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListRecordingsResponse.class, + com.google.apps.meet.v2.ListRecordingsResponse.Builder.class); + } + + public static final int RECORDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List recordings_; + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + @java.lang.Override + public java.util.List getRecordingsList() { + return recordings_; + } + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + @java.lang.Override + public java.util.List + getRecordingsOrBuilderList() { + return recordings_; + } + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + @java.lang.Override + public int getRecordingsCount() { + return recordings_.size(); + } + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.Recording getRecordings(int index) { + return recordings_.get(index); + } + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.RecordingOrBuilder getRecordingsOrBuilder(int index) { + return recordings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the recordings. Unset if all recordings are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the recordings. Unset if all recordings are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < recordings_.size(); i++) { + output.writeMessage(1, recordings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < recordings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, recordings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListRecordingsResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListRecordingsResponse other = + (com.google.apps.meet.v2.ListRecordingsResponse) obj; + + if (!getRecordingsList().equals(other.getRecordingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecordingsCount() > 0) { + hash = (37 * hash) + RECORDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRecordingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListRecordingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for ListRecordings method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListRecordingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListRecordingsResponse) + com.google.apps.meet.v2.ListRecordingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListRecordingsResponse.class, + com.google.apps.meet.v2.ListRecordingsResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListRecordingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (recordingsBuilder_ == null) { + recordings_ = java.util.Collections.emptyList(); + } else { + recordings_ = null; + recordingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListRecordingsResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListRecordingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsResponse build() { + com.google.apps.meet.v2.ListRecordingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsResponse buildPartial() { + com.google.apps.meet.v2.ListRecordingsResponse result = + new com.google.apps.meet.v2.ListRecordingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.apps.meet.v2.ListRecordingsResponse result) { + if (recordingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + recordings_ = java.util.Collections.unmodifiableList(recordings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recordings_ = recordings_; + } else { + result.recordings_ = recordingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2.ListRecordingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListRecordingsResponse) { + return mergeFrom((com.google.apps.meet.v2.ListRecordingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListRecordingsResponse other) { + if (other == com.google.apps.meet.v2.ListRecordingsResponse.getDefaultInstance()) return this; + if (recordingsBuilder_ == null) { + if (!other.recordings_.isEmpty()) { + if (recordings_.isEmpty()) { + recordings_ = other.recordings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecordingsIsMutable(); + recordings_.addAll(other.recordings_); + } + onChanged(); + } + } else { + if (!other.recordings_.isEmpty()) { + if (recordingsBuilder_.isEmpty()) { + recordingsBuilder_.dispose(); + recordingsBuilder_ = null; + recordings_ = other.recordings_; + bitField0_ = (bitField0_ & ~0x00000001); + recordingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecordingsFieldBuilder() + : null; + } else { + recordingsBuilder_.addAllMessages(other.recordings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.apps.meet.v2.Recording m = + input.readMessage( + com.google.apps.meet.v2.Recording.parser(), extensionRegistry); + if (recordingsBuilder_ == null) { + ensureRecordingsIsMutable(); + recordings_.add(m); + } else { + recordingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List recordings_ = + java.util.Collections.emptyList(); + + private void ensureRecordingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recordings_ = new java.util.ArrayList(recordings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Recording, + com.google.apps.meet.v2.Recording.Builder, + com.google.apps.meet.v2.RecordingOrBuilder> + recordingsBuilder_; + + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public java.util.List getRecordingsList() { + if (recordingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recordings_); + } else { + return recordingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public int getRecordingsCount() { + if (recordingsBuilder_ == null) { + return recordings_.size(); + } else { + return recordingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public com.google.apps.meet.v2.Recording getRecordings(int index) { + if (recordingsBuilder_ == null) { + return recordings_.get(index); + } else { + return recordingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder setRecordings(int index, com.google.apps.meet.v2.Recording value) { + if (recordingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecordingsIsMutable(); + recordings_.set(index, value); + onChanged(); + } else { + recordingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder setRecordings( + int index, com.google.apps.meet.v2.Recording.Builder builderForValue) { + if (recordingsBuilder_ == null) { + ensureRecordingsIsMutable(); + recordings_.set(index, builderForValue.build()); + onChanged(); + } else { + recordingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder addRecordings(com.google.apps.meet.v2.Recording value) { + if (recordingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecordingsIsMutable(); + recordings_.add(value); + onChanged(); + } else { + recordingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder addRecordings(int index, com.google.apps.meet.v2.Recording value) { + if (recordingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecordingsIsMutable(); + recordings_.add(index, value); + onChanged(); + } else { + recordingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder addRecordings(com.google.apps.meet.v2.Recording.Builder builderForValue) { + if (recordingsBuilder_ == null) { + ensureRecordingsIsMutable(); + recordings_.add(builderForValue.build()); + onChanged(); + } else { + recordingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder addRecordings( + int index, com.google.apps.meet.v2.Recording.Builder builderForValue) { + if (recordingsBuilder_ == null) { + ensureRecordingsIsMutable(); + recordings_.add(index, builderForValue.build()); + onChanged(); + } else { + recordingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder addAllRecordings( + java.lang.Iterable values) { + if (recordingsBuilder_ == null) { + ensureRecordingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recordings_); + onChanged(); + } else { + recordingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder clearRecordings() { + if (recordingsBuilder_ == null) { + recordings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + recordingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public Builder removeRecordings(int index) { + if (recordingsBuilder_ == null) { + ensureRecordingsIsMutable(); + recordings_.remove(index); + onChanged(); + } else { + recordingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public com.google.apps.meet.v2.Recording.Builder getRecordingsBuilder(int index) { + return getRecordingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public com.google.apps.meet.v2.RecordingOrBuilder getRecordingsOrBuilder(int index) { + if (recordingsBuilder_ == null) { + return recordings_.get(index); + } else { + return recordingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public java.util.List + getRecordingsOrBuilderList() { + if (recordingsBuilder_ != null) { + return recordingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recordings_); + } + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public com.google.apps.meet.v2.Recording.Builder addRecordingsBuilder() { + return getRecordingsFieldBuilder() + .addBuilder(com.google.apps.meet.v2.Recording.getDefaultInstance()); + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public com.google.apps.meet.v2.Recording.Builder addRecordingsBuilder(int index) { + return getRecordingsFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2.Recording.getDefaultInstance()); + } + /** + * + * + *
+     * List of recordings in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + public java.util.List getRecordingsBuilderList() { + return getRecordingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Recording, + com.google.apps.meet.v2.Recording.Builder, + com.google.apps.meet.v2.RecordingOrBuilder> + getRecordingsFieldBuilder() { + if (recordingsBuilder_ == null) { + recordingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Recording, + com.google.apps.meet.v2.Recording.Builder, + com.google.apps.meet.v2.RecordingOrBuilder>( + recordings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + recordings_ = null; + } + return recordingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the recordings. Unset if all recordings are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the recordings. Unset if all recordings are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the recordings. Unset if all recordings are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the recordings. Unset if all recordings are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the recordings. Unset if all recordings are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListRecordingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListRecordingsResponse) + private static final com.google.apps.meet.v2.ListRecordingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListRecordingsResponse(); + } + + public static com.google.apps.meet.v2.ListRecordingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecordingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListRecordingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponseOrBuilder.java new file mode 100644 index 000000000000..88b4c8bbb06b --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListRecordingsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListRecordingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListRecordingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + java.util.List getRecordingsList(); + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + com.google.apps.meet.v2.Recording getRecordings(int index); + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + int getRecordingsCount(); + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + java.util.List getRecordingsOrBuilderList(); + /** + * + * + *
+   * List of recordings in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Recording recordings = 1; + */ + com.google.apps.meet.v2.RecordingOrBuilder getRecordingsOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the recordings. Unset if all recordings are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the recordings. Unset if all recordings are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequest.java new file mode 100644 index 000000000000..52e82f22d452 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequest.java @@ -0,0 +1,937 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request for ListTranscriptEntries method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptEntriesRequest} + */ +public final class ListTranscriptEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListTranscriptEntriesRequest) + ListTranscriptEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTranscriptEntriesRequest.newBuilder() to construct. + private ListTranscriptEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTranscriptEntriesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTranscriptEntriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptEntriesRequest.class, + com.google.apps.meet.v2.ListTranscriptEntriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Maximum number of entries to return. The service might return fewer than
+   * this value.
+   * If unspecified, at most 10 entries are returned.
+   * The maximum value is 100; values above 100 are coerced to 100.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListTranscriptEntriesRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListTranscriptEntriesRequest other = + (com.google.apps.meet.v2.ListTranscriptEntriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListTranscriptEntriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for ListTranscriptEntries method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptEntriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListTranscriptEntriesRequest) + com.google.apps.meet.v2.ListTranscriptEntriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptEntriesRequest.class, + com.google.apps.meet.v2.ListTranscriptEntriesRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListTranscriptEntriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListTranscriptEntriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesRequest build() { + com.google.apps.meet.v2.ListTranscriptEntriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesRequest buildPartial() { + com.google.apps.meet.v2.ListTranscriptEntriesRequest result = + new com.google.apps.meet.v2.ListTranscriptEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ListTranscriptEntriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListTranscriptEntriesRequest) { + return mergeFrom((com.google.apps.meet.v2.ListTranscriptEntriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListTranscriptEntriesRequest other) { + if (other == com.google.apps.meet.v2.ListTranscriptEntriesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Maximum number of entries to return. The service might return fewer than
+     * this value.
+     * If unspecified, at most 10 entries are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of entries to return. The service might return fewer than
+     * this value.
+     * If unspecified, at most 10 entries are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of entries to return. The service might return fewer than
+     * this value.
+     * If unspecified, at most 10 entries are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListTranscriptEntriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListTranscriptEntriesRequest) + private static final com.google.apps.meet.v2.ListTranscriptEntriesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListTranscriptEntriesRequest(); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTranscriptEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequestOrBuilder.java new file mode 100644 index 000000000000..267e8bfb37b6 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListTranscriptEntriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListTranscriptEntriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format:
+   * `conferenceRecords/{conference_record}/transcripts/{transcript}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Maximum number of entries to return. The service might return fewer than
+   * this value.
+   * If unspecified, at most 10 entries are returned.
+   * The maximum value is 100; values above 100 are coerced to 100.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponse.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponse.java new file mode 100644 index 000000000000..2ab35ec5c59f --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponse.java @@ -0,0 +1,1133 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Response for ListTranscriptEntries method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptEntriesResponse} + */ +public final class ListTranscriptEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListTranscriptEntriesResponse) + ListTranscriptEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTranscriptEntriesResponse.newBuilder() to construct. + private ListTranscriptEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTranscriptEntriesResponse() { + transcriptEntries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTranscriptEntriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptEntriesResponse.class, + com.google.apps.meet.v2.ListTranscriptEntriesResponse.Builder.class); + } + + public static final int TRANSCRIPT_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List transcriptEntries_; + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + @java.lang.Override + public java.util.List getTranscriptEntriesList() { + return transcriptEntries_; + } + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + @java.lang.Override + public java.util.List + getTranscriptEntriesOrBuilderList() { + return transcriptEntries_; + } + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + @java.lang.Override + public int getTranscriptEntriesCount() { + return transcriptEntries_.size(); + } + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.TranscriptEntry getTranscriptEntries(int index) { + return transcriptEntries_.get(index); + } + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.TranscriptEntryOrBuilder getTranscriptEntriesOrBuilder(int index) { + return transcriptEntries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcript entries. Unset if all entries are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcript entries. Unset if all entries are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < transcriptEntries_.size(); i++) { + output.writeMessage(1, transcriptEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < transcriptEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, transcriptEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListTranscriptEntriesResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListTranscriptEntriesResponse other = + (com.google.apps.meet.v2.ListTranscriptEntriesResponse) obj; + + if (!getTranscriptEntriesList().equals(other.getTranscriptEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTranscriptEntriesCount() > 0) { + hash = (37 * hash) + TRANSCRIPT_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getTranscriptEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2.ListTranscriptEntriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for ListTranscriptEntries method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptEntriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListTranscriptEntriesResponse) + com.google.apps.meet.v2.ListTranscriptEntriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptEntriesResponse.class, + com.google.apps.meet.v2.ListTranscriptEntriesResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListTranscriptEntriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (transcriptEntriesBuilder_ == null) { + transcriptEntries_ = java.util.Collections.emptyList(); + } else { + transcriptEntries_ = null; + transcriptEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListTranscriptEntriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesResponse build() { + com.google.apps.meet.v2.ListTranscriptEntriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesResponse buildPartial() { + com.google.apps.meet.v2.ListTranscriptEntriesResponse result = + new com.google.apps.meet.v2.ListTranscriptEntriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.apps.meet.v2.ListTranscriptEntriesResponse result) { + if (transcriptEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + transcriptEntries_ = java.util.Collections.unmodifiableList(transcriptEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.transcriptEntries_ = transcriptEntries_; + } else { + result.transcriptEntries_ = transcriptEntriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2.ListTranscriptEntriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListTranscriptEntriesResponse) { + return mergeFrom((com.google.apps.meet.v2.ListTranscriptEntriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListTranscriptEntriesResponse other) { + if (other == com.google.apps.meet.v2.ListTranscriptEntriesResponse.getDefaultInstance()) + return this; + if (transcriptEntriesBuilder_ == null) { + if (!other.transcriptEntries_.isEmpty()) { + if (transcriptEntries_.isEmpty()) { + transcriptEntries_ = other.transcriptEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.addAll(other.transcriptEntries_); + } + onChanged(); + } + } else { + if (!other.transcriptEntries_.isEmpty()) { + if (transcriptEntriesBuilder_.isEmpty()) { + transcriptEntriesBuilder_.dispose(); + transcriptEntriesBuilder_ = null; + transcriptEntries_ = other.transcriptEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + transcriptEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTranscriptEntriesFieldBuilder() + : null; + } else { + transcriptEntriesBuilder_.addAllMessages(other.transcriptEntries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.apps.meet.v2.TranscriptEntry m = + input.readMessage( + com.google.apps.meet.v2.TranscriptEntry.parser(), extensionRegistry); + if (transcriptEntriesBuilder_ == null) { + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.add(m); + } else { + transcriptEntriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List transcriptEntries_ = + java.util.Collections.emptyList(); + + private void ensureTranscriptEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transcriptEntries_ = + new java.util.ArrayList(transcriptEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.TranscriptEntry, + com.google.apps.meet.v2.TranscriptEntry.Builder, + com.google.apps.meet.v2.TranscriptEntryOrBuilder> + transcriptEntriesBuilder_; + + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public java.util.List getTranscriptEntriesList() { + if (transcriptEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(transcriptEntries_); + } else { + return transcriptEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public int getTranscriptEntriesCount() { + if (transcriptEntriesBuilder_ == null) { + return transcriptEntries_.size(); + } else { + return transcriptEntriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public com.google.apps.meet.v2.TranscriptEntry getTranscriptEntries(int index) { + if (transcriptEntriesBuilder_ == null) { + return transcriptEntries_.get(index); + } else { + return transcriptEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder setTranscriptEntries(int index, com.google.apps.meet.v2.TranscriptEntry value) { + if (transcriptEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.set(index, value); + onChanged(); + } else { + transcriptEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder setTranscriptEntries( + int index, com.google.apps.meet.v2.TranscriptEntry.Builder builderForValue) { + if (transcriptEntriesBuilder_ == null) { + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + transcriptEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder addTranscriptEntries(com.google.apps.meet.v2.TranscriptEntry value) { + if (transcriptEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.add(value); + onChanged(); + } else { + transcriptEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder addTranscriptEntries(int index, com.google.apps.meet.v2.TranscriptEntry value) { + if (transcriptEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.add(index, value); + onChanged(); + } else { + transcriptEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder addTranscriptEntries( + com.google.apps.meet.v2.TranscriptEntry.Builder builderForValue) { + if (transcriptEntriesBuilder_ == null) { + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.add(builderForValue.build()); + onChanged(); + } else { + transcriptEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder addTranscriptEntries( + int index, com.google.apps.meet.v2.TranscriptEntry.Builder builderForValue) { + if (transcriptEntriesBuilder_ == null) { + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + transcriptEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder addAllTranscriptEntries( + java.lang.Iterable values) { + if (transcriptEntriesBuilder_ == null) { + ensureTranscriptEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transcriptEntries_); + onChanged(); + } else { + transcriptEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder clearTranscriptEntries() { + if (transcriptEntriesBuilder_ == null) { + transcriptEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + transcriptEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public Builder removeTranscriptEntries(int index) { + if (transcriptEntriesBuilder_ == null) { + ensureTranscriptEntriesIsMutable(); + transcriptEntries_.remove(index); + onChanged(); + } else { + transcriptEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public com.google.apps.meet.v2.TranscriptEntry.Builder getTranscriptEntriesBuilder(int index) { + return getTranscriptEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public com.google.apps.meet.v2.TranscriptEntryOrBuilder getTranscriptEntriesOrBuilder( + int index) { + if (transcriptEntriesBuilder_ == null) { + return transcriptEntries_.get(index); + } else { + return transcriptEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public java.util.List + getTranscriptEntriesOrBuilderList() { + if (transcriptEntriesBuilder_ != null) { + return transcriptEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transcriptEntries_); + } + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public com.google.apps.meet.v2.TranscriptEntry.Builder addTranscriptEntriesBuilder() { + return getTranscriptEntriesFieldBuilder() + .addBuilder(com.google.apps.meet.v2.TranscriptEntry.getDefaultInstance()); + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public com.google.apps.meet.v2.TranscriptEntry.Builder addTranscriptEntriesBuilder(int index) { + return getTranscriptEntriesFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2.TranscriptEntry.getDefaultInstance()); + } + /** + * + * + *
+     * List of TranscriptEntries in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + public java.util.List + getTranscriptEntriesBuilderList() { + return getTranscriptEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.TranscriptEntry, + com.google.apps.meet.v2.TranscriptEntry.Builder, + com.google.apps.meet.v2.TranscriptEntryOrBuilder> + getTranscriptEntriesFieldBuilder() { + if (transcriptEntriesBuilder_ == null) { + transcriptEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.TranscriptEntry, + com.google.apps.meet.v2.TranscriptEntry.Builder, + com.google.apps.meet.v2.TranscriptEntryOrBuilder>( + transcriptEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + transcriptEntries_ = null; + } + return transcriptEntriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcript entries. Unset if all entries are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcript entries. Unset if all entries are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcript entries. Unset if all entries are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcript entries. Unset if all entries are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcript entries. Unset if all entries are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListTranscriptEntriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListTranscriptEntriesResponse) + private static final com.google.apps.meet.v2.ListTranscriptEntriesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListTranscriptEntriesResponse(); + } + + public static com.google.apps.meet.v2.ListTranscriptEntriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTranscriptEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptEntriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponseOrBuilder.java new file mode 100644 index 000000000000..ad3e050c6518 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptEntriesResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListTranscriptEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListTranscriptEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + java.util.List getTranscriptEntriesList(); + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + com.google.apps.meet.v2.TranscriptEntry getTranscriptEntries(int index); + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + int getTranscriptEntriesCount(); + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + java.util.List + getTranscriptEntriesOrBuilderList(); + /** + * + * + *
+   * List of TranscriptEntries in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; + */ + com.google.apps.meet.v2.TranscriptEntryOrBuilder getTranscriptEntriesOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcript entries. Unset if all entries are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcript entries. Unset if all entries are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequest.java new file mode 100644 index 000000000000..1eabb7e3da5c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request for ListTranscripts method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptsRequest} + */ +public final class ListTranscriptsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListTranscriptsRequest) + ListTranscriptsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTranscriptsRequest.newBuilder() to construct. + private ListTranscriptsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTranscriptsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTranscriptsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptsRequest.class, + com.google.apps.meet.v2.ListTranscriptsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Maximum number of transcripts to return. The service might return fewer
+   * than this value.
+   * If unspecified, at most 10 transcripts are returned.
+   * The maximum value is 100; values above 100 are coerced to 100.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListTranscriptsRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListTranscriptsRequest other = + (com.google.apps.meet.v2.ListTranscriptsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListTranscriptsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for ListTranscripts method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListTranscriptsRequest) + com.google.apps.meet.v2.ListTranscriptsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptsRequest.class, + com.google.apps.meet.v2.ListTranscriptsRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListTranscriptsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListTranscriptsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsRequest build() { + com.google.apps.meet.v2.ListTranscriptsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsRequest buildPartial() { + com.google.apps.meet.v2.ListTranscriptsRequest result = + new com.google.apps.meet.v2.ListTranscriptsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ListTranscriptsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListTranscriptsRequest) { + return mergeFrom((com.google.apps.meet.v2.ListTranscriptsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListTranscriptsRequest other) { + if (other == com.google.apps.meet.v2.ListTranscriptsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `conferenceRecords/{conference_record}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Maximum number of transcripts to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 10 transcripts are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of transcripts to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 10 transcripts are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of transcripts to return. The service might return fewer
+     * than this value.
+     * If unspecified, at most 10 transcripts are returned.
+     * The maximum value is 100; values above 100 are coerced to 100.
+     * Maximum might change in the future.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Page token returned from previous List Call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListTranscriptsRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListTranscriptsRequest) + private static final com.google.apps.meet.v2.ListTranscriptsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListTranscriptsRequest(); + } + + public static com.google.apps.meet.v2.ListTranscriptsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTranscriptsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequestOrBuilder.java new file mode 100644 index 000000000000..7984512d8a23 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListTranscriptsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListTranscriptsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: `conferenceRecords/{conference_record}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Maximum number of transcripts to return. The service might return fewer
+   * than this value.
+   * If unspecified, at most 10 transcripts are returned.
+   * The maximum value is 100; values above 100 are coerced to 100.
+   * Maximum might change in the future.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponse.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponse.java new file mode 100644 index 000000000000..8ad9e396a01d --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponse.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Response for ListTranscripts method.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptsResponse} + */ +public final class ListTranscriptsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ListTranscriptsResponse) + ListTranscriptsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTranscriptsResponse.newBuilder() to construct. + private ListTranscriptsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTranscriptsResponse() { + transcripts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTranscriptsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptsResponse.class, + com.google.apps.meet.v2.ListTranscriptsResponse.Builder.class); + } + + public static final int TRANSCRIPTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List transcripts_; + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + @java.lang.Override + public java.util.List getTranscriptsList() { + return transcripts_; + } + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + @java.lang.Override + public java.util.List + getTranscriptsOrBuilderList() { + return transcripts_; + } + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + @java.lang.Override + public int getTranscriptsCount() { + return transcripts_.size(); + } + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.Transcript getTranscripts(int index) { + return transcripts_.get(index); + } + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2.TranscriptOrBuilder getTranscriptsOrBuilder(int index) { + return transcripts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcripts. Unset if all transcripts are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcripts. Unset if all transcripts are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < transcripts_.size(); i++) { + output.writeMessage(1, transcripts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < transcripts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transcripts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ListTranscriptsResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ListTranscriptsResponse other = + (com.google.apps.meet.v2.ListTranscriptsResponse) obj; + + if (!getTranscriptsList().equals(other.getTranscriptsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTranscriptsCount() > 0) { + hash = (37 * hash) + TRANSCRIPTS_FIELD_NUMBER; + hash = (53 * hash) + getTranscriptsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ListTranscriptsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for ListTranscripts method.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ListTranscriptsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ListTranscriptsResponse) + com.google.apps.meet.v2.ListTranscriptsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ListTranscriptsResponse.class, + com.google.apps.meet.v2.ListTranscriptsResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ListTranscriptsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (transcriptsBuilder_ == null) { + transcripts_ = java.util.Collections.emptyList(); + } else { + transcripts_ = null; + transcriptsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_ListTranscriptsResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2.ListTranscriptsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsResponse build() { + com.google.apps.meet.v2.ListTranscriptsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsResponse buildPartial() { + com.google.apps.meet.v2.ListTranscriptsResponse result = + new com.google.apps.meet.v2.ListTranscriptsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.apps.meet.v2.ListTranscriptsResponse result) { + if (transcriptsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + transcripts_ = java.util.Collections.unmodifiableList(transcripts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.transcripts_ = transcripts_; + } else { + result.transcripts_ = transcriptsBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2.ListTranscriptsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ListTranscriptsResponse) { + return mergeFrom((com.google.apps.meet.v2.ListTranscriptsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ListTranscriptsResponse other) { + if (other == com.google.apps.meet.v2.ListTranscriptsResponse.getDefaultInstance()) + return this; + if (transcriptsBuilder_ == null) { + if (!other.transcripts_.isEmpty()) { + if (transcripts_.isEmpty()) { + transcripts_ = other.transcripts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTranscriptsIsMutable(); + transcripts_.addAll(other.transcripts_); + } + onChanged(); + } + } else { + if (!other.transcripts_.isEmpty()) { + if (transcriptsBuilder_.isEmpty()) { + transcriptsBuilder_.dispose(); + transcriptsBuilder_ = null; + transcripts_ = other.transcripts_; + bitField0_ = (bitField0_ & ~0x00000001); + transcriptsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTranscriptsFieldBuilder() + : null; + } else { + transcriptsBuilder_.addAllMessages(other.transcripts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.apps.meet.v2.Transcript m = + input.readMessage( + com.google.apps.meet.v2.Transcript.parser(), extensionRegistry); + if (transcriptsBuilder_ == null) { + ensureTranscriptsIsMutable(); + transcripts_.add(m); + } else { + transcriptsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List transcripts_ = + java.util.Collections.emptyList(); + + private void ensureTranscriptsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transcripts_ = new java.util.ArrayList(transcripts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Transcript, + com.google.apps.meet.v2.Transcript.Builder, + com.google.apps.meet.v2.TranscriptOrBuilder> + transcriptsBuilder_; + + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public java.util.List getTranscriptsList() { + if (transcriptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(transcripts_); + } else { + return transcriptsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public int getTranscriptsCount() { + if (transcriptsBuilder_ == null) { + return transcripts_.size(); + } else { + return transcriptsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public com.google.apps.meet.v2.Transcript getTranscripts(int index) { + if (transcriptsBuilder_ == null) { + return transcripts_.get(index); + } else { + return transcriptsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder setTranscripts(int index, com.google.apps.meet.v2.Transcript value) { + if (transcriptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranscriptsIsMutable(); + transcripts_.set(index, value); + onChanged(); + } else { + transcriptsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder setTranscripts( + int index, com.google.apps.meet.v2.Transcript.Builder builderForValue) { + if (transcriptsBuilder_ == null) { + ensureTranscriptsIsMutable(); + transcripts_.set(index, builderForValue.build()); + onChanged(); + } else { + transcriptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder addTranscripts(com.google.apps.meet.v2.Transcript value) { + if (transcriptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranscriptsIsMutable(); + transcripts_.add(value); + onChanged(); + } else { + transcriptsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder addTranscripts(int index, com.google.apps.meet.v2.Transcript value) { + if (transcriptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranscriptsIsMutable(); + transcripts_.add(index, value); + onChanged(); + } else { + transcriptsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder addTranscripts(com.google.apps.meet.v2.Transcript.Builder builderForValue) { + if (transcriptsBuilder_ == null) { + ensureTranscriptsIsMutable(); + transcripts_.add(builderForValue.build()); + onChanged(); + } else { + transcriptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder addTranscripts( + int index, com.google.apps.meet.v2.Transcript.Builder builderForValue) { + if (transcriptsBuilder_ == null) { + ensureTranscriptsIsMutable(); + transcripts_.add(index, builderForValue.build()); + onChanged(); + } else { + transcriptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder addAllTranscripts( + java.lang.Iterable values) { + if (transcriptsBuilder_ == null) { + ensureTranscriptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transcripts_); + onChanged(); + } else { + transcriptsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder clearTranscripts() { + if (transcriptsBuilder_ == null) { + transcripts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + transcriptsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public Builder removeTranscripts(int index) { + if (transcriptsBuilder_ == null) { + ensureTranscriptsIsMutable(); + transcripts_.remove(index); + onChanged(); + } else { + transcriptsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public com.google.apps.meet.v2.Transcript.Builder getTranscriptsBuilder(int index) { + return getTranscriptsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public com.google.apps.meet.v2.TranscriptOrBuilder getTranscriptsOrBuilder(int index) { + if (transcriptsBuilder_ == null) { + return transcripts_.get(index); + } else { + return transcriptsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public java.util.List + getTranscriptsOrBuilderList() { + if (transcriptsBuilder_ != null) { + return transcriptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transcripts_); + } + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public com.google.apps.meet.v2.Transcript.Builder addTranscriptsBuilder() { + return getTranscriptsFieldBuilder() + .addBuilder(com.google.apps.meet.v2.Transcript.getDefaultInstance()); + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public com.google.apps.meet.v2.Transcript.Builder addTranscriptsBuilder(int index) { + return getTranscriptsFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2.Transcript.getDefaultInstance()); + } + /** + * + * + *
+     * List of transcripts in one page.
+     * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + public java.util.List getTranscriptsBuilderList() { + return getTranscriptsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Transcript, + com.google.apps.meet.v2.Transcript.Builder, + com.google.apps.meet.v2.TranscriptOrBuilder> + getTranscriptsFieldBuilder() { + if (transcriptsBuilder_ == null) { + transcriptsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2.Transcript, + com.google.apps.meet.v2.Transcript.Builder, + com.google.apps.meet.v2.TranscriptOrBuilder>( + transcripts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + transcripts_ = null; + } + return transcriptsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcripts. Unset if all transcripts are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcripts. Unset if all transcripts are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcripts. Unset if all transcripts are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcripts. Unset if all transcripts are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further List call if current List doesn't
+     * include all the transcripts. Unset if all transcripts are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ListTranscriptsResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ListTranscriptsResponse) + private static final com.google.apps.meet.v2.ListTranscriptsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ListTranscriptsResponse(); + } + + public static com.google.apps.meet.v2.ListTranscriptsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTranscriptsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ListTranscriptsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponseOrBuilder.java new file mode 100644 index 000000000000..60979120647c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListTranscriptsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ListTranscriptsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ListTranscriptsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + java.util.List getTranscriptsList(); + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + com.google.apps.meet.v2.Transcript getTranscripts(int index); + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + int getTranscriptsCount(); + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + java.util.List + getTranscriptsOrBuilderList(); + /** + * + * + *
+   * List of transcripts in one page.
+   * 
+ * + * repeated .google.apps.meet.v2.Transcript transcripts = 1; + */ + com.google.apps.meet.v2.TranscriptOrBuilder getTranscriptsOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcripts. Unset if all transcripts are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further List call if current List doesn't
+   * include all the transcripts. Unset if all transcripts are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Participant.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Participant.java new file mode 100644 index 000000000000..fe5ae6469328 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Participant.java @@ -0,0 +1,2193 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * User who attended or is attending a conference.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.Participant} + */ +public final class Participant extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.Participant) + ParticipantOrBuilder { + private static final long serialVersionUID = 0L; + // Use Participant.newBuilder() to construct. + private Participant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Participant() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Participant(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Participant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Participant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Participant.class, + com.google.apps.meet.v2.Participant.Builder.class); + } + + private int bitField0_; + private int userCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object user_; + + public enum UserCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SIGNEDIN_USER(4), + ANONYMOUS_USER(5), + PHONE_USER(6), + USER_NOT_SET(0); + private final int value; + + private UserCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserCase valueOf(int value) { + return forNumber(value); + } + + public static UserCase forNumber(int value) { + switch (value) { + case 4: + return SIGNEDIN_USER; + case 5: + return ANONYMOUS_USER; + case 6: + return PHONE_USER; + case 0: + return USER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UserCase getUserCase() { + return UserCase.forNumber(userCase_); + } + + public static final int SIGNEDIN_USER_FIELD_NUMBER = 4; + /** + * + * + *
+   * Signed-in user.
+   * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + * + * @return Whether the signedinUser field is set. + */ + @java.lang.Override + public boolean hasSignedinUser() { + return userCase_ == 4; + } + /** + * + * + *
+   * Signed-in user.
+   * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + * + * @return The signedinUser. + */ + @java.lang.Override + public com.google.apps.meet.v2.SignedinUser getSignedinUser() { + if (userCase_ == 4) { + return (com.google.apps.meet.v2.SignedinUser) user_; + } + return com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } + /** + * + * + *
+   * Signed-in user.
+   * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + @java.lang.Override + public com.google.apps.meet.v2.SignedinUserOrBuilder getSignedinUserOrBuilder() { + if (userCase_ == 4) { + return (com.google.apps.meet.v2.SignedinUser) user_; + } + return com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } + + public static final int ANONYMOUS_USER_FIELD_NUMBER = 5; + /** + * + * + *
+   * Anonymous user.
+   * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + * + * @return Whether the anonymousUser field is set. + */ + @java.lang.Override + public boolean hasAnonymousUser() { + return userCase_ == 5; + } + /** + * + * + *
+   * Anonymous user.
+   * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + * + * @return The anonymousUser. + */ + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUser getAnonymousUser() { + if (userCase_ == 5) { + return (com.google.apps.meet.v2.AnonymousUser) user_; + } + return com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } + /** + * + * + *
+   * Anonymous user.
+   * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUserOrBuilder getAnonymousUserOrBuilder() { + if (userCase_ == 5) { + return (com.google.apps.meet.v2.AnonymousUser) user_; + } + return com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } + + public static final int PHONE_USER_FIELD_NUMBER = 6; + /** + * + * + *
+   * User calling from their phone.
+   * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + * + * @return Whether the phoneUser field is set. + */ + @java.lang.Override + public boolean hasPhoneUser() { + return userCase_ == 6; + } + /** + * + * + *
+   * User calling from their phone.
+   * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + * + * @return The phoneUser. + */ + @java.lang.Override + public com.google.apps.meet.v2.PhoneUser getPhoneUser() { + if (userCase_ == 6) { + return (com.google.apps.meet.v2.PhoneUser) user_; + } + return com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } + /** + * + * + *
+   * User calling from their phone.
+   * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + @java.lang.Override + public com.google.apps.meet.v2.PhoneUserOrBuilder getPhoneUserOrBuilder() { + if (userCase_ == 6) { + return (com.google.apps.meet.v2.PhoneUser) user_; + } + return com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of the participant.
+   * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the participant.
+   * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EARLIEST_START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp earliestStartTime_; + /** + * + * + *
+   * Output only. Time when the participant first joined the meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earliestStartTime field is set. + */ + @java.lang.Override + public boolean hasEarliestStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Time when the participant first joined the meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earliestStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEarliestStartTime() { + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; + } + /** + * + * + *
+   * Output only. Time when the participant first joined the meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; + } + + public static final int LATEST_END_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp latestEndTime_; + /** + * + * + *
+   * Output only. Time when the participant left the meeting for the last time.
+   * This can be null if it's an active meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestEndTime field is set. + */ + @java.lang.Override + public boolean hasLatestEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Time when the participant left the meeting for the last time.
+   * This can be null if it's an active meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestEndTime() { + return latestEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestEndTime_; + } + /** + * + * + *
+   * Output only. Time when the participant left the meeting for the last time.
+   * This can be null if it's an active meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestEndTimeOrBuilder() { + return latestEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestEndTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (userCase_ == 4) { + output.writeMessage(4, (com.google.apps.meet.v2.SignedinUser) user_); + } + if (userCase_ == 5) { + output.writeMessage(5, (com.google.apps.meet.v2.AnonymousUser) user_); + } + if (userCase_ == 6) { + output.writeMessage(6, (com.google.apps.meet.v2.PhoneUser) user_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getEarliestStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getLatestEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (userCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.apps.meet.v2.SignedinUser) user_); + } + if (userCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.apps.meet.v2.AnonymousUser) user_); + } + if (userCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.apps.meet.v2.PhoneUser) user_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEarliestStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLatestEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.Participant)) { + return super.equals(obj); + } + com.google.apps.meet.v2.Participant other = (com.google.apps.meet.v2.Participant) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEarliestStartTime() != other.hasEarliestStartTime()) return false; + if (hasEarliestStartTime()) { + if (!getEarliestStartTime().equals(other.getEarliestStartTime())) return false; + } + if (hasLatestEndTime() != other.hasLatestEndTime()) return false; + if (hasLatestEndTime()) { + if (!getLatestEndTime().equals(other.getLatestEndTime())) return false; + } + if (!getUserCase().equals(other.getUserCase())) return false; + switch (userCase_) { + case 4: + if (!getSignedinUser().equals(other.getSignedinUser())) return false; + break; + case 5: + if (!getAnonymousUser().equals(other.getAnonymousUser())) return false; + break; + case 6: + if (!getPhoneUser().equals(other.getPhoneUser())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasEarliestStartTime()) { + hash = (37 * hash) + EARLIEST_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEarliestStartTime().hashCode(); + } + if (hasLatestEndTime()) { + hash = (37 * hash) + LATEST_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestEndTime().hashCode(); + } + switch (userCase_) { + case 4: + hash = (37 * hash) + SIGNEDIN_USER_FIELD_NUMBER; + hash = (53 * hash) + getSignedinUser().hashCode(); + break; + case 5: + hash = (37 * hash) + ANONYMOUS_USER_FIELD_NUMBER; + hash = (53 * hash) + getAnonymousUser().hashCode(); + break; + case 6: + hash = (37 * hash) + PHONE_USER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneUser().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.Participant parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Participant parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Participant parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Participant parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Participant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Participant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Participant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Participant parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Participant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Participant parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Participant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Participant parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.Participant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User who attended or is attending a conference.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.Participant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.Participant) + com.google.apps.meet.v2.ParticipantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Participant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Participant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Participant.class, + com.google.apps.meet.v2.Participant.Builder.class); + } + + // Construct using com.google.apps.meet.v2.Participant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEarliestStartTimeFieldBuilder(); + getLatestEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (signedinUserBuilder_ != null) { + signedinUserBuilder_.clear(); + } + if (anonymousUserBuilder_ != null) { + anonymousUserBuilder_.clear(); + } + if (phoneUserBuilder_ != null) { + phoneUserBuilder_.clear(); + } + name_ = ""; + earliestStartTime_ = null; + if (earliestStartTimeBuilder_ != null) { + earliestStartTimeBuilder_.dispose(); + earliestStartTimeBuilder_ = null; + } + latestEndTime_ = null; + if (latestEndTimeBuilder_ != null) { + latestEndTimeBuilder_.dispose(); + latestEndTimeBuilder_ = null; + } + userCase_ = 0; + user_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Participant_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.Participant getDefaultInstanceForType() { + return com.google.apps.meet.v2.Participant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.Participant build() { + com.google.apps.meet.v2.Participant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.Participant buildPartial() { + com.google.apps.meet.v2.Participant result = new com.google.apps.meet.v2.Participant(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.Participant result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.earliestStartTime_ = + earliestStartTimeBuilder_ == null + ? earliestStartTime_ + : earliestStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.latestEndTime_ = + latestEndTimeBuilder_ == null ? latestEndTime_ : latestEndTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.apps.meet.v2.Participant result) { + result.userCase_ = userCase_; + result.user_ = this.user_; + if (userCase_ == 4 && signedinUserBuilder_ != null) { + result.user_ = signedinUserBuilder_.build(); + } + if (userCase_ == 5 && anonymousUserBuilder_ != null) { + result.user_ = anonymousUserBuilder_.build(); + } + if (userCase_ == 6 && phoneUserBuilder_ != null) { + result.user_ = phoneUserBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.Participant) { + return mergeFrom((com.google.apps.meet.v2.Participant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.Participant other) { + if (other == com.google.apps.meet.v2.Participant.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEarliestStartTime()) { + mergeEarliestStartTime(other.getEarliestStartTime()); + } + if (other.hasLatestEndTime()) { + mergeLatestEndTime(other.getLatestEndTime()); + } + switch (other.getUserCase()) { + case SIGNEDIN_USER: + { + mergeSignedinUser(other.getSignedinUser()); + break; + } + case ANONYMOUS_USER: + { + mergeAnonymousUser(other.getAnonymousUser()); + break; + } + case PHONE_USER: + { + mergePhoneUser(other.getPhoneUser()); + break; + } + case USER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 34: + { + input.readMessage(getSignedinUserFieldBuilder().getBuilder(), extensionRegistry); + userCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getAnonymousUserFieldBuilder().getBuilder(), extensionRegistry); + userCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getPhoneUserFieldBuilder().getBuilder(), extensionRegistry); + userCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getEarliestStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: + { + input.readMessage(getLatestEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int userCase_ = 0; + private java.lang.Object user_; + + public UserCase getUserCase() { + return UserCase.forNumber(userCase_); + } + + public Builder clearUser() { + userCase_ = 0; + user_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.SignedinUser, + com.google.apps.meet.v2.SignedinUser.Builder, + com.google.apps.meet.v2.SignedinUserOrBuilder> + signedinUserBuilder_; + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + * + * @return Whether the signedinUser field is set. + */ + @java.lang.Override + public boolean hasSignedinUser() { + return userCase_ == 4; + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + * + * @return The signedinUser. + */ + @java.lang.Override + public com.google.apps.meet.v2.SignedinUser getSignedinUser() { + if (signedinUserBuilder_ == null) { + if (userCase_ == 4) { + return (com.google.apps.meet.v2.SignedinUser) user_; + } + return com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } else { + if (userCase_ == 4) { + return signedinUserBuilder_.getMessage(); + } + return com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + public Builder setSignedinUser(com.google.apps.meet.v2.SignedinUser value) { + if (signedinUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + signedinUserBuilder_.setMessage(value); + } + userCase_ = 4; + return this; + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + public Builder setSignedinUser(com.google.apps.meet.v2.SignedinUser.Builder builderForValue) { + if (signedinUserBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + signedinUserBuilder_.setMessage(builderForValue.build()); + } + userCase_ = 4; + return this; + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + public Builder mergeSignedinUser(com.google.apps.meet.v2.SignedinUser value) { + if (signedinUserBuilder_ == null) { + if (userCase_ == 4 && user_ != com.google.apps.meet.v2.SignedinUser.getDefaultInstance()) { + user_ = + com.google.apps.meet.v2.SignedinUser.newBuilder( + (com.google.apps.meet.v2.SignedinUser) user_) + .mergeFrom(value) + .buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + if (userCase_ == 4) { + signedinUserBuilder_.mergeFrom(value); + } else { + signedinUserBuilder_.setMessage(value); + } + } + userCase_ = 4; + return this; + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + public Builder clearSignedinUser() { + if (signedinUserBuilder_ == null) { + if (userCase_ == 4) { + userCase_ = 0; + user_ = null; + onChanged(); + } + } else { + if (userCase_ == 4) { + userCase_ = 0; + user_ = null; + } + signedinUserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + public com.google.apps.meet.v2.SignedinUser.Builder getSignedinUserBuilder() { + return getSignedinUserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + @java.lang.Override + public com.google.apps.meet.v2.SignedinUserOrBuilder getSignedinUserOrBuilder() { + if ((userCase_ == 4) && (signedinUserBuilder_ != null)) { + return signedinUserBuilder_.getMessageOrBuilder(); + } else { + if (userCase_ == 4) { + return (com.google.apps.meet.v2.SignedinUser) user_; + } + return com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } + } + /** + * + * + *
+     * Signed-in user.
+     * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.SignedinUser, + com.google.apps.meet.v2.SignedinUser.Builder, + com.google.apps.meet.v2.SignedinUserOrBuilder> + getSignedinUserFieldBuilder() { + if (signedinUserBuilder_ == null) { + if (!(userCase_ == 4)) { + user_ = com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } + signedinUserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.SignedinUser, + com.google.apps.meet.v2.SignedinUser.Builder, + com.google.apps.meet.v2.SignedinUserOrBuilder>( + (com.google.apps.meet.v2.SignedinUser) user_, getParentForChildren(), isClean()); + user_ = null; + } + userCase_ = 4; + onChanged(); + return signedinUserBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.AnonymousUser, + com.google.apps.meet.v2.AnonymousUser.Builder, + com.google.apps.meet.v2.AnonymousUserOrBuilder> + anonymousUserBuilder_; + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + * + * @return Whether the anonymousUser field is set. + */ + @java.lang.Override + public boolean hasAnonymousUser() { + return userCase_ == 5; + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + * + * @return The anonymousUser. + */ + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUser getAnonymousUser() { + if (anonymousUserBuilder_ == null) { + if (userCase_ == 5) { + return (com.google.apps.meet.v2.AnonymousUser) user_; + } + return com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } else { + if (userCase_ == 5) { + return anonymousUserBuilder_.getMessage(); + } + return com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + public Builder setAnonymousUser(com.google.apps.meet.v2.AnonymousUser value) { + if (anonymousUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + anonymousUserBuilder_.setMessage(value); + } + userCase_ = 5; + return this; + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + public Builder setAnonymousUser(com.google.apps.meet.v2.AnonymousUser.Builder builderForValue) { + if (anonymousUserBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + anonymousUserBuilder_.setMessage(builderForValue.build()); + } + userCase_ = 5; + return this; + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + public Builder mergeAnonymousUser(com.google.apps.meet.v2.AnonymousUser value) { + if (anonymousUserBuilder_ == null) { + if (userCase_ == 5 && user_ != com.google.apps.meet.v2.AnonymousUser.getDefaultInstance()) { + user_ = + com.google.apps.meet.v2.AnonymousUser.newBuilder( + (com.google.apps.meet.v2.AnonymousUser) user_) + .mergeFrom(value) + .buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + if (userCase_ == 5) { + anonymousUserBuilder_.mergeFrom(value); + } else { + anonymousUserBuilder_.setMessage(value); + } + } + userCase_ = 5; + return this; + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + public Builder clearAnonymousUser() { + if (anonymousUserBuilder_ == null) { + if (userCase_ == 5) { + userCase_ = 0; + user_ = null; + onChanged(); + } + } else { + if (userCase_ == 5) { + userCase_ = 0; + user_ = null; + } + anonymousUserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + public com.google.apps.meet.v2.AnonymousUser.Builder getAnonymousUserBuilder() { + return getAnonymousUserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + @java.lang.Override + public com.google.apps.meet.v2.AnonymousUserOrBuilder getAnonymousUserOrBuilder() { + if ((userCase_ == 5) && (anonymousUserBuilder_ != null)) { + return anonymousUserBuilder_.getMessageOrBuilder(); + } else { + if (userCase_ == 5) { + return (com.google.apps.meet.v2.AnonymousUser) user_; + } + return com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } + } + /** + * + * + *
+     * Anonymous user.
+     * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.AnonymousUser, + com.google.apps.meet.v2.AnonymousUser.Builder, + com.google.apps.meet.v2.AnonymousUserOrBuilder> + getAnonymousUserFieldBuilder() { + if (anonymousUserBuilder_ == null) { + if (!(userCase_ == 5)) { + user_ = com.google.apps.meet.v2.AnonymousUser.getDefaultInstance(); + } + anonymousUserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.AnonymousUser, + com.google.apps.meet.v2.AnonymousUser.Builder, + com.google.apps.meet.v2.AnonymousUserOrBuilder>( + (com.google.apps.meet.v2.AnonymousUser) user_, getParentForChildren(), isClean()); + user_ = null; + } + userCase_ = 5; + onChanged(); + return anonymousUserBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.PhoneUser, + com.google.apps.meet.v2.PhoneUser.Builder, + com.google.apps.meet.v2.PhoneUserOrBuilder> + phoneUserBuilder_; + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + * + * @return Whether the phoneUser field is set. + */ + @java.lang.Override + public boolean hasPhoneUser() { + return userCase_ == 6; + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + * + * @return The phoneUser. + */ + @java.lang.Override + public com.google.apps.meet.v2.PhoneUser getPhoneUser() { + if (phoneUserBuilder_ == null) { + if (userCase_ == 6) { + return (com.google.apps.meet.v2.PhoneUser) user_; + } + return com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } else { + if (userCase_ == 6) { + return phoneUserBuilder_.getMessage(); + } + return com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + public Builder setPhoneUser(com.google.apps.meet.v2.PhoneUser value) { + if (phoneUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + phoneUserBuilder_.setMessage(value); + } + userCase_ = 6; + return this; + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + public Builder setPhoneUser(com.google.apps.meet.v2.PhoneUser.Builder builderForValue) { + if (phoneUserBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + phoneUserBuilder_.setMessage(builderForValue.build()); + } + userCase_ = 6; + return this; + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + public Builder mergePhoneUser(com.google.apps.meet.v2.PhoneUser value) { + if (phoneUserBuilder_ == null) { + if (userCase_ == 6 && user_ != com.google.apps.meet.v2.PhoneUser.getDefaultInstance()) { + user_ = + com.google.apps.meet.v2.PhoneUser.newBuilder( + (com.google.apps.meet.v2.PhoneUser) user_) + .mergeFrom(value) + .buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + if (userCase_ == 6) { + phoneUserBuilder_.mergeFrom(value); + } else { + phoneUserBuilder_.setMessage(value); + } + } + userCase_ = 6; + return this; + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + public Builder clearPhoneUser() { + if (phoneUserBuilder_ == null) { + if (userCase_ == 6) { + userCase_ = 0; + user_ = null; + onChanged(); + } + } else { + if (userCase_ == 6) { + userCase_ = 0; + user_ = null; + } + phoneUserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + public com.google.apps.meet.v2.PhoneUser.Builder getPhoneUserBuilder() { + return getPhoneUserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + @java.lang.Override + public com.google.apps.meet.v2.PhoneUserOrBuilder getPhoneUserOrBuilder() { + if ((userCase_ == 6) && (phoneUserBuilder_ != null)) { + return phoneUserBuilder_.getMessageOrBuilder(); + } else { + if (userCase_ == 6) { + return (com.google.apps.meet.v2.PhoneUser) user_; + } + return com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } + } + /** + * + * + *
+     * User calling from their phone.
+     * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.PhoneUser, + com.google.apps.meet.v2.PhoneUser.Builder, + com.google.apps.meet.v2.PhoneUserOrBuilder> + getPhoneUserFieldBuilder() { + if (phoneUserBuilder_ == null) { + if (!(userCase_ == 6)) { + user_ = com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } + phoneUserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.PhoneUser, + com.google.apps.meet.v2.PhoneUser.Builder, + com.google.apps.meet.v2.PhoneUserOrBuilder>( + (com.google.apps.meet.v2.PhoneUser) user_, getParentForChildren(), isClean()); + user_ = null; + } + userCase_ = 6; + onChanged(); + return phoneUserBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the participant.
+     * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the participant.
+     * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the participant.
+     * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the participant.
+     * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the participant.
+     * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp earliestStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestStartTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earliestStartTime field is set. + */ + public boolean hasEarliestStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earliestStartTime. + */ + public com.google.protobuf.Timestamp getEarliestStartTime() { + if (earliestStartTimeBuilder_ == null) { + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; + } else { + return earliestStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { + if (earliestStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earliestStartTime_ = value; + } else { + earliestStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (earliestStartTimeBuilder_ == null) { + earliestStartTime_ = builderForValue.build(); + } else { + earliestStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { + if (earliestStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && earliestStartTime_ != null + && earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEarliestStartTimeBuilder().mergeFrom(value); + } else { + earliestStartTime_ = value; + } + } else { + earliestStartTimeBuilder_.mergeFrom(value); + } + if (earliestStartTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEarliestStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + earliestStartTime_ = null; + if (earliestStartTimeBuilder_ != null) { + earliestStartTimeBuilder_.dispose(); + earliestStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEarliestStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { + if (earliestStartTimeBuilder_ != null) { + return earliestStartTimeBuilder_.getMessageOrBuilder(); + } else { + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; + } + } + /** + * + * + *
+     * Output only. Time when the participant first joined the meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEarliestStartTimeFieldBuilder() { + if (earliestStartTimeBuilder_ == null) { + earliestStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestStartTime(), getParentForChildren(), isClean()); + earliestStartTime_ = null; + } + return earliestStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestEndTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestEndTime field is set. + */ + public boolean hasLatestEndTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestEndTime. + */ + public com.google.protobuf.Timestamp getLatestEndTime() { + if (latestEndTimeBuilder_ == null) { + return latestEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestEndTime_; + } else { + return latestEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestEndTime(com.google.protobuf.Timestamp value) { + if (latestEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestEndTime_ = value; + } else { + latestEndTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestEndTimeBuilder_ == null) { + latestEndTime_ = builderForValue.build(); + } else { + latestEndTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLatestEndTime(com.google.protobuf.Timestamp value) { + if (latestEndTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && latestEndTime_ != null + && latestEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLatestEndTimeBuilder().mergeFrom(value); + } else { + latestEndTime_ = value; + } + } else { + latestEndTimeBuilder_.mergeFrom(value); + } + if (latestEndTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLatestEndTime() { + bitField0_ = (bitField0_ & ~0x00000020); + latestEndTime_ = null; + if (latestEndTimeBuilder_ != null) { + latestEndTimeBuilder_.dispose(); + latestEndTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestEndTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getLatestEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestEndTimeOrBuilder() { + if (latestEndTimeBuilder_ != null) { + return latestEndTimeBuilder_.getMessageOrBuilder(); + } else { + return latestEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestEndTime_; + } + } + /** + * + * + *
+     * Output only. Time when the participant left the meeting for the last time.
+     * This can be null if it's an active meeting.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestEndTimeFieldBuilder() { + if (latestEndTimeBuilder_ == null) { + latestEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestEndTime(), getParentForChildren(), isClean()); + latestEndTime_ = null; + } + return latestEndTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.Participant) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.Participant) + private static final com.google.apps.meet.v2.Participant DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.Participant(); + } + + public static com.google.apps.meet.v2.Participant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Participant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.Participant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java new file mode 100644 index 000000000000..b4447d1ecde1 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ParticipantName implements ResourceName { + private static final PathTemplate CONFERENCE_RECORD_PARTICIPANT = + PathTemplate.createWithoutUrlEncoding( + "conferenceRecords/{conference_record}/participants/{participant}"); + private volatile Map fieldValuesMap; + private final String conferenceRecord; + private final String participant; + + @Deprecated + protected ParticipantName() { + conferenceRecord = null; + participant = null; + } + + private ParticipantName(Builder builder) { + conferenceRecord = Preconditions.checkNotNull(builder.getConferenceRecord()); + participant = Preconditions.checkNotNull(builder.getParticipant()); + } + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getParticipant() { + return participant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ParticipantName of(String conferenceRecord, String participant) { + return newBuilder().setConferenceRecord(conferenceRecord).setParticipant(participant).build(); + } + + public static String format(String conferenceRecord, String participant) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setParticipant(participant) + .build() + .toString(); + } + + public static ParticipantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + CONFERENCE_RECORD_PARTICIPANT.validatedMatch( + formattedString, "ParticipantName.parse: formattedString not in valid format"); + return of(matchMap.get("conference_record"), matchMap.get("participant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ParticipantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return CONFERENCE_RECORD_PARTICIPANT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (conferenceRecord != null) { + fieldMapBuilder.put("conference_record", conferenceRecord); + } + if (participant != null) { + fieldMapBuilder.put("participant", participant); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return CONFERENCE_RECORD_PARTICIPANT.instantiate( + "conference_record", conferenceRecord, "participant", participant); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ParticipantName that = ((ParticipantName) o); + return Objects.equals(this.conferenceRecord, that.conferenceRecord) + && Objects.equals(this.participant, that.participant); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(conferenceRecord); + h *= 1000003; + h ^= Objects.hashCode(participant); + return h; + } + + /** Builder for conferenceRecords/{conference_record}/participants/{participant}. */ + public static class Builder { + private String conferenceRecord; + private String participant; + + protected Builder() {} + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getParticipant() { + return participant; + } + + public Builder setConferenceRecord(String conferenceRecord) { + this.conferenceRecord = conferenceRecord; + return this; + } + + public Builder setParticipant(String participant) { + this.participant = participant; + return this; + } + + private Builder(ParticipantName participantName) { + this.conferenceRecord = participantName.conferenceRecord; + this.participant = participantName.participant; + } + + public ParticipantName build() { + return new ParticipantName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantOrBuilder.java new file mode 100644 index 000000000000..677f9669f560 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantOrBuilder.java @@ -0,0 +1,245 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ParticipantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.Participant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Signed-in user.
+   * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + * + * @return Whether the signedinUser field is set. + */ + boolean hasSignedinUser(); + /** + * + * + *
+   * Signed-in user.
+   * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + * + * @return The signedinUser. + */ + com.google.apps.meet.v2.SignedinUser getSignedinUser(); + /** + * + * + *
+   * Signed-in user.
+   * 
+ * + * .google.apps.meet.v2.SignedinUser signedin_user = 4; + */ + com.google.apps.meet.v2.SignedinUserOrBuilder getSignedinUserOrBuilder(); + + /** + * + * + *
+   * Anonymous user.
+   * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + * + * @return Whether the anonymousUser field is set. + */ + boolean hasAnonymousUser(); + /** + * + * + *
+   * Anonymous user.
+   * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + * + * @return The anonymousUser. + */ + com.google.apps.meet.v2.AnonymousUser getAnonymousUser(); + /** + * + * + *
+   * Anonymous user.
+   * 
+ * + * .google.apps.meet.v2.AnonymousUser anonymous_user = 5; + */ + com.google.apps.meet.v2.AnonymousUserOrBuilder getAnonymousUserOrBuilder(); + + /** + * + * + *
+   * User calling from their phone.
+   * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + * + * @return Whether the phoneUser field is set. + */ + boolean hasPhoneUser(); + /** + * + * + *
+   * User calling from their phone.
+   * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + * + * @return The phoneUser. + */ + com.google.apps.meet.v2.PhoneUser getPhoneUser(); + /** + * + * + *
+   * User calling from their phone.
+   * 
+ * + * .google.apps.meet.v2.PhoneUser phone_user = 6; + */ + com.google.apps.meet.v2.PhoneUserOrBuilder getPhoneUserOrBuilder(); + + /** + * + * + *
+   * Output only. Resource name of the participant.
+   * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the participant.
+   * Format: `conferenceRecords/{conference_record}/participants/{participant}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Time when the participant first joined the meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earliestStartTime field is set. + */ + boolean hasEarliestStartTime(); + /** + * + * + *
+   * Output only. Time when the participant first joined the meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earliestStartTime. + */ + com.google.protobuf.Timestamp getEarliestStartTime(); + /** + * + * + *
+   * Output only. Time when the participant first joined the meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when the participant left the meeting for the last time.
+   * This can be null if it's an active meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestEndTime field is set. + */ + boolean hasLatestEndTime(); + /** + * + * + *
+   * Output only. Time when the participant left the meeting for the last time.
+   * This can be null if it's an active meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestEndTime. + */ + com.google.protobuf.Timestamp getLatestEndTime(); + /** + * + * + *
+   * Output only. Time when the participant left the meeting for the last time.
+   * This can be null if it's an active meeting.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestEndTimeOrBuilder(); + + com.google.apps.meet.v2.Participant.UserCase getUserCase(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSession.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSession.java new file mode 100644 index 000000000000..c08fbe646791 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSession.java @@ -0,0 +1,1199 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Refers to each unique join or leave session when a user joins a conference
+ * from a device. Note that any time a user joins the conference a new unique ID
+ * is assigned. That means if a user joins a space multiple times from the same
+ * device, they're assigned different IDs, and are also be treated as different
+ * participant sessions.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.ParticipantSession} + */ +public final class ParticipantSession extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.ParticipantSession) + ParticipantSessionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParticipantSession.newBuilder() to construct. + private ParticipantSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParticipantSession() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParticipantSession(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ParticipantSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ParticipantSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ParticipantSession.class, + com.google.apps.meet.v2.ParticipantSession.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Session id.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier. Session id.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Timestamp when the user session starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the user session starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the user session starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Timestamp when the user session ends. Unset if the user
+   * session hasn’t ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the user session ends. Unset if the user
+   * session hasn’t ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the user session ends. Unset if the user
+   * session hasn’t ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.ParticipantSession)) { + return super.equals(obj); + } + com.google.apps.meet.v2.ParticipantSession other = + (com.google.apps.meet.v2.ParticipantSession) obj; + + if (!getName().equals(other.getName())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ParticipantSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ParticipantSession parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.ParticipantSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.ParticipantSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Refers to each unique join or leave session when a user joins a conference
+   * from a device. Note that any time a user joins the conference a new unique ID
+   * is assigned. That means if a user joins a space multiple times from the same
+   * device, they're assigned different IDs, and are also be treated as different
+   * participant sessions.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.ParticipantSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.ParticipantSession) + com.google.apps.meet.v2.ParticipantSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ParticipantSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ParticipantSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.ParticipantSession.class, + com.google.apps.meet.v2.ParticipantSession.Builder.class); + } + + // Construct using com.google.apps.meet.v2.ParticipantSession.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_ParticipantSession_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.ParticipantSession getDefaultInstanceForType() { + return com.google.apps.meet.v2.ParticipantSession.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.ParticipantSession build() { + com.google.apps.meet.v2.ParticipantSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.ParticipantSession buildPartial() { + com.google.apps.meet.v2.ParticipantSession result = + new com.google.apps.meet.v2.ParticipantSession(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.ParticipantSession result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.ParticipantSession) { + return mergeFrom((com.google.apps.meet.v2.ParticipantSession) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.ParticipantSession other) { + if (other == com.google.apps.meet.v2.ParticipantSession.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. Session id.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier. Session id.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier. Session id.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Session id.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Session id.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the user session starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the user session ends. Unset if the user
+     * session hasn’t ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.ParticipantSession) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.ParticipantSession) + private static final com.google.apps.meet.v2.ParticipantSession DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.ParticipantSession(); + } + + public static com.google.apps.meet.v2.ParticipantSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParticipantSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.ParticipantSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java new file mode 100644 index 000000000000..dd432b85dc5a --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ParticipantSessionName implements ResourceName { + private static final PathTemplate CONFERENCE_RECORD_PARTICIPANT_PARTICIPANT_SESSION = + PathTemplate.createWithoutUrlEncoding( + "conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session}"); + private volatile Map fieldValuesMap; + private final String conferenceRecord; + private final String participant; + private final String participantSession; + + @Deprecated + protected ParticipantSessionName() { + conferenceRecord = null; + participant = null; + participantSession = null; + } + + private ParticipantSessionName(Builder builder) { + conferenceRecord = Preconditions.checkNotNull(builder.getConferenceRecord()); + participant = Preconditions.checkNotNull(builder.getParticipant()); + participantSession = Preconditions.checkNotNull(builder.getParticipantSession()); + } + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getParticipant() { + return participant; + } + + public String getParticipantSession() { + return participantSession; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ParticipantSessionName of( + String conferenceRecord, String participant, String participantSession) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setParticipant(participant) + .setParticipantSession(participantSession) + .build(); + } + + public static String format( + String conferenceRecord, String participant, String participantSession) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setParticipant(participant) + .setParticipantSession(participantSession) + .build() + .toString(); + } + + public static ParticipantSessionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + CONFERENCE_RECORD_PARTICIPANT_PARTICIPANT_SESSION.validatedMatch( + formattedString, "ParticipantSessionName.parse: formattedString not in valid format"); + return of( + matchMap.get("conference_record"), + matchMap.get("participant"), + matchMap.get("participant_session")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ParticipantSessionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return CONFERENCE_RECORD_PARTICIPANT_PARTICIPANT_SESSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (conferenceRecord != null) { + fieldMapBuilder.put("conference_record", conferenceRecord); + } + if (participant != null) { + fieldMapBuilder.put("participant", participant); + } + if (participantSession != null) { + fieldMapBuilder.put("participant_session", participantSession); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return CONFERENCE_RECORD_PARTICIPANT_PARTICIPANT_SESSION.instantiate( + "conference_record", + conferenceRecord, + "participant", + participant, + "participant_session", + participantSession); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ParticipantSessionName that = ((ParticipantSessionName) o); + return Objects.equals(this.conferenceRecord, that.conferenceRecord) + && Objects.equals(this.participant, that.participant) + && Objects.equals(this.participantSession, that.participantSession); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(conferenceRecord); + h *= 1000003; + h ^= Objects.hashCode(participant); + h *= 1000003; + h ^= Objects.hashCode(participantSession); + return h; + } + + /** + * Builder for + * conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session}. + */ + public static class Builder { + private String conferenceRecord; + private String participant; + private String participantSession; + + protected Builder() {} + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getParticipant() { + return participant; + } + + public String getParticipantSession() { + return participantSession; + } + + public Builder setConferenceRecord(String conferenceRecord) { + this.conferenceRecord = conferenceRecord; + return this; + } + + public Builder setParticipant(String participant) { + this.participant = participant; + return this; + } + + public Builder setParticipantSession(String participantSession) { + this.participantSession = participantSession; + return this; + } + + private Builder(ParticipantSessionName participantSessionName) { + this.conferenceRecord = participantSessionName.conferenceRecord; + this.participant = participantSessionName.participant; + this.participantSession = participantSessionName.participantSession; + } + + public ParticipantSessionName build() { + return new ParticipantSessionName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionOrBuilder.java new file mode 100644 index 000000000000..5ae34c65b5c7 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface ParticipantSessionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.ParticipantSession) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Session id.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Session id.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when the user session starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the user session starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the user session starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the user session ends. Unset if the user
+   * session hasn’t ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the user session ends. Unset if the user
+   * session hasn’t ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the user session ends. Unset if the user
+   * session hasn’t ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUser.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUser.java new file mode 100644 index 000000000000..c89db80f87c2 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUser.java @@ -0,0 +1,623 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * User dialing in from a phone where the user's identity is unknown because
+ * they haven't signed in with a Google Account.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.PhoneUser} + */ +public final class PhoneUser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.PhoneUser) + PhoneUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use PhoneUser.newBuilder() to construct. + private PhoneUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PhoneUser() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PhoneUser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_PhoneUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_PhoneUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.PhoneUser.class, + com.google.apps.meet.v2.PhoneUser.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Output only. Partially redacted user's phone number when calling.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Partially redacted user's phone number when calling.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.PhoneUser)) { + return super.equals(obj); + } + com.google.apps.meet.v2.PhoneUser other = (com.google.apps.meet.v2.PhoneUser) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.PhoneUser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.PhoneUser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.PhoneUser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.PhoneUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User dialing in from a phone where the user's identity is unknown because
+   * they haven't signed in with a Google Account.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.PhoneUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.PhoneUser) + com.google.apps.meet.v2.PhoneUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_PhoneUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_PhoneUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.PhoneUser.class, + com.google.apps.meet.v2.PhoneUser.Builder.class); + } + + // Construct using com.google.apps.meet.v2.PhoneUser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_PhoneUser_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.PhoneUser getDefaultInstanceForType() { + return com.google.apps.meet.v2.PhoneUser.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.PhoneUser build() { + com.google.apps.meet.v2.PhoneUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.PhoneUser buildPartial() { + com.google.apps.meet.v2.PhoneUser result = new com.google.apps.meet.v2.PhoneUser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.PhoneUser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.PhoneUser) { + return mergeFrom((com.google.apps.meet.v2.PhoneUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.PhoneUser other) { + if (other == com.google.apps.meet.v2.PhoneUser.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. Partially redacted user's phone number when calling.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Partially redacted user's phone number when calling.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Partially redacted user's phone number when calling.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Partially redacted user's phone number when calling.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Partially redacted user's phone number when calling.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.PhoneUser) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.PhoneUser) + private static final com.google.apps.meet.v2.PhoneUser DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.PhoneUser(); + } + + public static com.google.apps.meet.v2.PhoneUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhoneUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.PhoneUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUserOrBuilder.java new file mode 100644 index 000000000000..b6d97861a643 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/PhoneUserOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface PhoneUserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.PhoneUser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Partially redacted user's phone number when calling.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. Partially redacted user's phone number when calling.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Recording.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Recording.java new file mode 100644 index 000000000000..b925d9c5ca01 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Recording.java @@ -0,0 +1,1964 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Metadata about a recording created during a conference.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.Recording} + */ +public final class Recording extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.Recording) + RecordingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Recording.newBuilder() to construct. + private Recording(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Recording() { + name_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Recording(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Recording_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Recording_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Recording.class, + com.google.apps.meet.v2.Recording.Builder.class); + } + + /** + * + * + *
+   * Current state of the recording session.
+   * 
+ * + * Protobuf enum {@code google.apps.meet.v2.Recording.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default, never used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * An active recording session has started.
+     * 
+ * + * STARTED = 1; + */ + STARTED(1), + /** + * + * + *
+     * This recording session has ended, but the recording file hasn't been
+     * generated yet.
+     * 
+ * + * ENDED = 2; + */ + ENDED(2), + /** + * + * + *
+     * Recording file is generated and ready to download.
+     * 
+ * + * FILE_GENERATED = 3; + */ + FILE_GENERATED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default, never used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * An active recording session has started.
+     * 
+ * + * STARTED = 1; + */ + public static final int STARTED_VALUE = 1; + /** + * + * + *
+     * This recording session has ended, but the recording file hasn't been
+     * generated yet.
+     * 
+ * + * ENDED = 2; + */ + public static final int ENDED_VALUE = 2; + /** + * + * + *
+     * Recording file is generated and ready to download.
+     * 
+ * + * FILE_GENERATED = 3; + */ + public static final int FILE_GENERATED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTED; + case 2: + return ENDED; + case 3: + return FILE_GENERATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.apps.meet.v2.Recording.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2.Recording.State) + } + + private int bitField0_; + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DRIVE_DESTINATION(6), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 6: + return DRIVE_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int DRIVE_DESTINATION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
+   * `drive_destination` includes the Drive `fileId` that can be used to
+   * download the file using the `files.get` method of the Drive API.
+   * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the driveDestination field is set. + */ + @java.lang.Override + public boolean hasDriveDestination() { + return destinationCase_ == 6; + } + /** + * + * + *
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
+   * `drive_destination` includes the Drive `fileId` that can be used to
+   * download the file using the `files.get` method of the Drive API.
+   * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The driveDestination. + */ + @java.lang.Override + public com.google.apps.meet.v2.DriveDestination getDriveDestination() { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DriveDestination) destination_; + } + return com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
+   * `drive_destination` includes the Drive `fileId` that can be used to
+   * download the file using the `files.get` method of the Drive API.
+   * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.apps.meet.v2.DriveDestinationOrBuilder getDriveDestinationOrBuilder() { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DriveDestination) destination_; + } + return com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of the recording.
+   * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+   * where `{recording}` is a 1:1 mapping to each unique recording session
+   * during the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the recording.
+   * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+   * where `{recording}` is a 1:1 mapping to each unique recording session
+   * during the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.apps.meet.v2.Recording.State getState() { + com.google.apps.meet.v2.Recording.State result = + com.google.apps.meet.v2.Recording.State.forNumber(state_); + return result == null ? com.google.apps.meet.v2.Recording.State.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Timestamp when the recording started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the recording started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the recording started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Timestamp when the recording ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the recording ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the recording ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ != com.google.apps.meet.v2.Recording.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getEndTime()); + } + if (destinationCase_ == 6) { + output.writeMessage(6, (com.google.apps.meet.v2.DriveDestination) destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ != com.google.apps.meet.v2.Recording.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + } + if (destinationCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.apps.meet.v2.DriveDestination) destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.Recording)) { + return super.equals(obj); + } + com.google.apps.meet.v2.Recording other = (com.google.apps.meet.v2.Recording) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 6: + if (!getDriveDestination().equals(other.getDriveDestination())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + switch (destinationCase_) { + case 6: + hash = (37 * hash) + DRIVE_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDriveDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.Recording parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Recording parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Recording parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Recording parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Recording parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Recording parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Recording parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Recording parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Recording parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Recording parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Recording parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Recording parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.Recording prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata about a recording created during a conference.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.Recording} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.Recording) + com.google.apps.meet.v2.RecordingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Recording_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Recording_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Recording.class, + com.google.apps.meet.v2.Recording.Builder.class); + } + + // Construct using com.google.apps.meet.v2.Recording.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (driveDestinationBuilder_ != null) { + driveDestinationBuilder_.clear(); + } + name_ = ""; + state_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Recording_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.Recording getDefaultInstanceForType() { + return com.google.apps.meet.v2.Recording.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.Recording build() { + com.google.apps.meet.v2.Recording result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.Recording buildPartial() { + com.google.apps.meet.v2.Recording result = new com.google.apps.meet.v2.Recording(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.Recording result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.apps.meet.v2.Recording result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 6 && driveDestinationBuilder_ != null) { + result.destination_ = driveDestinationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.Recording) { + return mergeFrom((com.google.apps.meet.v2.Recording) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.Recording other) { + if (other == com.google.apps.meet.v2.Recording.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + switch (other.getDestinationCase()) { + case DRIVE_DESTINATION: + { + mergeDriveDestination(other.getDriveDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getDriveDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.DriveDestination, + com.google.apps.meet.v2.DriveDestination.Builder, + com.google.apps.meet.v2.DriveDestinationOrBuilder> + driveDestinationBuilder_; + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the driveDestination field is set. + */ + @java.lang.Override + public boolean hasDriveDestination() { + return destinationCase_ == 6; + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The driveDestination. + */ + @java.lang.Override + public com.google.apps.meet.v2.DriveDestination getDriveDestination() { + if (driveDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DriveDestination) destination_; + } + return com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 6) { + return driveDestinationBuilder_.getMessage(); + } + return com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDriveDestination(com.google.apps.meet.v2.DriveDestination value) { + if (driveDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + driveDestinationBuilder_.setMessage(value); + } + destinationCase_ = 6; + return this; + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDriveDestination( + com.google.apps.meet.v2.DriveDestination.Builder builderForValue) { + if (driveDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + driveDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 6; + return this; + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDriveDestination(com.google.apps.meet.v2.DriveDestination value) { + if (driveDestinationBuilder_ == null) { + if (destinationCase_ == 6 + && destination_ != com.google.apps.meet.v2.DriveDestination.getDefaultInstance()) { + destination_ = + com.google.apps.meet.v2.DriveDestination.newBuilder( + (com.google.apps.meet.v2.DriveDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 6) { + driveDestinationBuilder_.mergeFrom(value); + } else { + driveDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 6; + return this; + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDriveDestination() { + if (driveDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + } + driveDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.apps.meet.v2.DriveDestination.Builder getDriveDestinationBuilder() { + return getDriveDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.apps.meet.v2.DriveDestinationOrBuilder getDriveDestinationOrBuilder() { + if ((destinationCase_ == 6) && (driveDestinationBuilder_ != null)) { + return driveDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DriveDestination) destination_; + } + return com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
+     * `drive_destination` includes the Drive `fileId` that can be used to
+     * download the file using the `files.get` method of the Drive API.
+     * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.DriveDestination, + com.google.apps.meet.v2.DriveDestination.Builder, + com.google.apps.meet.v2.DriveDestinationOrBuilder> + getDriveDestinationFieldBuilder() { + if (driveDestinationBuilder_ == null) { + if (!(destinationCase_ == 6)) { + destination_ = com.google.apps.meet.v2.DriveDestination.getDefaultInstance(); + } + driveDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.DriveDestination, + com.google.apps.meet.v2.DriveDestination.Builder, + com.google.apps.meet.v2.DriveDestinationOrBuilder>( + (com.google.apps.meet.v2.DriveDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 6; + onChanged(); + return driveDestinationBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the recording.
+     * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+     * where `{recording}` is a 1:1 mapping to each unique recording session
+     * during the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the recording.
+     * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+     * where `{recording}` is a 1:1 mapping to each unique recording session
+     * during the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the recording.
+     * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+     * where `{recording}` is a 1:1 mapping to each unique recording session
+     * during the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the recording.
+     * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+     * where `{recording}` is a 1:1 mapping to each unique recording session
+     * during the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the recording.
+     * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+     * where `{recording}` is a 1:1 mapping to each unique recording session
+     * during the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.apps.meet.v2.Recording.State getState() { + com.google.apps.meet.v2.Recording.State result = + com.google.apps.meet.v2.Recording.State.forNumber(state_); + return result == null ? com.google.apps.meet.v2.Recording.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.apps.meet.v2.Recording.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the recording started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the recording ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.Recording) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.Recording) + private static final com.google.apps.meet.v2.Recording DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.Recording(); + } + + public static com.google.apps.meet.v2.Recording getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Recording parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.Recording getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java new file mode 100644 index 000000000000..f4dff8b5af14 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RecordingName implements ResourceName { + private static final PathTemplate CONFERENCE_RECORD_RECORDING = + PathTemplate.createWithoutUrlEncoding( + "conferenceRecords/{conference_record}/recordings/{recording}"); + private volatile Map fieldValuesMap; + private final String conferenceRecord; + private final String recording; + + @Deprecated + protected RecordingName() { + conferenceRecord = null; + recording = null; + } + + private RecordingName(Builder builder) { + conferenceRecord = Preconditions.checkNotNull(builder.getConferenceRecord()); + recording = Preconditions.checkNotNull(builder.getRecording()); + } + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getRecording() { + return recording; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RecordingName of(String conferenceRecord, String recording) { + return newBuilder().setConferenceRecord(conferenceRecord).setRecording(recording).build(); + } + + public static String format(String conferenceRecord, String recording) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setRecording(recording) + .build() + .toString(); + } + + public static RecordingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + CONFERENCE_RECORD_RECORDING.validatedMatch( + formattedString, "RecordingName.parse: formattedString not in valid format"); + return of(matchMap.get("conference_record"), matchMap.get("recording")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RecordingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return CONFERENCE_RECORD_RECORDING.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (conferenceRecord != null) { + fieldMapBuilder.put("conference_record", conferenceRecord); + } + if (recording != null) { + fieldMapBuilder.put("recording", recording); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return CONFERENCE_RECORD_RECORDING.instantiate( + "conference_record", conferenceRecord, "recording", recording); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RecordingName that = ((RecordingName) o); + return Objects.equals(this.conferenceRecord, that.conferenceRecord) + && Objects.equals(this.recording, that.recording); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(conferenceRecord); + h *= 1000003; + h ^= Objects.hashCode(recording); + return h; + } + + /** Builder for conferenceRecords/{conference_record}/recordings/{recording}. */ + public static class Builder { + private String conferenceRecord; + private String recording; + + protected Builder() {} + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getRecording() { + return recording; + } + + public Builder setConferenceRecord(String conferenceRecord) { + this.conferenceRecord = conferenceRecord; + return this; + } + + public Builder setRecording(String recording) { + this.recording = recording; + return this; + } + + private Builder(RecordingName recordingName) { + this.conferenceRecord = recordingName.conferenceRecord; + this.recording = recordingName.recording; + } + + public RecordingName build() { + return new RecordingName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingOrBuilder.java new file mode 100644 index 000000000000..bac489eb5aed --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface RecordingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.Recording) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
+   * `drive_destination` includes the Drive `fileId` that can be used to
+   * download the file using the `files.get` method of the Drive API.
+   * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the driveDestination field is set. + */ + boolean hasDriveDestination(); + /** + * + * + *
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
+   * `drive_destination` includes the Drive `fileId` that can be used to
+   * download the file using the `files.get` method of the Drive API.
+   * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The driveDestination. + */ + com.google.apps.meet.v2.DriveDestination getDriveDestination(); + /** + * + * + *
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
+   * `drive_destination` includes the Drive `fileId` that can be used to
+   * download the file using the `files.get` method of the Drive API.
+   * 
+ * + * + * .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.apps.meet.v2.DriveDestinationOrBuilder getDriveDestinationOrBuilder(); + + /** + * + * + *
+   * Output only. Resource name of the recording.
+   * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+   * where `{recording}` is a 1:1 mapping to each unique recording session
+   * during the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the recording.
+   * Format: `conferenceRecords/{conference_record}/recordings/{recording}`
+   * where `{recording}` is a 1:1 mapping to each unique recording session
+   * during the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.apps.meet.v2.Recording.State getState(); + + /** + * + * + *
+   * Output only. Timestamp when the recording started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the recording started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the recording started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the recording ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the recording ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the recording ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + com.google.apps.meet.v2.Recording.DestinationCase getDestinationCase(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ResourceProto.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ResourceProto.java new file mode 100644 index 000000000000..a0e30e85aec8 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ResourceProto.java @@ -0,0 +1,332 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public final class ResourceProto { + private ResourceProto() {} + + 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_apps_meet_v2_Space_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_Space_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ActiveConference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ActiveConference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_SpaceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_SpaceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ConferenceRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ConferenceRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_Participant_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_Participant_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ParticipantSession_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ParticipantSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_SignedinUser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_SignedinUser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_AnonymousUser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_AnonymousUser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_PhoneUser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_PhoneUser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_Recording_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_Recording_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_DriveDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_DriveDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_Transcript_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_Transcript_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_DocsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_DocsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_TranscriptEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_TranscriptEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/apps/meet/v2/resource.proto\022\023go" + + "ogle.apps.meet.v2\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\366\001\n\005Space" + + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\031\n\013meeting_uri\030\002 \001(" + + "\tB\004\342A\001\003\022\032\n\014meeting_code\030\003 \001(\tB\004\342A\001\003\0220\n\006c" + + "onfig\030\005 \001(\0132 .google.apps.meet.v2.SpaceC" + + "onfig\022@\n\021active_conference\030\006 \001(\0132%.googl" + + "e.apps.meet.v2.ActiveConference:.\352A+\n\031me" + + "et.googleapis.com/Space\022\016spaces/{space}\"" + + "\\\n\020ActiveConference\022H\n\021conference_record" + + "\030\001 \001(\tB-\342A\001\003\372A&\n$meet.googleapis.com/Con" + + "ferenceRecord\"\307\002\n\013SpaceConfig\022@\n\013access_" + + "type\030\001 \001(\0162+.google.apps.meet.v2.SpaceCo" + + "nfig.AccessType\022M\n\022entry_point_access\030\002 " + + "\001(\01621.google.apps.meet.v2.SpaceConfig.En" + + "tryPointAccess\"P\n\nAccessType\022\033\n\027ACCESS_T" + + "YPE_UNSPECIFIED\020\000\022\010\n\004OPEN\020\001\022\013\n\007TRUSTED\020\002" + + "\022\016\n\nRESTRICTED\020\003\"U\n\020EntryPointAccess\022\"\n\036" + + "ENTRY_POINT_ACCESS_UNSPECIFIED\020\000\022\007\n\003ALL\020" + + "\001\022\024\n\020CREATOR_APP_ONLY\020\002\"\361\002\n\020ConferenceRe" + + "cord\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\0224\n\nstart_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222" + + "\n\010end_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\0225\n\013expire_time\030\004 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\0221\n\005space\030\005 \001(\t" + + "B\"\342A\001\003\372A\033\n\031meet.googleapis.com/Space:u\352A" + + "r\n$meet.googleapis.com/ConferenceRecord\022" + + "%conferenceRecords/{conference_record}*\021" + + "conferenceRecords2\020conferenceRecord\"\327\003\n\013" + + "Participant\022:\n\rsignedin_user\030\004 \001(\0132!.goo" + + "gle.apps.meet.v2.SignedinUserH\000\022<\n\016anony" + + "mous_user\030\005 \001(\0132\".google.apps.meet.v2.An" + + "onymousUserH\000\0224\n\nphone_user\030\006 \001(\0132\036.goog" + + "le.apps.meet.v2.PhoneUserH\000\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\003\022=\n\023earliest_start_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\0229\n\017latest" + + "_end_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003:\201\001\352A~\n\037meet.googleapis.com/Par" + + "ticipant\022@conferenceRecords/{conference_" + + "record}/participants/{participant}*\014part" + + "icipants2\013participantB\006\n\004user\"\326\002\n\022Partic" + + "ipantSession\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\0224\n\nstar" + + "t_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003:\301\001\352A\275\001\n&meet.googleap" + + "is.com/ParticipantSession\022jconferenceRec" + + "ords/{conference_record}/participants/{p" + + "articipant}/participantSessions/{partici" + + "pant_session}*\023participantSessions2\022part" + + "icipantSession\">\n\014SignedinUser\022\022\n\004user\030\001" + + " \001(\tB\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\003\"+" + + "\n\rAnonymousUser\022\032\n\014display_name\030\001 \001(\tB\004\342" + + "A\001\003\"\'\n\tPhoneUser\022\032\n\014display_name\030\001 \001(\tB\004" + + "\342A\001\003\"\342\003\n\tRecording\022H\n\021drive_destination\030" + + "\006 \001(\0132%.google.apps.meet.v2.DriveDestina" + + "tionB\004\342A\001\003H\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0229\n\005stat" + + "e\030\003 \001(\0162$.google.apps.meet.v2.Recording." + + "StateB\004\342A\001\003\0224\n\nstart_time\030\004 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\005 " + + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"J\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007STARTED" + + "\020\001\022\t\n\005ENDED\020\002\022\022\n\016FILE_GENERATED\020\003:w\352At\n\035" + + "meet.googleapis.com/Recording\022conferenceRecords" + + "/{conference_record}/transcripts/{transc" + + "ript}*\013transcripts2\ntranscriptB\r\n\013destin" + + "ation\"C\n\017DocsDestination\022\026\n\010document\030\001 \001" + + "(\tB\004\342A\001\003\022\030\n\nexport_uri\030\002 \001(\tB\004\342A\001\003\"\237\003\n\017T" + + "ranscriptEntry\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022=\n\013pa" + + "rticipant\030\002 \001(\tB(\342A\001\003\372A!\n\037meet.googleapi" + + "s.com/Participant\022\022\n\004text\030\003 \001(\tB\004\342A\001\003\022\033\n" + + "\rlanguage_code\030\004 \001(\tB\004\342A\001\003\0224\n\nstart_time" + + "\030\005 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0222\n\010end_time\030\006 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\003:\235\001\352A\231\001\n#meet.googleapis.com" + + "/TranscriptEntry\022NconferenceRecords/{con" + + "ference_record}/transcripts/{transcript}" + + "/entries/{entry}*\021transcriptEntries2\017tra" + + "nscriptEntryB\242\001\n\027com.google.apps.meet.v2" + + "B\rResourceProtoP\001Z1cloud.google.com/go/a" + + "pps/meet/apiv2/meetpb;meetpb\252\002\023Google.Ap" + + "ps.Meet.V2\312\002\023Google\\Apps\\Meet\\V2\352\002\026Googl" + + "e::Apps::Meet::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_apps_meet_v2_Space_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_apps_meet_v2_Space_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_Space_descriptor, + new java.lang.String[] { + "Name", "MeetingUri", "MeetingCode", "Config", "ActiveConference", + }); + internal_static_google_apps_meet_v2_ActiveConference_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_apps_meet_v2_ActiveConference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ActiveConference_descriptor, + new java.lang.String[] { + "ConferenceRecord", + }); + internal_static_google_apps_meet_v2_SpaceConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_apps_meet_v2_SpaceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_SpaceConfig_descriptor, + new java.lang.String[] { + "AccessType", "EntryPointAccess", + }); + internal_static_google_apps_meet_v2_ConferenceRecord_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_apps_meet_v2_ConferenceRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ConferenceRecord_descriptor, + new java.lang.String[] { + "Name", "StartTime", "EndTime", "ExpireTime", "Space", + }); + internal_static_google_apps_meet_v2_Participant_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_apps_meet_v2_Participant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_Participant_descriptor, + new java.lang.String[] { + "SignedinUser", + "AnonymousUser", + "PhoneUser", + "Name", + "EarliestStartTime", + "LatestEndTime", + "User", + }); + internal_static_google_apps_meet_v2_ParticipantSession_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_apps_meet_v2_ParticipantSession_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ParticipantSession_descriptor, + new java.lang.String[] { + "Name", "StartTime", "EndTime", + }); + internal_static_google_apps_meet_v2_SignedinUser_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_apps_meet_v2_SignedinUser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_SignedinUser_descriptor, + new java.lang.String[] { + "User", "DisplayName", + }); + internal_static_google_apps_meet_v2_AnonymousUser_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_apps_meet_v2_AnonymousUser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_AnonymousUser_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_apps_meet_v2_PhoneUser_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_apps_meet_v2_PhoneUser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_PhoneUser_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_apps_meet_v2_Recording_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_apps_meet_v2_Recording_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_Recording_descriptor, + new java.lang.String[] { + "DriveDestination", "Name", "State", "StartTime", "EndTime", "Destination", + }); + internal_static_google_apps_meet_v2_DriveDestination_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_apps_meet_v2_DriveDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_DriveDestination_descriptor, + new java.lang.String[] { + "File", "ExportUri", + }); + internal_static_google_apps_meet_v2_Transcript_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_apps_meet_v2_Transcript_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_Transcript_descriptor, + new java.lang.String[] { + "DocsDestination", "Name", "State", "StartTime", "EndTime", "Destination", + }); + internal_static_google_apps_meet_v2_DocsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_apps_meet_v2_DocsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_DocsDestination_descriptor, + new java.lang.String[] { + "Document", "ExportUri", + }); + internal_static_google_apps_meet_v2_TranscriptEntry_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_apps_meet_v2_TranscriptEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_TranscriptEntry_descriptor, + new java.lang.String[] { + "Name", "Participant", "Text", "LanguageCode", "StartTime", "EndTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java new file mode 100644 index 000000000000..5bbe5c243f7e --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java @@ -0,0 +1,475 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public final class ServiceProto { + private ServiceProto() {} + + 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_apps_meet_v2_CreateSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_CreateSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_UpdateSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_UpdateSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_EndActiveConferenceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_EndActiveConferenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetConferenceRecordRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetConferenceRecordRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetParticipantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetParticipantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListParticipantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListParticipantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListParticipantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListParticipantsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetParticipantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetParticipantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetRecordingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetRecordingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListRecordingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListRecordingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListRecordingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListRecordingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetTranscriptRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetTranscriptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListTranscriptsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListTranscriptsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListTranscriptsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListTranscriptsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n!google/apps/meet/v2/service.proto\022\023goo" + + "gle.apps.meet.v2\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032\"google/apps/meet/v2/resourc" + + "e.proto\032\033google/protobuf/empty.proto\032 go" + + "ogle/protobuf/field_mask.proto\"?\n\022Create" + + "SpaceRequest\022)\n\005space\030\001 \001(\0132\032.google.app" + + "s.meet.v2.Space\"C\n\017GetSpaceRequest\0220\n\004na" + + "me\030\001 \001(\tB\"\342A\001\002\372A\033\n\031meet.googleapis.com/S" + + "pace\"|\n\022UpdateSpaceRequest\022/\n\005space\030\001 \001(" + + "\0132\032.google.apps.meet.v2.SpaceB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\001\"N\n\032EndActiveConferenceRequest" + + "\0220\n\004name\030\001 \001(\tB\"\342A\001\002\372A\033\n\031meet.googleapis" + + ".com/Space\"Y\n\032GetConferenceRecordRequest" + + "\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$meet.googleapis" + + ".com/ConferenceRecord\"g\n\034ListConferenceR" + + "ecordsRequest\022\027\n\tpage_size\030\001 \001(\005B\004\342A\001\001\022\030" + + "\n\npage_token\030\002 \001(\tB\004\342A\001\001\022\024\n\006filter\030\003 \001(\t" + + "B\004\342A\001\001\"{\n\035ListConferenceRecordsResponse\022" + + "A\n\022conference_records\030\001 \003(\0132%.google.app" + + "s.meet.v2.ConferenceRecord\022\027\n\017next_page_" + + "token\030\002 \001(\t\"O\n\025GetParticipantRequest\0226\n\004" + + "name\030\001 \001(\tB(\342A\001\002\372A!\n\037meet.googleapis.com" + + "/Participant\"\220\001\n\027ListParticipantsRequest" + + "\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\022\037meet.googleap" + + "is.com/Participant\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"" + + "\177\n\030ListParticipantsResponse\0226\n\014participa" + + "nts\030\001 \003(\0132 .google.apps.meet.v2.Particip" + + "ant\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_si" + + "ze\030\003 \001(\005\"]\n\034GetParticipantSessionRequest" + + "\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&meet.googleapis" + + ".com/ParticipantSession\"\252\001\n\036ListParticip" + + "antSessionsRequest\022?\n\006parent\030\001 \001(\tB/\342A\001\002" + + "\372A(\022&meet.googleapis.com/ParticipantSess" + + "ion\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"\201\001\n" + + "\037ListParticipantSessionsResponse\022E\n\024part" + + "icipant_sessions\030\001 \003(\0132\'.google.apps.mee" + + "t.v2.ParticipantSession\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"K\n\023GetRecordingRequest\0224\n\004name\030" + + "\001 \001(\tB&\342A\001\002\372A\037\n\035meet.googleapis.com/Reco" + + "rding\"v\n\025ListRecordingsRequest\0226\n\006parent" + + "\030\001 \001(\tB&\342A\001\002\372A\037\022\035meet.googleapis.com/Rec" + + "ording\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"e\n\026ListRecordingsResponse\0222\n\nrecor" + + "dings\030\001 \003(\0132\036.google.apps.meet.v2.Record" + + "ing\022\027\n\017next_page_token\030\002 \001(\t\"M\n\024GetTrans" + + "criptRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036mee" + + "t.googleapis.com/Transcript\"x\n\026ListTrans" + + "criptsRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036" + + "meet.googleapis.com/Transcript\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\027ListTra" + + "nscriptsResponse\0224\n\013transcripts\030\001 \003(\0132\037." + + "google.apps.meet.v2.Transcript\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"W\n\031GetTranscriptEntryReq" + + "uest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#meet.google" + + "apis.com/TranscriptEntry\"\203\001\n\034ListTranscr" + + "iptEntriesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372" + + "A%\022#meet.googleapis.com/TranscriptEntry\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z" + + "\n\035ListTranscriptEntriesResponse\022@\n\022trans" + + "cript_entries\030\001 \003(\0132$.google.apps.meet.v" + + "2.TranscriptEntry\022\027\n\017next_page_token\030\002 \001" + + "(\t2\277\004\n\rSpacesService\022u\n\013CreateSpace\022\'.go" + + "ogle.apps.meet.v2.CreateSpaceRequest\032\032.g" + + "oogle.apps.meet.v2.Space\"!\332A\005space\202\323\344\223\002\023" + + "\"\n/v2/spaces:\005space\022p\n\010GetSpace\022$.google" + + ".apps.meet.v2.GetSpaceRequest\032\032.google.a" + + "pps.meet.v2.Space\"\"\332A\004name\202\323\344\223\002\025\022\023/v2/{n" + + "ame=spaces/*}\022\220\001\n\013UpdateSpace\022\'.google.a" + + "pps.meet.v2.UpdateSpaceRequest\032\032.google." + + "apps.meet.v2.Space\"<\332A\021space,update_mask" + + "\202\323\344\223\002\"2\031/v2/{space.name=spaces/*}:\005space" + + "\022\231\001\n\023EndActiveConference\022/.google.apps.m" + + "eet.v2.EndActiveConferenceRequest\032\026.goog" + + "le.protobuf.Empty\"9\332A\004name\202\323\344\223\002,\"\'/v2/{n" + + "ame=spaces/*}:endActiveConference:\001*\032\026\312A" + + "\023meet.googleapis.com2\361\020\n\030ConferenceRecor" + + "dsService\022\234\001\n\023GetConferenceRecord\022/.goog" + + "le.apps.meet.v2.GetConferenceRecordReque" + + "st\032%.google.apps.meet.v2.ConferenceRecor" + + "d\"-\332A\004name\202\323\344\223\002 \022\036/v2/{name=conferenceRe" + + "cords/*}\022\235\001\n\025ListConferenceRecords\0221.goo" + + "gle.apps.meet.v2.ListConferenceRecordsRe" + + "quest\0322.google.apps.meet.v2.ListConferen" + + "ceRecordsResponse\"\035\202\323\344\223\002\027\022\025/v2/conferenc" + + "eRecords\022\234\001\n\016GetParticipant\022*.google.app" + + "s.meet.v2.GetParticipantRequest\032 .google" + + ".apps.meet.v2.Participant\"<\332A\004name\202\323\344\223\002/" + + "\022-/v2/{name=conferenceRecords/*/particip" + + "ants/*}\022\257\001\n\020ListParticipants\022,.google.ap" + + "ps.meet.v2.ListParticipantsRequest\032-.goo" + + "gle.apps.meet.v2.ListParticipantsRespons" + + "e\">\332A\006parent\202\323\344\223\002/\022-/v2/{parent=conferen" + + "ceRecords/*}/participants\022\307\001\n\025GetPartici" + + "pantSession\0221.google.apps.meet.v2.GetPar" + + "ticipantSessionRequest\032\'.google.apps.mee" + + "t.v2.ParticipantSession\"R\332A\004name\202\323\344\223\002E\022C" + + "/v2/{name=conferenceRecords/*/participan" + + "ts/*/participantSessions/*}\022\332\001\n\027ListPart" + + "icipantSessions\0223.google.apps.meet.v2.Li" + + "stParticipantSessionsRequest\0324.google.ap" + + "ps.meet.v2.ListParticipantSessionsRespon" + + "se\"T\332A\006parent\202\323\344\223\002E\022C/v2/{parent=confere" + + "nceRecords/*/participants/*}/participant" + + "Sessions\022\224\001\n\014GetRecording\022(.google.apps." + + "meet.v2.GetRecordingRequest\032\036.google.app" + + "s.meet.v2.Recording\":\332A\004name\202\323\344\223\002-\022+/v2/" + + "{name=conferenceRecords/*/recordings/*}\022" + + "\247\001\n\016ListRecordings\022*.google.apps.meet.v2" + + ".ListRecordingsRequest\032+.google.apps.mee" + + "t.v2.ListRecordingsResponse\"<\332A\006parent\202\323" + + "\344\223\002-\022+/v2/{parent=conferenceRecords/*}/r" + + "ecordings\022\230\001\n\rGetTranscript\022).google.app" + + "s.meet.v2.GetTranscriptRequest\032\037.google." + + "apps.meet.v2.Transcript\";\332A\004name\202\323\344\223\002.\022," + + "/v2/{name=conferenceRecords/*/transcript" + + "s/*}\022\253\001\n\017ListTranscripts\022+.google.apps.m" + + "eet.v2.ListTranscriptsRequest\032,.google.a" + + "pps.meet.v2.ListTranscriptsResponse\"=\332A\006" + + "parent\202\323\344\223\002.\022,/v2/{parent=conferenceReco" + + "rds/*}/transcripts\022\261\001\n\022GetTranscriptEntr" + + "y\022..google.apps.meet.v2.GetTranscriptEnt" + + "ryRequest\032$.google.apps.meet.v2.Transcri" + + "ptEntry\"E\332A\004name\202\323\344\223\0028\0226/v2/{name=confer" + + "enceRecords/*/transcripts/*/entries/*}\022\307" + + "\001\n\025ListTranscriptEntries\0221.google.apps.m" + + "eet.v2.ListTranscriptEntriesRequest\0322.go" + + "ogle.apps.meet.v2.ListTranscriptEntriesR" + + "esponse\"G\332A\006parent\202\323\344\223\0028\0226/v2/{parent=co" + + "nferenceRecords/*/transcripts/*}/entries" + + "\032\026\312A\023meet.googleapis.comB\241\001\n\027com.google." + + "apps.meet.v2B\014ServiceProtoP\001Z1cloud.goog" + + "le.com/go/apps/meet/apiv2/meetpb;meetpb\252" + + "\002\023Google.Apps.Meet.V2\312\002\023Google\\Apps\\Meet" + + "\\V2\352\002\026Google::Apps::Meet::V2b\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.apps.meet.v2.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_apps_meet_v2_CreateSpaceRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_apps_meet_v2_CreateSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_CreateSpaceRequest_descriptor, + new java.lang.String[] { + "Space", + }); + internal_static_google_apps_meet_v2_GetSpaceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_apps_meet_v2_GetSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetSpaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_UpdateSpaceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_apps_meet_v2_UpdateSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_UpdateSpaceRequest_descriptor, + new java.lang.String[] { + "Space", "UpdateMask", + }); + internal_static_google_apps_meet_v2_EndActiveConferenceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_apps_meet_v2_EndActiveConferenceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_EndActiveConferenceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_GetConferenceRecordRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_apps_meet_v2_GetConferenceRecordRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetConferenceRecordRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListConferenceRecordsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", "Filter", + }); + internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListConferenceRecordsResponse_descriptor, + new java.lang.String[] { + "ConferenceRecords", "NextPageToken", + }); + internal_static_google_apps_meet_v2_GetParticipantRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_apps_meet_v2_GetParticipantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetParticipantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_ListParticipantsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_apps_meet_v2_ListParticipantsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListParticipantsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_apps_meet_v2_ListParticipantsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_apps_meet_v2_ListParticipantsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListParticipantsResponse_descriptor, + new java.lang.String[] { + "Participants", "NextPageToken", "TotalSize", + }); + internal_static_google_apps_meet_v2_GetParticipantSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_apps_meet_v2_GetParticipantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetParticipantSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListParticipantSessionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListParticipantSessionsResponse_descriptor, + new java.lang.String[] { + "ParticipantSessions", "NextPageToken", + }); + internal_static_google_apps_meet_v2_GetRecordingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_apps_meet_v2_GetRecordingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetRecordingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_ListRecordingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_apps_meet_v2_ListRecordingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListRecordingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_apps_meet_v2_ListRecordingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_apps_meet_v2_ListRecordingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListRecordingsResponse_descriptor, + new java.lang.String[] { + "Recordings", "NextPageToken", + }); + internal_static_google_apps_meet_v2_GetTranscriptRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_apps_meet_v2_GetTranscriptRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetTranscriptRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_ListTranscriptsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_apps_meet_v2_ListTranscriptsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListTranscriptsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_apps_meet_v2_ListTranscriptsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_apps_meet_v2_ListTranscriptsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListTranscriptsResponse_descriptor, + new java.lang.String[] { + "Transcripts", "NextPageToken", + }); + internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_GetTranscriptEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListTranscriptEntriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2_ListTranscriptEntriesResponse_descriptor, + new java.lang.String[] { + "TranscriptEntries", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.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.apps.meet.v2.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUser.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUser.java new file mode 100644 index 000000000000..fb07ab233090 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUser.java @@ -0,0 +1,830 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * A signed-in user can be:
+ * a) An individual joining from a personal computer, mobile device, or through
+ * companion mode.
+ * b) A robot account used by conference room devices.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.SignedinUser} + */ +public final class SignedinUser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.SignedinUser) + SignedinUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignedinUser.newBuilder() to construct. + private SignedinUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SignedinUser() { + user_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SignedinUser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SignedinUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SignedinUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.SignedinUser.class, + com.google.apps.meet.v2.SignedinUser.Builder.class); + } + + public static final int USER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * + * + *
+   * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+   * People API. Format: `users/{user}`
+   * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+   * People API. Format: `users/{user}`
+   * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.SignedinUser)) { + return super.equals(obj); + } + com.google.apps.meet.v2.SignedinUser other = (com.google.apps.meet.v2.SignedinUser) obj; + + if (!getUser().equals(other.getUser())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.SignedinUser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.SignedinUser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.SignedinUser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.SignedinUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A signed-in user can be:
+   * a) An individual joining from a personal computer, mobile device, or through
+   * companion mode.
+   * b) A robot account used by conference room devices.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.SignedinUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.SignedinUser) + com.google.apps.meet.v2.SignedinUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SignedinUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SignedinUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.SignedinUser.class, + com.google.apps.meet.v2.SignedinUser.Builder.class); + } + + // Construct using com.google.apps.meet.v2.SignedinUser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SignedinUser_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.SignedinUser getDefaultInstanceForType() { + return com.google.apps.meet.v2.SignedinUser.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.SignedinUser build() { + com.google.apps.meet.v2.SignedinUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.SignedinUser buildPartial() { + com.google.apps.meet.v2.SignedinUser result = new com.google.apps.meet.v2.SignedinUser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.SignedinUser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.SignedinUser) { + return mergeFrom((com.google.apps.meet.v2.SignedinUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.SignedinUser other) { + if (other == com.google.apps.meet.v2.SignedinUser.getDefaultInstance()) return this; + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object user_ = ""; + /** + * + * + *
+     * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+     * People API. Format: `users/{user}`
+     * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+     * People API. Format: `users/{user}`
+     * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+     * People API. Format: `users/{user}`
+     * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+     * People API. Format: `users/{user}`
+     * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+     * People API. Format: `users/{user}`
+     * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.SignedinUser) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.SignedinUser) + private static final com.google.apps.meet.v2.SignedinUser DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.SignedinUser(); + } + + public static com.google.apps.meet.v2.SignedinUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignedinUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.SignedinUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUserOrBuilder.java new file mode 100644 index 000000000000..9b501faac3d4 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SignedinUserOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface SignedinUserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.SignedinUser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+   * People API. Format: `users/{user}`
+   * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The user. + */ + java.lang.String getUser(); + /** + * + * + *
+   * Output only. Unique ID for the user. Interoperable with Admin SDK API and
+   * People API. Format: `users/{user}`
+   * 
+ * + * string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java new file mode 100644 index 000000000000..5831bd25d417 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java @@ -0,0 +1,1555 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Virtual place where conferences are held. Only one active conference can be
+ * held in one space at any given time.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.Space} + */ +public final class Space extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.Space) + SpaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Space.newBuilder() to construct. + private Space(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Space() { + name_ = ""; + meetingUri_ = ""; + meetingCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Space(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Space_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Space_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Space.class, com.google.apps.meet.v2.Space.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Immutable. Resource name of the space.
+   * Format: `spaces/{space}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of the space.
+   * Format: `spaces/{space}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEETING_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object meetingUri_ = ""; + /** + * + * + *
+   * Output only. URI used to join meetings, such as
+   * `https://meet.google.com/abc-mnop-xyz`.
+   * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The meetingUri. + */ + @java.lang.Override + public java.lang.String getMeetingUri() { + java.lang.Object ref = meetingUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + meetingUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. URI used to join meetings, such as
+   * `https://meet.google.com/abc-mnop-xyz`.
+   * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for meetingUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMeetingUriBytes() { + java.lang.Object ref = meetingUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + meetingUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEETING_CODE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object meetingCode_ = ""; + /** + * + * + *
+   * Output only. Type friendly code to join the meeting. Format:
+   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+   * characters. Can only be used as an alias of the space ID to get the space.
+   * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The meetingCode. + */ + @java.lang.Override + public java.lang.String getMeetingCode() { + java.lang.Object ref = meetingCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + meetingCode_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Type friendly code to join the meeting. Format:
+   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+   * characters. Can only be used as an alias of the space ID to get the space.
+   * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for meetingCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMeetingCodeBytes() { + java.lang.Object ref = meetingCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + meetingCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 5; + private com.google.apps.meet.v2.SpaceConfig config_; + /** + * + * + *
+   * Configuration pertaining to the meeting space.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Configuration pertaining to the meeting space.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + * + * @return The config. + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig getConfig() { + return config_ == null ? com.google.apps.meet.v2.SpaceConfig.getDefaultInstance() : config_; + } + /** + * + * + *
+   * Configuration pertaining to the meeting space.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? com.google.apps.meet.v2.SpaceConfig.getDefaultInstance() : config_; + } + + public static final int ACTIVE_CONFERENCE_FIELD_NUMBER = 6; + private com.google.apps.meet.v2.ActiveConference activeConference_; + /** + * + * + *
+   * Active conference, if it exists.
+   * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + * + * @return Whether the activeConference field is set. + */ + @java.lang.Override + public boolean hasActiveConference() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Active conference, if it exists.
+   * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + * + * @return The activeConference. + */ + @java.lang.Override + public com.google.apps.meet.v2.ActiveConference getActiveConference() { + return activeConference_ == null + ? com.google.apps.meet.v2.ActiveConference.getDefaultInstance() + : activeConference_; + } + /** + * + * + *
+   * Active conference, if it exists.
+   * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + @java.lang.Override + public com.google.apps.meet.v2.ActiveConferenceOrBuilder getActiveConferenceOrBuilder() { + return activeConference_ == null + ? com.google.apps.meet.v2.ActiveConference.getDefaultInstance() + : activeConference_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meetingUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, meetingUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meetingCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, meetingCode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getActiveConference()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meetingUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, meetingUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meetingCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, meetingCode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getActiveConference()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.Space)) { + return super.equals(obj); + } + com.google.apps.meet.v2.Space other = (com.google.apps.meet.v2.Space) obj; + + if (!getName().equals(other.getName())) return false; + if (!getMeetingUri().equals(other.getMeetingUri())) return false; + if (!getMeetingCode().equals(other.getMeetingCode())) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (hasActiveConference() != other.hasActiveConference()) return false; + if (hasActiveConference()) { + if (!getActiveConference().equals(other.getActiveConference())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MEETING_URI_FIELD_NUMBER; + hash = (53 * hash) + getMeetingUri().hashCode(); + hash = (37 * hash) + MEETING_CODE_FIELD_NUMBER; + hash = (53 * hash) + getMeetingCode().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + if (hasActiveConference()) { + hash = (37 * hash) + ACTIVE_CONFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getActiveConference().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.Space parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Space parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Space parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Space parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Space parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Space parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Space parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Space parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Space parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Space parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Space parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Space parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.Space prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Virtual place where conferences are held. Only one active conference can be
+   * held in one space at any given time.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.Space} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.Space) + com.google.apps.meet.v2.SpaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Space_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Space_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Space.class, com.google.apps.meet.v2.Space.Builder.class); + } + + // Construct using com.google.apps.meet.v2.Space.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + getActiveConferenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + meetingUri_ = ""; + meetingCode_ = ""; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + activeConference_ = null; + if (activeConferenceBuilder_ != null) { + activeConferenceBuilder_.dispose(); + activeConferenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Space_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.Space getDefaultInstanceForType() { + return com.google.apps.meet.v2.Space.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.Space build() { + com.google.apps.meet.v2.Space result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.Space buildPartial() { + com.google.apps.meet.v2.Space result = new com.google.apps.meet.v2.Space(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.Space result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.meetingUri_ = meetingUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.meetingCode_ = meetingCode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.activeConference_ = + activeConferenceBuilder_ == null ? activeConference_ : activeConferenceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.Space) { + return mergeFrom((com.google.apps.meet.v2.Space) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.Space other) { + if (other == com.google.apps.meet.v2.Space.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMeetingUri().isEmpty()) { + meetingUri_ = other.meetingUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMeetingCode().isEmpty()) { + meetingCode_ = other.meetingCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.hasActiveConference()) { + mergeActiveConference(other.getActiveConference()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + meetingUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + meetingCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + getActiveConferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. Resource name of the space.
+     * Format: `spaces/{space}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the space.
+     * Format: `spaces/{space}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the space.
+     * Format: `spaces/{space}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the space.
+     * Format: `spaces/{space}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the space.
+     * Format: `spaces/{space}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object meetingUri_ = ""; + /** + * + * + *
+     * Output only. URI used to join meetings, such as
+     * `https://meet.google.com/abc-mnop-xyz`.
+     * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The meetingUri. + */ + public java.lang.String getMeetingUri() { + java.lang.Object ref = meetingUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + meetingUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. URI used to join meetings, such as
+     * `https://meet.google.com/abc-mnop-xyz`.
+     * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for meetingUri. + */ + public com.google.protobuf.ByteString getMeetingUriBytes() { + java.lang.Object ref = meetingUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + meetingUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. URI used to join meetings, such as
+     * `https://meet.google.com/abc-mnop-xyz`.
+     * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The meetingUri to set. + * @return This builder for chaining. + */ + public Builder setMeetingUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + meetingUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URI used to join meetings, such as
+     * `https://meet.google.com/abc-mnop-xyz`.
+     * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMeetingUri() { + meetingUri_ = getDefaultInstance().getMeetingUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. URI used to join meetings, such as
+     * `https://meet.google.com/abc-mnop-xyz`.
+     * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for meetingUri to set. + * @return This builder for chaining. + */ + public Builder setMeetingUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + meetingUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object meetingCode_ = ""; + /** + * + * + *
+     * Output only. Type friendly code to join the meeting. Format:
+     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+     * characters. Can only be used as an alias of the space ID to get the space.
+     * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The meetingCode. + */ + public java.lang.String getMeetingCode() { + java.lang.Object ref = meetingCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + meetingCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Type friendly code to join the meeting. Format:
+     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+     * characters. Can only be used as an alias of the space ID to get the space.
+     * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for meetingCode. + */ + public com.google.protobuf.ByteString getMeetingCodeBytes() { + java.lang.Object ref = meetingCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + meetingCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Type friendly code to join the meeting. Format:
+     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+     * characters. Can only be used as an alias of the space ID to get the space.
+     * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The meetingCode to set. + * @return This builder for chaining. + */ + public Builder setMeetingCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + meetingCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Type friendly code to join the meeting. Format:
+     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+     * characters. Can only be used as an alias of the space ID to get the space.
+     * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMeetingCode() { + meetingCode_ = getDefaultInstance().getMeetingCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Type friendly code to join the meeting. Format:
+     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+     * characters. Can only be used as an alias of the space ID to get the space.
+     * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for meetingCode to set. + * @return This builder for chaining. + */ + public Builder setMeetingCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + meetingCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.apps.meet.v2.SpaceConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.SpaceConfig, + com.google.apps.meet.v2.SpaceConfig.Builder, + com.google.apps.meet.v2.SpaceConfigOrBuilder> + configBuilder_; + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + * + * @return The config. + */ + public com.google.apps.meet.v2.SpaceConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? com.google.apps.meet.v2.SpaceConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + public Builder setConfig(com.google.apps.meet.v2.SpaceConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + public Builder setConfig(com.google.apps.meet.v2.SpaceConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + public Builder mergeConfig(com.google.apps.meet.v2.SpaceConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && config_ != null + && config_ != com.google.apps.meet.v2.SpaceConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + public com.google.apps.meet.v2.SpaceConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + public com.google.apps.meet.v2.SpaceConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? com.google.apps.meet.v2.SpaceConfig.getDefaultInstance() : config_; + } + } + /** + * + * + *
+     * Configuration pertaining to the meeting space.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.SpaceConfig, + com.google.apps.meet.v2.SpaceConfig.Builder, + com.google.apps.meet.v2.SpaceConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.SpaceConfig, + com.google.apps.meet.v2.SpaceConfig.Builder, + com.google.apps.meet.v2.SpaceConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private com.google.apps.meet.v2.ActiveConference activeConference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.ActiveConference, + com.google.apps.meet.v2.ActiveConference.Builder, + com.google.apps.meet.v2.ActiveConferenceOrBuilder> + activeConferenceBuilder_; + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + * + * @return Whether the activeConference field is set. + */ + public boolean hasActiveConference() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + * + * @return The activeConference. + */ + public com.google.apps.meet.v2.ActiveConference getActiveConference() { + if (activeConferenceBuilder_ == null) { + return activeConference_ == null + ? com.google.apps.meet.v2.ActiveConference.getDefaultInstance() + : activeConference_; + } else { + return activeConferenceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + public Builder setActiveConference(com.google.apps.meet.v2.ActiveConference value) { + if (activeConferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + activeConference_ = value; + } else { + activeConferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + public Builder setActiveConference( + com.google.apps.meet.v2.ActiveConference.Builder builderForValue) { + if (activeConferenceBuilder_ == null) { + activeConference_ = builderForValue.build(); + } else { + activeConferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + public Builder mergeActiveConference(com.google.apps.meet.v2.ActiveConference value) { + if (activeConferenceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && activeConference_ != null + && activeConference_ != com.google.apps.meet.v2.ActiveConference.getDefaultInstance()) { + getActiveConferenceBuilder().mergeFrom(value); + } else { + activeConference_ = value; + } + } else { + activeConferenceBuilder_.mergeFrom(value); + } + if (activeConference_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + public Builder clearActiveConference() { + bitField0_ = (bitField0_ & ~0x00000010); + activeConference_ = null; + if (activeConferenceBuilder_ != null) { + activeConferenceBuilder_.dispose(); + activeConferenceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + public com.google.apps.meet.v2.ActiveConference.Builder getActiveConferenceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getActiveConferenceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + public com.google.apps.meet.v2.ActiveConferenceOrBuilder getActiveConferenceOrBuilder() { + if (activeConferenceBuilder_ != null) { + return activeConferenceBuilder_.getMessageOrBuilder(); + } else { + return activeConference_ == null + ? com.google.apps.meet.v2.ActiveConference.getDefaultInstance() + : activeConference_; + } + } + /** + * + * + *
+     * Active conference, if it exists.
+     * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.ActiveConference, + com.google.apps.meet.v2.ActiveConference.Builder, + com.google.apps.meet.v2.ActiveConferenceOrBuilder> + getActiveConferenceFieldBuilder() { + if (activeConferenceBuilder_ == null) { + activeConferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.ActiveConference, + com.google.apps.meet.v2.ActiveConference.Builder, + com.google.apps.meet.v2.ActiveConferenceOrBuilder>( + getActiveConference(), getParentForChildren(), isClean()); + activeConference_ = null; + } + return activeConferenceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.Space) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.Space) + private static final com.google.apps.meet.v2.Space DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.Space(); + } + + public static com.google.apps.meet.v2.Space getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Space parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.Space getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfig.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfig.java new file mode 100644 index 000000000000..cb62f123cb29 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfig.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * The configuration pertaining to a meeting space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.SpaceConfig} + */ +public final class SpaceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.SpaceConfig) + SpaceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpaceConfig.newBuilder() to construct. + private SpaceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpaceConfig() { + accessType_ = 0; + entryPointAccess_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpaceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SpaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SpaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.SpaceConfig.class, + com.google.apps.meet.v2.SpaceConfig.Builder.class); + } + + /** + * + * + *
+   * Possible access types for a meeting space.
+   * 
+ * + * Protobuf enum {@code google.apps.meet.v2.SpaceConfig.AccessType} + */ + public enum AccessType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value specified by the user's organization.
+     * Note: This is never returned, as the configured access type is
+     * returned instead.
+     * 
+ * + * ACCESS_TYPE_UNSPECIFIED = 0; + */ + ACCESS_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Anyone with the join information (for example, the URL or phone access
+     * information) can join without knocking.
+     * 
+ * + * OPEN = 1; + */ + OPEN(1), + /** + * + * + *
+     * Members of the host's organization, invited external users, and dial-in
+     * users can join without knocking. Everyone else must knock.
+     * 
+ * + * TRUSTED = 2; + */ + TRUSTED(2), + /** + * + * + *
+     * Only invitees can join without knocking. Everyone else must knock.
+     * 
+ * + * RESTRICTED = 3; + */ + RESTRICTED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value specified by the user's organization.
+     * Note: This is never returned, as the configured access type is
+     * returned instead.
+     * 
+ * + * ACCESS_TYPE_UNSPECIFIED = 0; + */ + public static final int ACCESS_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Anyone with the join information (for example, the URL or phone access
+     * information) can join without knocking.
+     * 
+ * + * OPEN = 1; + */ + public static final int OPEN_VALUE = 1; + /** + * + * + *
+     * Members of the host's organization, invited external users, and dial-in
+     * users can join without knocking. Everyone else must knock.
+     * 
+ * + * TRUSTED = 2; + */ + public static final int TRUSTED_VALUE = 2; + /** + * + * + *
+     * Only invitees can join without knocking. Everyone else must knock.
+     * 
+ * + * RESTRICTED = 3; + */ + public static final int RESTRICTED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AccessType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AccessType forNumber(int value) { + switch (value) { + case 0: + return ACCESS_TYPE_UNSPECIFIED; + case 1: + return OPEN; + case 2: + return TRUSTED; + case 3: + return RESTRICTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessType findValueByNumber(int number) { + return AccessType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.apps.meet.v2.SpaceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final AccessType[] VALUES = values(); + + public static AccessType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AccessType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2.SpaceConfig.AccessType) + } + + /** + * + * + *
+   * Entry points that can be used to join a meeting.  Example:
+   * `meet.google.com`, the Meet Embed SDK Web, or a mobile application.
+   * 
+ * + * Protobuf enum {@code google.apps.meet.v2.SpaceConfig.EntryPointAccess} + */ + public enum EntryPointAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unused.
+     * 
+ * + * ENTRY_POINT_ACCESS_UNSPECIFIED = 0; + */ + ENTRY_POINT_ACCESS_UNSPECIFIED(0), + /** + * + * + *
+     * All entry points are allowed.
+     * 
+ * + * ALL = 1; + */ + ALL(1), + /** + * + * + *
+     * Only entry points owned by the Google Cloud project that created the
+     * space can be used to join meetings in this space. Apps can use the Meet
+     * Embed SDK Web or mobile Meet SDKs to create owned entry points.
+     * 
+ * + * CREATOR_APP_ONLY = 2; + */ + CREATOR_APP_ONLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unused.
+     * 
+ * + * ENTRY_POINT_ACCESS_UNSPECIFIED = 0; + */ + public static final int ENTRY_POINT_ACCESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * All entry points are allowed.
+     * 
+ * + * ALL = 1; + */ + public static final int ALL_VALUE = 1; + /** + * + * + *
+     * Only entry points owned by the Google Cloud project that created the
+     * space can be used to join meetings in this space. Apps can use the Meet
+     * Embed SDK Web or mobile Meet SDKs to create owned entry points.
+     * 
+ * + * CREATOR_APP_ONLY = 2; + */ + public static final int CREATOR_APP_ONLY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryPointAccess valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EntryPointAccess forNumber(int value) { + switch (value) { + case 0: + return ENTRY_POINT_ACCESS_UNSPECIFIED; + case 1: + return ALL; + case 2: + return CREATOR_APP_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EntryPointAccess findValueByNumber(int number) { + return EntryPointAccess.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.apps.meet.v2.SpaceConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final EntryPointAccess[] VALUES = values(); + + public static EntryPointAccess valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EntryPointAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2.SpaceConfig.EntryPointAccess) + } + + public static final int ACCESS_TYPE_FIELD_NUMBER = 1; + private int accessType_ = 0; + /** + * + * + *
+   * Access type of the meeting space that determines who can join without
+   * knocking. Default: The user's default access settings.  Controlled by the
+   * user's admin for enterprise users or RESTRICTED.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return The enum numeric value on the wire for accessType. + */ + @java.lang.Override + public int getAccessTypeValue() { + return accessType_; + } + /** + * + * + *
+   * Access type of the meeting space that determines who can join without
+   * knocking. Default: The user's default access settings.  Controlled by the
+   * user's admin for enterprise users or RESTRICTED.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return The accessType. + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig.AccessType getAccessType() { + com.google.apps.meet.v2.SpaceConfig.AccessType result = + com.google.apps.meet.v2.SpaceConfig.AccessType.forNumber(accessType_); + return result == null ? com.google.apps.meet.v2.SpaceConfig.AccessType.UNRECOGNIZED : result; + } + + public static final int ENTRY_POINT_ACCESS_FIELD_NUMBER = 2; + private int entryPointAccess_ = 0; + /** + * + * + *
+   * Defines the entry points that can be used to join meetings hosted in this
+   * meeting space.
+   * Default: EntryPointAccess.ALL
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The enum numeric value on the wire for entryPointAccess. + */ + @java.lang.Override + public int getEntryPointAccessValue() { + return entryPointAccess_; + } + /** + * + * + *
+   * Defines the entry points that can be used to join meetings hosted in this
+   * meeting space.
+   * Default: EntryPointAccess.ALL
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The entryPointAccess. + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig.EntryPointAccess getEntryPointAccess() { + com.google.apps.meet.v2.SpaceConfig.EntryPointAccess result = + com.google.apps.meet.v2.SpaceConfig.EntryPointAccess.forNumber(entryPointAccess_); + return result == null + ? com.google.apps.meet.v2.SpaceConfig.EntryPointAccess.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (accessType_ + != com.google.apps.meet.v2.SpaceConfig.AccessType.ACCESS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, accessType_); + } + if (entryPointAccess_ + != com.google.apps.meet.v2.SpaceConfig.EntryPointAccess.ENTRY_POINT_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, entryPointAccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (accessType_ + != com.google.apps.meet.v2.SpaceConfig.AccessType.ACCESS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, accessType_); + } + if (entryPointAccess_ + != com.google.apps.meet.v2.SpaceConfig.EntryPointAccess.ENTRY_POINT_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entryPointAccess_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.SpaceConfig)) { + return super.equals(obj); + } + com.google.apps.meet.v2.SpaceConfig other = (com.google.apps.meet.v2.SpaceConfig) obj; + + if (accessType_ != other.accessType_) return false; + if (entryPointAccess_ != other.entryPointAccess_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + accessType_; + hash = (37 * hash) + ENTRY_POINT_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + entryPointAccess_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.SpaceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.SpaceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.SpaceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.SpaceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The configuration pertaining to a meeting space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.SpaceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.SpaceConfig) + com.google.apps.meet.v2.SpaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SpaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SpaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.SpaceConfig.class, + com.google.apps.meet.v2.SpaceConfig.Builder.class); + } + + // Construct using com.google.apps.meet.v2.SpaceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessType_ = 0; + entryPointAccess_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_SpaceConfig_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig getDefaultInstanceForType() { + return com.google.apps.meet.v2.SpaceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig build() { + com.google.apps.meet.v2.SpaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig buildPartial() { + com.google.apps.meet.v2.SpaceConfig result = new com.google.apps.meet.v2.SpaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.SpaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessType_ = accessType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entryPointAccess_ = entryPointAccess_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.SpaceConfig) { + return mergeFrom((com.google.apps.meet.v2.SpaceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.SpaceConfig other) { + if (other == com.google.apps.meet.v2.SpaceConfig.getDefaultInstance()) return this; + if (other.accessType_ != 0) { + setAccessTypeValue(other.getAccessTypeValue()); + } + if (other.entryPointAccess_ != 0) { + setEntryPointAccessValue(other.getEntryPointAccessValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + accessType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + entryPointAccess_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int accessType_ = 0; + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return The enum numeric value on the wire for accessType. + */ + @java.lang.Override + public int getAccessTypeValue() { + return accessType_; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @param value The enum numeric value on the wire for accessType to set. + * @return This builder for chaining. + */ + public Builder setAccessTypeValue(int value) { + accessType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return The accessType. + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig.AccessType getAccessType() { + com.google.apps.meet.v2.SpaceConfig.AccessType result = + com.google.apps.meet.v2.SpaceConfig.AccessType.forNumber(accessType_); + return result == null ? com.google.apps.meet.v2.SpaceConfig.AccessType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @param value The accessType to set. + * @return This builder for chaining. + */ + public Builder setAccessType(com.google.apps.meet.v2.SpaceConfig.AccessType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + accessType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearAccessType() { + bitField0_ = (bitField0_ & ~0x00000001); + accessType_ = 0; + onChanged(); + return this; + } + + private int entryPointAccess_ = 0; + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The enum numeric value on the wire for entryPointAccess. + */ + @java.lang.Override + public int getEntryPointAccessValue() { + return entryPointAccess_; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @param value The enum numeric value on the wire for entryPointAccess to set. + * @return This builder for chaining. + */ + public Builder setEntryPointAccessValue(int value) { + entryPointAccess_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The entryPointAccess. + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig.EntryPointAccess getEntryPointAccess() { + com.google.apps.meet.v2.SpaceConfig.EntryPointAccess result = + com.google.apps.meet.v2.SpaceConfig.EntryPointAccess.forNumber(entryPointAccess_); + return result == null + ? com.google.apps.meet.v2.SpaceConfig.EntryPointAccess.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @param value The entryPointAccess to set. + * @return This builder for chaining. + */ + public Builder setEntryPointAccess(com.google.apps.meet.v2.SpaceConfig.EntryPointAccess value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + entryPointAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return This builder for chaining. + */ + public Builder clearEntryPointAccess() { + bitField0_ = (bitField0_ & ~0x00000002); + entryPointAccess_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.SpaceConfig) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.SpaceConfig) + private static final com.google.apps.meet.v2.SpaceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.SpaceConfig(); + } + + public static com.google.apps.meet.v2.SpaceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpaceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.SpaceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfigOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfigOrBuilder.java new file mode 100644 index 000000000000..3d5fda25af12 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceConfigOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface SpaceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.SpaceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Access type of the meeting space that determines who can join without
+   * knocking. Default: The user's default access settings.  Controlled by the
+   * user's admin for enterprise users or RESTRICTED.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return The enum numeric value on the wire for accessType. + */ + int getAccessTypeValue(); + /** + * + * + *
+   * Access type of the meeting space that determines who can join without
+   * knocking. Default: The user's default access settings.  Controlled by the
+   * user's admin for enterprise users or RESTRICTED.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; + * + * @return The accessType. + */ + com.google.apps.meet.v2.SpaceConfig.AccessType getAccessType(); + + /** + * + * + *
+   * Defines the entry points that can be used to join meetings hosted in this
+   * meeting space.
+   * Default: EntryPointAccess.ALL
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The enum numeric value on the wire for entryPointAccess. + */ + int getEntryPointAccessValue(); + /** + * + * + *
+   * Defines the entry points that can be used to join meetings hosted in this
+   * meeting space.
+   * Default: EntryPointAccess.ALL
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The entryPointAccess. + */ + com.google.apps.meet.v2.SpaceConfig.EntryPointAccess getEntryPointAccess(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java new file mode 100644 index 000000000000..56ed883fb6b3 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java @@ -0,0 +1,167 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SpaceName implements ResourceName { + private static final PathTemplate SPACE = PathTemplate.createWithoutUrlEncoding("spaces/{space}"); + private volatile Map fieldValuesMap; + private final String space; + + @Deprecated + protected SpaceName() { + space = null; + } + + private SpaceName(Builder builder) { + space = Preconditions.checkNotNull(builder.getSpace()); + } + + public String getSpace() { + return space; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SpaceName of(String space) { + return newBuilder().setSpace(space).build(); + } + + public static String format(String space) { + return newBuilder().setSpace(space).build().toString(); + } + + public static SpaceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SPACE.validatedMatch( + formattedString, "SpaceName.parse: formattedString not in valid format"); + return of(matchMap.get("space")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SpaceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SPACE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (space != null) { + fieldMapBuilder.put("space", space); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SPACE.instantiate("space", space); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SpaceName that = ((SpaceName) o); + return Objects.equals(this.space, that.space); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(space); + return h; + } + + /** Builder for spaces/{space}. */ + public static class Builder { + private String space; + + protected Builder() {} + + public String getSpace() { + return space; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + private Builder(SpaceName spaceName) { + this.space = spaceName.space; + } + + public SpaceName build() { + return new SpaceName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java new file mode 100644 index 000000000000..17f8f9d3fd99 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface SpaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.Space) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. Resource name of the space.
+   * Format: `spaces/{space}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Immutable. Resource name of the space.
+   * Format: `spaces/{space}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. URI used to join meetings, such as
+   * `https://meet.google.com/abc-mnop-xyz`.
+   * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The meetingUri. + */ + java.lang.String getMeetingUri(); + /** + * + * + *
+   * Output only. URI used to join meetings, such as
+   * `https://meet.google.com/abc-mnop-xyz`.
+   * 
+ * + * string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for meetingUri. + */ + com.google.protobuf.ByteString getMeetingUriBytes(); + + /** + * + * + *
+   * Output only. Type friendly code to join the meeting. Format:
+   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+   * characters. Can only be used as an alias of the space ID to get the space.
+   * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The meetingCode. + */ + java.lang.String getMeetingCode(); + /** + * + * + *
+   * Output only. Type friendly code to join the meeting. Format:
+   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
+   * characters. Can only be used as an alias of the space ID to get the space.
+   * 
+ * + * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for meetingCode. + */ + com.google.protobuf.ByteString getMeetingCodeBytes(); + + /** + * + * + *
+   * Configuration pertaining to the meeting space.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Configuration pertaining to the meeting space.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + * + * @return The config. + */ + com.google.apps.meet.v2.SpaceConfig getConfig(); + /** + * + * + *
+   * Configuration pertaining to the meeting space.
+   * 
+ * + * .google.apps.meet.v2.SpaceConfig config = 5; + */ + com.google.apps.meet.v2.SpaceConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Active conference, if it exists.
+   * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + * + * @return Whether the activeConference field is set. + */ + boolean hasActiveConference(); + /** + * + * + *
+   * Active conference, if it exists.
+   * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + * + * @return The activeConference. + */ + com.google.apps.meet.v2.ActiveConference getActiveConference(); + /** + * + * + *
+   * Active conference, if it exists.
+   * 
+ * + * .google.apps.meet.v2.ActiveConference active_conference = 6; + */ + com.google.apps.meet.v2.ActiveConferenceOrBuilder getActiveConferenceOrBuilder(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Transcript.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Transcript.java new file mode 100644 index 000000000000..7ef2168510f4 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Transcript.java @@ -0,0 +1,1941 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Metadata for a transcript generated from a conference. It refers to the ASR
+ * (Automatic Speech Recognition) result of user's speech during the conference.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.Transcript} + */ +public final class Transcript extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.Transcript) + TranscriptOrBuilder { + private static final long serialVersionUID = 0L; + // Use Transcript.newBuilder() to construct. + private Transcript(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Transcript() { + name_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Transcript(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Transcript_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Transcript_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Transcript.class, + com.google.apps.meet.v2.Transcript.Builder.class); + } + + /** + * + * + *
+   * Current state of the transcript session.
+   * 
+ * + * Protobuf enum {@code google.apps.meet.v2.Transcript.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default, never used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * An active transcript session has started.
+     * 
+ * + * STARTED = 1; + */ + STARTED(1), + /** + * + * + *
+     * This transcript session has ended, but the transcript file hasn't been
+     * generated yet.
+     * 
+ * + * ENDED = 2; + */ + ENDED(2), + /** + * + * + *
+     * Transcript file is generated and ready to download.
+     * 
+ * + * FILE_GENERATED = 3; + */ + FILE_GENERATED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default, never used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * An active transcript session has started.
+     * 
+ * + * STARTED = 1; + */ + public static final int STARTED_VALUE = 1; + /** + * + * + *
+     * This transcript session has ended, but the transcript file hasn't been
+     * generated yet.
+     * 
+ * + * ENDED = 2; + */ + public static final int ENDED_VALUE = 2; + /** + * + * + *
+     * Transcript file is generated and ready to download.
+     * 
+ * + * FILE_GENERATED = 3; + */ + public static final int FILE_GENERATED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTED; + case 2: + return ENDED; + case 3: + return FILE_GENERATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.apps.meet.v2.Transcript.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2.Transcript.State) + } + + private int bitField0_; + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DOCS_DESTINATION(6), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 6: + return DOCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int DOCS_DESTINATION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Output only. Where the Google Docs transcript is saved.
+   * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the docsDestination field is set. + */ + @java.lang.Override + public boolean hasDocsDestination() { + return destinationCase_ == 6; + } + /** + * + * + *
+   * Output only. Where the Google Docs transcript is saved.
+   * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The docsDestination. + */ + @java.lang.Override + public com.google.apps.meet.v2.DocsDestination getDocsDestination() { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DocsDestination) destination_; + } + return com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Where the Google Docs transcript is saved.
+   * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.apps.meet.v2.DocsDestinationOrBuilder getDocsDestinationOrBuilder() { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DocsDestination) destination_; + } + return com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of the transcript.
+   * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+   * where `{transcript}` is a 1:1 mapping to each unique transcription session
+   * of the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the transcript.
+   * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+   * where `{transcript}` is a 1:1 mapping to each unique transcription session
+   * of the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.apps.meet.v2.Transcript.State getState() { + com.google.apps.meet.v2.Transcript.State result = + com.google.apps.meet.v2.Transcript.State.forNumber(state_); + return result == null ? com.google.apps.meet.v2.Transcript.State.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Timestamp when the transcript started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the transcript started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the transcript started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Timestamp when the transcript stopped.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the transcript stopped.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the transcript stopped.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ != com.google.apps.meet.v2.Transcript.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getEndTime()); + } + if (destinationCase_ == 6) { + output.writeMessage(6, (com.google.apps.meet.v2.DocsDestination) destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ != com.google.apps.meet.v2.Transcript.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + } + if (destinationCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.apps.meet.v2.DocsDestination) destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.Transcript)) { + return super.equals(obj); + } + com.google.apps.meet.v2.Transcript other = (com.google.apps.meet.v2.Transcript) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 6: + if (!getDocsDestination().equals(other.getDocsDestination())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + switch (destinationCase_) { + case 6: + hash = (37 * hash) + DOCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDocsDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.Transcript parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Transcript parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Transcript parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Transcript parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Transcript parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.Transcript parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.Transcript parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Transcript parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Transcript parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Transcript parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.Transcript parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.Transcript parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.Transcript prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata for a transcript generated from a conference. It refers to the ASR
+   * (Automatic Speech Recognition) result of user's speech during the conference.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.Transcript} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.Transcript) + com.google.apps.meet.v2.TranscriptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Transcript_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Transcript_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.Transcript.class, + com.google.apps.meet.v2.Transcript.Builder.class); + } + + // Construct using com.google.apps.meet.v2.Transcript.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (docsDestinationBuilder_ != null) { + docsDestinationBuilder_.clear(); + } + name_ = ""; + state_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_Transcript_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.Transcript getDefaultInstanceForType() { + return com.google.apps.meet.v2.Transcript.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.Transcript build() { + com.google.apps.meet.v2.Transcript result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.Transcript buildPartial() { + com.google.apps.meet.v2.Transcript result = new com.google.apps.meet.v2.Transcript(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.Transcript result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.apps.meet.v2.Transcript result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 6 && docsDestinationBuilder_ != null) { + result.destination_ = docsDestinationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.Transcript) { + return mergeFrom((com.google.apps.meet.v2.Transcript) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.Transcript other) { + if (other == com.google.apps.meet.v2.Transcript.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + switch (other.getDestinationCase()) { + case DOCS_DESTINATION: + { + mergeDocsDestination(other.getDocsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getDocsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.DocsDestination, + com.google.apps.meet.v2.DocsDestination.Builder, + com.google.apps.meet.v2.DocsDestinationOrBuilder> + docsDestinationBuilder_; + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the docsDestination field is set. + */ + @java.lang.Override + public boolean hasDocsDestination() { + return destinationCase_ == 6; + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The docsDestination. + */ + @java.lang.Override + public com.google.apps.meet.v2.DocsDestination getDocsDestination() { + if (docsDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DocsDestination) destination_; + } + return com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 6) { + return docsDestinationBuilder_.getMessage(); + } + return com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDocsDestination(com.google.apps.meet.v2.DocsDestination value) { + if (docsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + docsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 6; + return this; + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDocsDestination( + com.google.apps.meet.v2.DocsDestination.Builder builderForValue) { + if (docsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + docsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 6; + return this; + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDocsDestination(com.google.apps.meet.v2.DocsDestination value) { + if (docsDestinationBuilder_ == null) { + if (destinationCase_ == 6 + && destination_ != com.google.apps.meet.v2.DocsDestination.getDefaultInstance()) { + destination_ = + com.google.apps.meet.v2.DocsDestination.newBuilder( + (com.google.apps.meet.v2.DocsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 6) { + docsDestinationBuilder_.mergeFrom(value); + } else { + docsDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 6; + return this; + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDocsDestination() { + if (docsDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + } + docsDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.apps.meet.v2.DocsDestination.Builder getDocsDestinationBuilder() { + return getDocsDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.apps.meet.v2.DocsDestinationOrBuilder getDocsDestinationOrBuilder() { + if ((destinationCase_ == 6) && (docsDestinationBuilder_ != null)) { + return docsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 6) { + return (com.google.apps.meet.v2.DocsDestination) destination_; + } + return com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Where the Google Docs transcript is saved.
+     * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.DocsDestination, + com.google.apps.meet.v2.DocsDestination.Builder, + com.google.apps.meet.v2.DocsDestinationOrBuilder> + getDocsDestinationFieldBuilder() { + if (docsDestinationBuilder_ == null) { + if (!(destinationCase_ == 6)) { + destination_ = com.google.apps.meet.v2.DocsDestination.getDefaultInstance(); + } + docsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.DocsDestination, + com.google.apps.meet.v2.DocsDestination.Builder, + com.google.apps.meet.v2.DocsDestinationOrBuilder>( + (com.google.apps.meet.v2.DocsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 6; + onChanged(); + return docsDestinationBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the transcript.
+     * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+     * where `{transcript}` is a 1:1 mapping to each unique transcription session
+     * of the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the transcript.
+     * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+     * where `{transcript}` is a 1:1 mapping to each unique transcription session
+     * of the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the transcript.
+     * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+     * where `{transcript}` is a 1:1 mapping to each unique transcription session
+     * of the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the transcript.
+     * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+     * where `{transcript}` is a 1:1 mapping to each unique transcription session
+     * of the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the transcript.
+     * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+     * where `{transcript}` is a 1:1 mapping to each unique transcription session
+     * of the conference.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.apps.meet.v2.Transcript.State getState() { + com.google.apps.meet.v2.Transcript.State result = + com.google.apps.meet.v2.Transcript.State.forNumber(state_); + return result == null ? com.google.apps.meet.v2.Transcript.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.apps.meet.v2.Transcript.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Current state.
+     * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript stopped.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.Transcript) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.Transcript) + private static final com.google.apps.meet.v2.Transcript DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.Transcript(); + } + + public static com.google.apps.meet.v2.Transcript getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transcript parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.Transcript getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntry.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntry.java new file mode 100644 index 000000000000..509f8f1e4dd1 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntry.java @@ -0,0 +1,1759 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Single entry for one user’s speech during a transcript session.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.TranscriptEntry} + */ +public final class TranscriptEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.TranscriptEntry) + TranscriptEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranscriptEntry.newBuilder() to construct. + private TranscriptEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranscriptEntry() { + name_ = ""; + participant_ = ""; + text_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranscriptEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_TranscriptEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_TranscriptEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.TranscriptEntry.class, + com.google.apps.meet.v2.TranscriptEntry.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of the entry. Format:
+   * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the entry. Format:
+   * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTICIPANT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object participant_ = ""; + /** + * + * + *
+   * Output only. Refers to the participant who speaks.
+   * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The participant. + */ + @java.lang.Override + public java.lang.String getParticipant() { + java.lang.Object ref = participant_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participant_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Refers to the participant who speaks.
+   * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for participant. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParticipantBytes() { + java.lang.Object ref = participant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + participant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+   * Output only. The transcribed text of the participant's voice, at maximum
+   * 10K words. Note that the limit is subject to change.
+   * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The transcribed text of the participant's voice, at maximum
+   * 10K words. Note that the limit is subject to change.
+   * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
+   * Output only. Language of spoken text, such as "en-US".
+   * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Language of spoken text, such as "en-US".
+   * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Timestamp when the transcript entry started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the transcript entry started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the transcript entry started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Timestamp when the transcript entry ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when the transcript entry ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Timestamp when the transcript entry ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, participant_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, participant_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.TranscriptEntry)) { + return super.equals(obj); + } + com.google.apps.meet.v2.TranscriptEntry other = (com.google.apps.meet.v2.TranscriptEntry) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParticipant().equals(other.getParticipant())) return false; + if (!getText().equals(other.getText())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PARTICIPANT_FIELD_NUMBER; + hash = (53 * hash) + getParticipant().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.TranscriptEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.TranscriptEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Single entry for one user’s speech during a transcript session.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.TranscriptEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.TranscriptEntry) + com.google.apps.meet.v2.TranscriptEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_TranscriptEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_TranscriptEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.TranscriptEntry.class, + com.google.apps.meet.v2.TranscriptEntry.Builder.class); + } + + // Construct using com.google.apps.meet.v2.TranscriptEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + participant_ = ""; + text_ = ""; + languageCode_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ResourceProto + .internal_static_google_apps_meet_v2_TranscriptEntry_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.TranscriptEntry getDefaultInstanceForType() { + return com.google.apps.meet.v2.TranscriptEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.TranscriptEntry build() { + com.google.apps.meet.v2.TranscriptEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.TranscriptEntry buildPartial() { + com.google.apps.meet.v2.TranscriptEntry result = + new com.google.apps.meet.v2.TranscriptEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.TranscriptEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.participant_ = participant_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.TranscriptEntry) { + return mergeFrom((com.google.apps.meet.v2.TranscriptEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.TranscriptEntry other) { + if (other == com.google.apps.meet.v2.TranscriptEntry.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParticipant().isEmpty()) { + participant_ = other.participant_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + participant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the entry. Format:
+     * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the entry. Format:
+     * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the entry. Format:
+     * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the entry. Format:
+     * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the entry. Format:
+     * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object participant_ = ""; + /** + * + * + *
+     * Output only. Refers to the participant who speaks.
+     * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The participant. + */ + public java.lang.String getParticipant() { + java.lang.Object ref = participant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Refers to the participant who speaks.
+     * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for participant. + */ + public com.google.protobuf.ByteString getParticipantBytes() { + java.lang.Object ref = participant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + participant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Refers to the participant who speaks.
+     * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The participant to set. + * @return This builder for chaining. + */ + public Builder setParticipant(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + participant_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Refers to the participant who speaks.
+     * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParticipant() { + participant_ = getDefaultInstance().getParticipant(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Refers to the participant who speaks.
+     * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for participant to set. + * @return This builder for chaining. + */ + public Builder setParticipantBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + participant_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
+     * Output only. The transcribed text of the participant's voice, at maximum
+     * 10K words. Note that the limit is subject to change.
+     * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The transcribed text of the participant's voice, at maximum
+     * 10K words. Note that the limit is subject to change.
+     * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The transcribed text of the participant's voice, at maximum
+     * 10K words. Note that the limit is subject to change.
+     * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The transcribed text of the participant's voice, at maximum
+     * 10K words. Note that the limit is subject to change.
+     * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The transcribed text of the participant's voice, at maximum
+     * 10K words. Note that the limit is subject to change.
+     * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Output only. Language of spoken text, such as "en-US".
+     * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Language of spoken text, such as "en-US".
+     * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Language of spoken text, such as "en-US".
+     * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Language of spoken text, such as "en-US".
+     * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Language of spoken text, such as "en-US".
+     * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when the transcript entry ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.TranscriptEntry) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.TranscriptEntry) + private static final com.google.apps.meet.v2.TranscriptEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.TranscriptEntry(); + } + + public static com.google.apps.meet.v2.TranscriptEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.TranscriptEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java new file mode 100644 index 000000000000..5d8153b9e965 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TranscriptEntryName implements ResourceName { + private static final PathTemplate CONFERENCE_RECORD_TRANSCRIPT_ENTRY = + PathTemplate.createWithoutUrlEncoding( + "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"); + private volatile Map fieldValuesMap; + private final String conferenceRecord; + private final String transcript; + private final String entry; + + @Deprecated + protected TranscriptEntryName() { + conferenceRecord = null; + transcript = null; + entry = null; + } + + private TranscriptEntryName(Builder builder) { + conferenceRecord = Preconditions.checkNotNull(builder.getConferenceRecord()); + transcript = Preconditions.checkNotNull(builder.getTranscript()); + entry = Preconditions.checkNotNull(builder.getEntry()); + } + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getTranscript() { + return transcript; + } + + public String getEntry() { + return entry; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TranscriptEntryName of(String conferenceRecord, String transcript, String entry) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setTranscript(transcript) + .setEntry(entry) + .build(); + } + + public static String format(String conferenceRecord, String transcript, String entry) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setTranscript(transcript) + .setEntry(entry) + .build() + .toString(); + } + + public static TranscriptEntryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + CONFERENCE_RECORD_TRANSCRIPT_ENTRY.validatedMatch( + formattedString, "TranscriptEntryName.parse: formattedString not in valid format"); + return of(matchMap.get("conference_record"), matchMap.get("transcript"), matchMap.get("entry")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TranscriptEntryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return CONFERENCE_RECORD_TRANSCRIPT_ENTRY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (conferenceRecord != null) { + fieldMapBuilder.put("conference_record", conferenceRecord); + } + if (transcript != null) { + fieldMapBuilder.put("transcript", transcript); + } + if (entry != null) { + fieldMapBuilder.put("entry", entry); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return CONFERENCE_RECORD_TRANSCRIPT_ENTRY.instantiate( + "conference_record", conferenceRecord, "transcript", transcript, "entry", entry); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TranscriptEntryName that = ((TranscriptEntryName) o); + return Objects.equals(this.conferenceRecord, that.conferenceRecord) + && Objects.equals(this.transcript, that.transcript) + && Objects.equals(this.entry, that.entry); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(conferenceRecord); + h *= 1000003; + h ^= Objects.hashCode(transcript); + h *= 1000003; + h ^= Objects.hashCode(entry); + return h; + } + + /** Builder for conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}. */ + public static class Builder { + private String conferenceRecord; + private String transcript; + private String entry; + + protected Builder() {} + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getTranscript() { + return transcript; + } + + public String getEntry() { + return entry; + } + + public Builder setConferenceRecord(String conferenceRecord) { + this.conferenceRecord = conferenceRecord; + return this; + } + + public Builder setTranscript(String transcript) { + this.transcript = transcript; + return this; + } + + public Builder setEntry(String entry) { + this.entry = entry; + return this; + } + + private Builder(TranscriptEntryName transcriptEntryName) { + this.conferenceRecord = transcriptEntryName.conferenceRecord; + this.transcript = transcriptEntryName.transcript; + this.entry = transcriptEntryName.entry; + } + + public TranscriptEntryName build() { + return new TranscriptEntryName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryOrBuilder.java new file mode 100644 index 000000000000..8754fd30b773 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface TranscriptEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.TranscriptEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of the entry. Format:
+   * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the entry. Format:
+   * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Refers to the participant who speaks.
+   * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The participant. + */ + java.lang.String getParticipant(); + /** + * + * + *
+   * Output only. Refers to the participant who speaks.
+   * 
+ * + * + * string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for participant. + */ + com.google.protobuf.ByteString getParticipantBytes(); + + /** + * + * + *
+   * Output only. The transcribed text of the participant's voice, at maximum
+   * 10K words. Note that the limit is subject to change.
+   * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+   * Output only. The transcribed text of the participant's voice, at maximum
+   * 10K words. Note that the limit is subject to change.
+   * 
+ * + * string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * Output only. Language of spoken text, such as "en-US".
+   * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Output only. Language of spoken text, such as "en-US".
+   * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47)
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Output only. Timestamp when the transcript entry started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript entry started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript entry started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the transcript entry ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript entry ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript entry ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java new file mode 100644 index 000000000000..4ea563b6e76c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TranscriptName implements ResourceName { + private static final PathTemplate CONFERENCE_RECORD_TRANSCRIPT = + PathTemplate.createWithoutUrlEncoding( + "conferenceRecords/{conference_record}/transcripts/{transcript}"); + private volatile Map fieldValuesMap; + private final String conferenceRecord; + private final String transcript; + + @Deprecated + protected TranscriptName() { + conferenceRecord = null; + transcript = null; + } + + private TranscriptName(Builder builder) { + conferenceRecord = Preconditions.checkNotNull(builder.getConferenceRecord()); + transcript = Preconditions.checkNotNull(builder.getTranscript()); + } + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getTranscript() { + return transcript; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TranscriptName of(String conferenceRecord, String transcript) { + return newBuilder().setConferenceRecord(conferenceRecord).setTranscript(transcript).build(); + } + + public static String format(String conferenceRecord, String transcript) { + return newBuilder() + .setConferenceRecord(conferenceRecord) + .setTranscript(transcript) + .build() + .toString(); + } + + public static TranscriptName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + CONFERENCE_RECORD_TRANSCRIPT.validatedMatch( + formattedString, "TranscriptName.parse: formattedString not in valid format"); + return of(matchMap.get("conference_record"), matchMap.get("transcript")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TranscriptName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return CONFERENCE_RECORD_TRANSCRIPT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (conferenceRecord != null) { + fieldMapBuilder.put("conference_record", conferenceRecord); + } + if (transcript != null) { + fieldMapBuilder.put("transcript", transcript); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return CONFERENCE_RECORD_TRANSCRIPT.instantiate( + "conference_record", conferenceRecord, "transcript", transcript); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TranscriptName that = ((TranscriptName) o); + return Objects.equals(this.conferenceRecord, that.conferenceRecord) + && Objects.equals(this.transcript, that.transcript); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(conferenceRecord); + h *= 1000003; + h ^= Objects.hashCode(transcript); + return h; + } + + /** Builder for conferenceRecords/{conference_record}/transcripts/{transcript}. */ + public static class Builder { + private String conferenceRecord; + private String transcript; + + protected Builder() {} + + public String getConferenceRecord() { + return conferenceRecord; + } + + public String getTranscript() { + return transcript; + } + + public Builder setConferenceRecord(String conferenceRecord) { + this.conferenceRecord = conferenceRecord; + return this; + } + + public Builder setTranscript(String transcript) { + this.transcript = transcript; + return this; + } + + private Builder(TranscriptName transcriptName) { + this.conferenceRecord = transcriptName.conferenceRecord; + this.transcript = transcriptName.transcript; + } + + public TranscriptName build() { + return new TranscriptName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptOrBuilder.java new file mode 100644 index 000000000000..62d04d4db4b8 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/resource.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface TranscriptOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.Transcript) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Where the Google Docs transcript is saved.
+   * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the docsDestination field is set. + */ + boolean hasDocsDestination(); + /** + * + * + *
+   * Output only. Where the Google Docs transcript is saved.
+   * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The docsDestination. + */ + com.google.apps.meet.v2.DocsDestination getDocsDestination(); + /** + * + * + *
+   * Output only. Where the Google Docs transcript is saved.
+   * 
+ * + * + * .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.apps.meet.v2.DocsDestinationOrBuilder getDocsDestinationOrBuilder(); + + /** + * + * + *
+   * Output only. Resource name of the transcript.
+   * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+   * where `{transcript}` is a 1:1 mapping to each unique transcription session
+   * of the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the transcript.
+   * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`,
+   * where `{transcript}` is a 1:1 mapping to each unique transcription session
+   * of the conference.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. Current state.
+   * 
+ * + * + * .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.apps.meet.v2.Transcript.State getState(); + + /** + * + * + *
+   * Output only. Timestamp when the transcript started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the transcript stopped.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript stopped.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Timestamp when the transcript stopped.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + com.google.apps.meet.v2.Transcript.DestinationCase getDestinationCase(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java new file mode 100644 index 000000000000..6f15b884ae23 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java @@ -0,0 +1,1024 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +/** + * + * + *
+ * Request to update a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2.UpdateSpaceRequest} + */ +public final class UpdateSpaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2.UpdateSpaceRequest) + UpdateSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSpaceRequest.newBuilder() to construct. + private UpdateSpaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSpaceRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSpaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_UpdateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_UpdateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.UpdateSpaceRequest.class, + com.google.apps.meet.v2.UpdateSpaceRequest.Builder.class); + } + + private int bitField0_; + public static final int SPACE_FIELD_NUMBER = 1; + private com.google.apps.meet.v2.Space space_; + /** + * + * + *
+   * Required. Space to be updated.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the space field is set. + */ + @java.lang.Override + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Space to be updated.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The space. + */ + @java.lang.Override + public com.google.apps.meet.v2.Space getSpace() { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } + /** + * + * + *
+   * Required. Space to be updated.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder() { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Field mask used to specify the fields to be updated in the space.
+   * If update_mask isn't provided, it defaults to '*' and updates all
+   * fields provided in the request, including deleting fields not set in the
+   * request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Field mask used to specify the fields to be updated in the space.
+   * If update_mask isn't provided, it defaults to '*' and updates all
+   * fields provided in the request, including deleting fields not set in the
+   * request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Field mask used to specify the fields to be updated in the space.
+   * If update_mask isn't provided, it defaults to '*' and updates all
+   * fields provided in the request, including deleting fields not set in the
+   * request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSpace()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpace()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2.UpdateSpaceRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2.UpdateSpaceRequest other = + (com.google.apps.meet.v2.UpdateSpaceRequest) obj; + + if (hasSpace() != other.hasSpace()) return false; + if (hasSpace()) { + if (!getSpace().equals(other.getSpace())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSpace()) { + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2.UpdateSpaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to update a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2.UpdateSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2.UpdateSpaceRequest) + com.google.apps.meet.v2.UpdateSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_UpdateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_UpdateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2.UpdateSpaceRequest.class, + com.google.apps.meet.v2.UpdateSpaceRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2.UpdateSpaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSpaceFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2.ServiceProto + .internal_static_google_apps_meet_v2_UpdateSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2.UpdateSpaceRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2.UpdateSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2.UpdateSpaceRequest build() { + com.google.apps.meet.v2.UpdateSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2.UpdateSpaceRequest buildPartial() { + com.google.apps.meet.v2.UpdateSpaceRequest result = + new com.google.apps.meet.v2.UpdateSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2.UpdateSpaceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2.UpdateSpaceRequest) { + return mergeFrom((com.google.apps.meet.v2.UpdateSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2.UpdateSpaceRequest other) { + if (other == com.google.apps.meet.v2.UpdateSpaceRequest.getDefaultInstance()) return this; + if (other.hasSpace()) { + mergeSpace(other.getSpace()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSpaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.apps.meet.v2.Space space_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.Space, + com.google.apps.meet.v2.Space.Builder, + com.google.apps.meet.v2.SpaceOrBuilder> + spaceBuilder_; + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the space field is set. + */ + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The space. + */ + public com.google.apps.meet.v2.Space getSpace() { + if (spaceBuilder_ == null) { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } else { + return spaceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpace(com.google.apps.meet.v2.Space value) { + if (spaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + } else { + spaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpace(com.google.apps.meet.v2.Space.Builder builderForValue) { + if (spaceBuilder_ == null) { + space_ = builderForValue.build(); + } else { + spaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSpace(com.google.apps.meet.v2.Space value) { + if (spaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && space_ != null + && space_ != com.google.apps.meet.v2.Space.getDefaultInstance()) { + getSpaceBuilder().mergeFrom(value); + } else { + space_ = value; + } + } else { + spaceBuilder_.mergeFrom(value); + } + if (space_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSpace() { + bitField0_ = (bitField0_ & ~0x00000001); + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.apps.meet.v2.Space.Builder getSpaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSpaceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder() { + if (spaceBuilder_ != null) { + return spaceBuilder_.getMessageOrBuilder(); + } else { + return space_ == null ? com.google.apps.meet.v2.Space.getDefaultInstance() : space_; + } + } + /** + * + * + *
+     * Required. Space to be updated.
+     * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.Space, + com.google.apps.meet.v2.Space.Builder, + com.google.apps.meet.v2.SpaceOrBuilder> + getSpaceFieldBuilder() { + if (spaceBuilder_ == null) { + spaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2.Space, + com.google.apps.meet.v2.Space.Builder, + com.google.apps.meet.v2.SpaceOrBuilder>( + getSpace(), getParentForChildren(), isClean()); + space_ = null; + } + return spaceBuilder_; + } + + 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_; + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional. Field mask used to specify the fields to be updated in the space.
+     * If update_mask isn't provided, it defaults to '*' and updates all
+     * fields provided in the request, including deleting fields not set in the
+     * request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2.UpdateSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2.UpdateSpaceRequest) + private static final com.google.apps.meet.v2.UpdateSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2.UpdateSpaceRequest(); + } + + public static com.google.apps.meet.v2.UpdateSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2.UpdateSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..91170e1b66a6 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2/service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.apps.meet.v2; + +public interface UpdateSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2.UpdateSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Space to be updated.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the space field is set. + */ + boolean hasSpace(); + /** + * + * + *
+   * Required. Space to be updated.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The space. + */ + com.google.apps.meet.v2.Space getSpace(); + /** + * + * + *
+   * Required. Space to be updated.
+   * 
+ * + * .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask used to specify the fields to be updated in the space.
+   * If update_mask isn't provided, it defaults to '*' and updates all
+   * fields provided in the request, including deleting fields not set in the
+   * request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Field mask used to specify the fields to be updated in the space.
+   * If update_mask isn't provided, it defaults to '*' and updates all
+   * fields provided in the request, including deleting fields not set in the
+   * request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Field mask used to specify the fields to be updated in the space.
+   * If update_mask isn't provided, it defaults to '*' and updates all
+   * fields provided in the request, including deleting fields not set in the
+   * request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto new file mode 100644 index 000000000000..139eef0206ca --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto @@ -0,0 +1,409 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.meet.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Apps.Meet.V2"; +option go_package = "cloud.google.com/go/apps/meet/apiv2/meetpb;meetpb"; +option java_multiple_files = true; +option java_outer_classname = "ResourceProto"; +option java_package = "com.google.apps.meet.v2"; +option php_namespace = "Google\\Apps\\Meet\\V2"; +option ruby_package = "Google::Apps::Meet::V2"; + +// Virtual place where conferences are held. Only one active conference can be +// held in one space at any given time. +message Space { + option (google.api.resource) = { + type: "meet.googleapis.com/Space" + pattern: "spaces/{space}" + }; + + // Immutable. Resource name of the space. + // Format: `spaces/{space}` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. URI used to join meetings, such as + // `https://meet.google.com/abc-mnop-xyz`. + string meeting_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type friendly code to join the meeting. Format: + // `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 + // characters. Can only be used as an alias of the space ID to get the space. + string meeting_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Configuration pertaining to the meeting space. + SpaceConfig config = 5; + + // Active conference, if it exists. + ActiveConference active_conference = 6; +} + +// Active conference. +message ActiveConference { + // Output only. Reference to 'ConferenceRecord' resource. + // Format: `conferenceRecords/{conference_record}` where `{conference_record}` + // is a unique ID for each instance of a call within a space. + string conference_record = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "meet.googleapis.com/ConferenceRecord" + } + ]; +} + +// The configuration pertaining to a meeting space. +message SpaceConfig { + // Possible access types for a meeting space. + enum AccessType { + // Default value specified by the user's organization. + // Note: This is never returned, as the configured access type is + // returned instead. + ACCESS_TYPE_UNSPECIFIED = 0; + + // Anyone with the join information (for example, the URL or phone access + // information) can join without knocking. + OPEN = 1; + + // Members of the host's organization, invited external users, and dial-in + // users can join without knocking. Everyone else must knock. + TRUSTED = 2; + + // Only invitees can join without knocking. Everyone else must knock. + RESTRICTED = 3; + } + + // Entry points that can be used to join a meeting. Example: + // `meet.google.com`, the Meet Embed SDK Web, or a mobile application. + enum EntryPointAccess { + // Unused. + ENTRY_POINT_ACCESS_UNSPECIFIED = 0; + + // All entry points are allowed. + ALL = 1; + + // Only entry points owned by the Google Cloud project that created the + // space can be used to join meetings in this space. Apps can use the Meet + // Embed SDK Web or mobile Meet SDKs to create owned entry points. + CREATOR_APP_ONLY = 2; + } + + // Access type of the meeting space that determines who can join without + // knocking. Default: The user's default access settings. Controlled by the + // user's admin for enterprise users or RESTRICTED. + AccessType access_type = 1; + + // Defines the entry points that can be used to join meetings hosted in this + // meeting space. + // Default: EntryPointAccess.ALL + EntryPointAccess entry_point_access = 2; +} + +// Single instance of a meeting held in a space. +message ConferenceRecord { + option (google.api.resource) = { + type: "meet.googleapis.com/ConferenceRecord" + pattern: "conferenceRecords/{conference_record}" + plural: "conferenceRecords" + singular: "conferenceRecord" + }; + + // Identifier. Resource name of the conference record. + // Format: `conferenceRecords/{conference_record}` where `{conference_record}` + // is a unique ID for each instance of a call within a space. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp when the conference started. Always set. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the conference ended. + // Set for past conferences. Unset if the conference is ongoing. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server enforced expiration time for when this conference + // record resource is deleted. The resource is deleted 30 days after the + // conference ends. + google.protobuf.Timestamp expire_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The space where the conference was held. + string space = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } + ]; +} + +// User who attended or is attending a conference. +message Participant { + option (google.api.resource) = { + type: "meet.googleapis.com/Participant" + pattern: "conferenceRecords/{conference_record}/participants/{participant}" + plural: "participants" + singular: "participant" + }; + + oneof user { + // Signed-in user. + SignedinUser signedin_user = 4; + + // Anonymous user. + AnonymousUser anonymous_user = 5; + + // User calling from their phone. + PhoneUser phone_user = 6; + } + + // Output only. Resource name of the participant. + // Format: `conferenceRecords/{conference_record}/participants/{participant}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the participant first joined the meeting. + google.protobuf.Timestamp earliest_start_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the participant left the meeting for the last time. + // This can be null if it's an active meeting. + google.protobuf.Timestamp latest_end_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Refers to each unique join or leave session when a user joins a conference +// from a device. Note that any time a user joins the conference a new unique ID +// is assigned. That means if a user joins a space multiple times from the same +// device, they're assigned different IDs, and are also be treated as different +// participant sessions. +message ParticipantSession { + option (google.api.resource) = { + type: "meet.googleapis.com/ParticipantSession" + pattern: "conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session}" + plural: "participantSessions" + singular: "participantSession" + }; + + // Identifier. Session id. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp when the user session starts. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the user session ends. Unset if the user + // session hasn’t ended. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A signed-in user can be: +// a) An individual joining from a personal computer, mobile device, or through +// companion mode. +// b) A robot account used by conference room devices. +message SignedinUser { + // Output only. Unique ID for the user. Interoperable with Admin SDK API and + // People API. Format: `users/{user}` + string user = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a personal device, it's the user's first name and last + // name. For a robot account, it's the administrator-specified device name. + // For example, "Altostrat Room". + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// User who joins anonymously (meaning not signed into a Google Account). +message AnonymousUser { + // Output only. User provided name when they join a conference anonymously. + string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// User dialing in from a phone where the user's identity is unknown because +// they haven't signed in with a Google Account. +message PhoneUser { + // Output only. Partially redacted user's phone number when calling. + string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata about a recording created during a conference. +message Recording { + option (google.api.resource) = { + type: "meet.googleapis.com/Recording" + pattern: "conferenceRecords/{conference_record}/recordings/{recording}" + plural: "recordings" + singular: "recording" + }; + + // Current state of the recording session. + enum State { + // Default, never used. + STATE_UNSPECIFIED = 0; + + // An active recording session has started. + STARTED = 1; + + // This recording session has ended, but the recording file hasn't been + // generated yet. + ENDED = 2; + + // Recording file is generated and ready to download. + FILE_GENERATED = 3; + } + + oneof destination { + // Output only. Recording is saved to Google Drive as an MP4 file. The + // `drive_destination` includes the Drive `fileId` that can be used to + // download the file using the `files.get` method of the Drive API. + DriveDestination drive_destination = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Resource name of the recording. + // Format: `conferenceRecords/{conference_record}/recordings/{recording}` + // where `{recording}` is a 1:1 mapping to each unique recording session + // during the conference. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the recording started. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the recording ended. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Export location where a recording file is saved in Google Drive. +message DriveDestination { + // Output only. The `fileId` for the underlying MP4 file. For example, + // "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET + // https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download + // the blob. For more information, see + // https://developers.google.com/drive/api/v3/reference/files/get. + string file = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Link used to play back the recording file in the browser. For + // example, `https://drive.google.com/file/d/{$fileId}/view`. + string export_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata for a transcript generated from a conference. It refers to the ASR +// (Automatic Speech Recognition) result of user's speech during the conference. +message Transcript { + option (google.api.resource) = { + type: "meet.googleapis.com/Transcript" + pattern: "conferenceRecords/{conference_record}/transcripts/{transcript}" + plural: "transcripts" + singular: "transcript" + }; + + // Current state of the transcript session. + enum State { + // Default, never used. + STATE_UNSPECIFIED = 0; + + // An active transcript session has started. + STARTED = 1; + + // This transcript session has ended, but the transcript file hasn't been + // generated yet. + ENDED = 2; + + // Transcript file is generated and ready to download. + FILE_GENERATED = 3; + } + + oneof destination { + // Output only. Where the Google Docs transcript is saved. + DocsDestination docs_destination = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Resource name of the transcript. + // Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, + // where `{transcript}` is a 1:1 mapping to each unique transcription session + // of the conference. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the transcript started. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the transcript stopped. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Google Docs location where the transcript file is saved. +message DocsDestination { + // Output only. The document ID for the underlying Google Docs transcript + // file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the + // `documents.get` method of the Google Docs API + // (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to + // fetch the content. + string document = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URI for the Google Docs transcript file. Use + // `https://docs.google.com/document/d/{$DocumentId}/view` to browse the + // transcript in the browser. + string export_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Single entry for one user’s speech during a transcript session. +message TranscriptEntry { + option (google.api.resource) = { + type: "meet.googleapis.com/TranscriptEntry" + pattern: "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" + plural: "transcriptEntries" + singular: "transcriptEntry" + }; + + // Output only. Resource name of the entry. Format: + // "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Refers to the participant who speaks. + string participant = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "meet.googleapis.com/Participant" + } + ]; + + // Output only. The transcribed text of the participant's voice, at maximum + // 10K words. Note that the limit is subject to change. + string text = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Language of spoken text, such as "en-US". + // IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) + string language_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the transcript entry started. + google.protobuf.Timestamp start_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the transcript entry ended. + google.protobuf.Timestamp end_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto new file mode 100644 index 000000000000..8ad3bea9be47 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto @@ -0,0 +1,520 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.meet.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/apps/meet/v2/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Apps.Meet.V2"; +option go_package = "cloud.google.com/go/apps/meet/apiv2/meetpb;meetpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceProto"; +option java_package = "com.google.apps.meet.v2"; +option php_namespace = "Google\\Apps\\Meet\\V2"; +option ruby_package = "Google::Apps::Meet::V2"; + +// REST API for services dealing with spaces. +service SpacesService { + option (google.api.default_host) = "meet.googleapis.com"; + + // Creates a space. + rpc CreateSpace(CreateSpaceRequest) returns (Space) { + option (google.api.http) = { + post: "/v2/spaces" + body: "space" + }; + option (google.api.method_signature) = "space"; + } + + // Gets a space by `space_id` or `meeting_code`. + rpc GetSpace(GetSpaceRequest) returns (Space) { + option (google.api.http) = { + get: "/v2/{name=spaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a space. + rpc UpdateSpace(UpdateSpaceRequest) returns (Space) { + option (google.api.http) = { + patch: "/v2/{space.name=spaces/*}" + body: "space" + }; + option (google.api.method_signature) = "space,update_mask"; + } + + // Ends an active conference (if there's one). + rpc EndActiveConference(EndActiveConferenceRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v2/{name=spaces/*}:endActiveConference" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// REST API for services dealing with conference records. +service ConferenceRecordsService { + option (google.api.default_host) = "meet.googleapis.com"; + + // Gets a conference record by conference ID. + rpc GetConferenceRecord(GetConferenceRecordRequest) + returns (ConferenceRecord) { + option (google.api.http) = { + get: "/v2/{name=conferenceRecords/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the conference records. By default, ordered by start time and in + // descending order. + rpc ListConferenceRecords(ListConferenceRecordsRequest) + returns (ListConferenceRecordsResponse) { + option (google.api.http) = { + get: "/v2/conferenceRecords" + }; + } + + // Gets a participant by participant ID. + rpc GetParticipant(GetParticipantRequest) returns (Participant) { + option (google.api.http) = { + get: "/v2/{name=conferenceRecords/*/participants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the participants in a conference record. By default, ordered by join + // time and in descending order. This API supports `fields` as standard + // parameters like every other API. However, when the `fields` request + // parameter is omitted, this API defaults to `'participants/*, + // next_page_token'`. + rpc ListParticipants(ListParticipantsRequest) + returns (ListParticipantsResponse) { + option (google.api.http) = { + get: "/v2/{parent=conferenceRecords/*}/participants" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a participant session by participant session ID. + rpc GetParticipantSession(GetParticipantSessionRequest) + returns (ParticipantSession) { + option (google.api.http) = { + get: "/v2/{name=conferenceRecords/*/participants/*/participantSessions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the participant sessions of a participant in a conference record. By + // default, ordered by join time and in descending order. This API supports + // `fields` as standard parameters like every other API. However, when the + // `fields` request parameter is omitted this API defaults to + // `'participantsessions/*, next_page_token'`. + rpc ListParticipantSessions(ListParticipantSessionsRequest) + returns (ListParticipantSessionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=conferenceRecords/*/participants/*}/participantSessions" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a recording by recording ID. + rpc GetRecording(GetRecordingRequest) returns (Recording) { + option (google.api.http) = { + get: "/v2/{name=conferenceRecords/*/recordings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the recording resources from the conference record. By default, + // ordered by start time and in ascending order. + rpc ListRecordings(ListRecordingsRequest) returns (ListRecordingsResponse) { + option (google.api.http) = { + get: "/v2/{parent=conferenceRecords/*}/recordings" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a transcript by transcript ID. + rpc GetTranscript(GetTranscriptRequest) returns (Transcript) { + option (google.api.http) = { + get: "/v2/{name=conferenceRecords/*/transcripts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the set of transcripts from the conference record. By default, + // ordered by start time and in ascending order. + rpc ListTranscripts(ListTranscriptsRequest) + returns (ListTranscriptsResponse) { + option (google.api.http) = { + get: "/v2/{parent=conferenceRecords/*}/transcripts" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a `TranscriptEntry` resource by entry ID. + // + // Note: The transcript entries returned by the Google Meet API might not + // match the transcription found in the Google Docs transcript file. This can + // occur when the Google Docs transcript file is modified after generation. + rpc GetTranscriptEntry(GetTranscriptEntryRequest) returns (TranscriptEntry) { + option (google.api.http) = { + get: "/v2/{name=conferenceRecords/*/transcripts/*/entries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the structured transcript entries per transcript. By default, ordered + // by start time and in ascending order. + // + // Note: The transcript entries returned by the Google Meet API might not + // match the transcription found in the Google Docs transcript file. This can + // occur when the Google Docs transcript file is modified after generation. + rpc ListTranscriptEntries(ListTranscriptEntriesRequest) + returns (ListTranscriptEntriesResponse) { + option (google.api.http) = { + get: "/v2/{parent=conferenceRecords/*/transcripts/*}/entries" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request to create a space. +message CreateSpaceRequest { + // Space to be created. As of May 2023, the input space can be empty. Later on + // the input space can be non-empty when space configuration is introduced. + Space space = 1; +} + +// Request to get a space. +message GetSpaceRequest { + // Required. Resource name of the space. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } + ]; +} + +// Request to update a space. +message UpdateSpaceRequest { + // Required. Space to be updated. + Space space = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask used to specify the fields to be updated in the space. + // If update_mask isn't provided, it defaults to '*' and updates all + // fields provided in the request, including deleting fields not set in the + // request. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request to end an ongoing conference of a space. +message EndActiveConferenceRequest { + // Required. Resource name of the space. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } + ]; +} + +// Request to get a conference record. +message GetConferenceRecordRequest { + // Required. Resource name of the conference. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "meet.googleapis.com/ConferenceRecord" + } + ]; +} + +// Request to fetch list of conference records per user. +message ListConferenceRecordsRequest { + // Optional. Maximum number of conference records to return. The service might + // return fewer than this value. If unspecified, at most 25 conference records + // are returned. The maximum value is 100; values above 100 are coerced to + // 100. Maximum might change in the future. + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token returned from previous List Call. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User specified filtering condition in [EBNF + // format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). + // The following are the filterable fields: + // + // * `space.meeting_code` + // * `space.name` + // * `start_time` + // * `end_time` + // + // For example, `space.meeting_code = "abc-mnop-xyz"`. + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of ListConferenceRecords method. +message ListConferenceRecordsResponse { + // List of conferences in one page. + repeated ConferenceRecord conference_records = 1; + + // Token to be circulated back for further List call if current List does NOT + // include all the Conferences. Unset if all conferences have been returned. + string next_page_token = 2; +} + +// Request to get a participant. +message GetParticipantRequest { + // Required. Resource name of the participant. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "meet.googleapis.com/Participant" + } + ]; +} + +// Request to fetch list of participants per conference. +message ListParticipantsRequest { + // Required. Format: `conferenceRecords/{conference_record}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/Participant" + } + ]; + + // Maximum number of participants to return. The service might return fewer + // than this value. + // If unspecified, at most 100 participants are returned. + // The maximum value is 250; values above 250 are coerced to 250. + // Maximum might change in the future. + int32 page_size = 2; + + // Page token returned from previous List Call. + string page_token = 3; + + // Optional. User specified filtering condition in [EBNF + // format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). + // The following are the filterable fields: + // + // * `earliest_start_time` + // * `latest_end_time` + // + // For example, `latest_end_time IS NULL` returns active participants in + // the conference. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of ListParticipants method. +message ListParticipantsResponse { + // List of participants in one page. + repeated Participant participants = 1; + + // Token to be circulated back for further List call if current List doesn't + // include all the participants. Unset if all participants are returned. + string next_page_token = 2; + + // Total, exact number of `participants`. By default, this field isn't + // included in the response. Set the field mask in + // [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) + // to receive this field in the response. + int32 total_size = 3; +} + +// Request to get a participant session. +message GetParticipantSessionRequest { + // Required. Resource name of the participant. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "meet.googleapis.com/ParticipantSession" + } + ]; +} + +// Request to fetch list of participant sessions per conference record, per +// participant. +message ListParticipantSessionsRequest { + // Required. Format: + // `conferenceRecords/{conference_record}/participants/{participant}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/ParticipantSession" + } + ]; + + // Optional. Maximum number of participant sessions to return. The service + // might return fewer than this value. If unspecified, at most 100 + // participants are returned. The maximum value is 250; values above 250 are + // coerced to 250. Maximum might change in the future. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token returned from previous List Call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User specified filtering condition in [EBNF + // format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). + // The following are the filterable fields: + // + // * `start_time` + // * `end_time` + // + // For example, `end_time IS NULL` returns active participant sessions in + // the conference record. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of ListParticipants method. +message ListParticipantSessionsResponse { + // List of participants in one page. + repeated ParticipantSession participant_sessions = 1; + + // Token to be circulated back for further List call if current List doesn't + // include all the participants. Unset if all participants are returned. + string next_page_token = 2; +} + +// Request message for GetRecording method. +message GetRecordingRequest { + // Required. Resource name of the recording. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "meet.googleapis.com/Recording" } + ]; +} + +// Request for ListRecordings method. +message ListRecordingsRequest { + // Required. Format: `conferenceRecords/{conference_record}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/Recording" + } + ]; + + // Maximum number of recordings to return. The service might return fewer + // than this value. + // If unspecified, at most 10 recordings are returned. + // The maximum value is 100; values above 100 are coerced to 100. + // Maximum might change in the future. + int32 page_size = 2; + + // Page token returned from previous List Call. + string page_token = 3; +} + +// Response for ListRecordings method. +message ListRecordingsResponse { + // List of recordings in one page. + repeated Recording recordings = 1; + + // Token to be circulated back for further List call if current List doesn't + // include all the recordings. Unset if all recordings are returned. + string next_page_token = 2; +} + +// Request for GetTranscript method. +message GetTranscriptRequest { + // Required. Resource name of the transcript. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "meet.googleapis.com/Transcript" } + ]; +} + +// Request for ListTranscripts method. +message ListTranscriptsRequest { + // Required. Format: `conferenceRecords/{conference_record}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/Transcript" + } + ]; + + // Maximum number of transcripts to return. The service might return fewer + // than this value. + // If unspecified, at most 10 transcripts are returned. + // The maximum value is 100; values above 100 are coerced to 100. + // Maximum might change in the future. + int32 page_size = 2; + + // Page token returned from previous List Call. + string page_token = 3; +} + +// Response for ListTranscripts method. +message ListTranscriptsResponse { + // List of transcripts in one page. + repeated Transcript transcripts = 1; + + // Token to be circulated back for further List call if current List doesn't + // include all the transcripts. Unset if all transcripts are returned. + string next_page_token = 2; +} + +// Request for GetTranscriptEntry method. +message GetTranscriptEntryRequest { + // Required. Resource name of the `TranscriptEntry`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "meet.googleapis.com/TranscriptEntry" + } + ]; +} + +// Request for ListTranscriptEntries method. +message ListTranscriptEntriesRequest { + // Required. Format: + // `conferenceRecords/{conference_record}/transcripts/{transcript}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/TranscriptEntry" + } + ]; + + // Maximum number of entries to return. The service might return fewer than + // this value. + // If unspecified, at most 10 entries are returned. + // The maximum value is 100; values above 100 are coerced to 100. + // Maximum might change in the future. + int32 page_size = 2; + + // Page token returned from previous List Call. + string page_token = 3; +} + +// Response for ListTranscriptEntries method. +message ListTranscriptEntriesResponse { + // List of TranscriptEntries in one page. + repeated TranscriptEntry transcript_entries = 1; + + // Token to be circulated back for further List call if current List doesn't + // include all the transcript entries. Unset if all entries are returned. + string next_page_token = 2; +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java index c041de3721ae..192e5880803f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java index 23ba9a3ce6bb..6d2e12790c44 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ActiveConferenceOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUser.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUser.java index 091cdbfda335..06a7d18adff3 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUser.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUser.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUserOrBuilder.java index bc9be4e9853e..273fd2fb3b5f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUserOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/AnonymousUserOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface AnonymousUserOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java index 003131df0d68..7e3909a2f9f6 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.ConferenceRecord.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -185,7 +187,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -238,7 +240,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -347,13 +349,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getEndTime()); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(space_)) { @@ -371,13 +373,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(space_)) { @@ -570,10 +572,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.ConferenceRecord.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getExpireTimeFieldBuilder(); + } } @java.lang.Override @@ -636,18 +649,23 @@ private void buildPartial0(com.google.apps.meet.v2beta.ConferenceRecord result) if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.space_ = space_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1010,8 +1028,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1203,8 +1223,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1412,8 +1434,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java index 0d5380a14cbf..48e5e01693ae 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ConferenceRecordOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequest.java index 650dc35a56cf..a21348bfe98d 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.CreateSpaceRequest.Builder.class); } + private int bitField0_; public static final int SPACE_FIELD_NUMBER = 1; private com.google.apps.meet.v2beta.Space space_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSpace() { - return space_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -123,7 +125,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (space_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSpace()); } getUnknownFields().writeTo(output); @@ -135,7 +137,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (space_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpace()); } size += getUnknownFields().getSerializedSize(); @@ -302,10 +304,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.CreateSpaceRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSpaceFieldBuilder(); + } } @java.lang.Override @@ -353,9 +364,12 @@ public com.google.apps.meet.v2beta.CreateSpaceRequest buildPartial() { private void buildPartial0(com.google.apps.meet.v2beta.CreateSpaceRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -562,8 +576,10 @@ public Builder mergeSpace(com.google.apps.meet.v2beta.Space value) { } else { spaceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (space_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequestOrBuilder.java index 38455e5d8ea4..bfb134aa6b54 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateSpaceRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface CreateSpaceRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestination.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestination.java index a927e07aa347..3d2cba043699 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestination.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestination.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestinationOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestinationOrBuilder.java index bc574b54a962..c9c20b6ef472 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestinationOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DocsDestinationOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface DocsDestinationOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestination.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestination.java index 494ec34738fd..cc2aa389c837 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestination.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestination.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestinationOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestinationOrBuilder.java index 9a227bb833c6..7314e16acdbd 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestinationOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DriveDestinationOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface DriveDestinationOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java index 5e5a7d15d1a5..48c12f4f2611 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java index 97c36c41359a..b2bf6629819f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface EndActiveConferenceRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequest.java index e9dc7a3bb946..ac992a73e05c 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequestOrBuilder.java index 62bdd9ca553f..404d5395cc16 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetConferenceRecordRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetConferenceRecordRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java index 77cdaeaca022..ae550be612db 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequestOrBuilder.java index b5b010bac1b3..662b2a7ce525 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetParticipantRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequest.java index ab1794d60331..b7ddcad8a08e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequestOrBuilder.java index f9964c93a610..f557835df2a8 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantSessionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetParticipantSessionRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequest.java index fa79c2355378..97419ca15d42 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequestOrBuilder.java index 2ed437fc810b..c0f0e38c0027 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetRecordingRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetRecordingRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java index 3f63883dbb88..d3a2cb935403 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java index a707e8acf7f7..d8e1b0f8556e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetSpaceRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequest.java index ebf3f13e2413..48ce56c2ece7 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequestOrBuilder.java index 690b5f0508dd..65d5dab53034 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptEntryRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetTranscriptEntryRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequest.java index 0f88b495c903..17fb4f37d446 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequestOrBuilder.java index 431a28348952..59df9436df67 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetTranscriptRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface GetTranscriptRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java index ea36f836118a..1b18f63a8912 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java index f0baef245544..716423fa6180 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListConferenceRecordsRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponse.java index a6ad8a9028fc..11569d9820cc 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponse.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponseOrBuilder.java index 389c80418aac..aac7858ce69c 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponseOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListConferenceRecordsResponseOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java index 3762022120dd..f6e26588abd1 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java index 5858eb41cfa9..f29fd56482be 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListParticipantSessionsRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponse.java index dc879069441b..3b73f868f2c5 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponse.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponseOrBuilder.java index 1f5bf04be502..f20e92f78316 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponseOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListParticipantSessionsResponseOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java index e4dea175ec86..e7edcca870fb 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java index c2b79e0a9587..8abb9e72d9df 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListParticipantsRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponse.java index 91de83ea5fd7..a7fd461f34b9 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponse.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponseOrBuilder.java index aa6894f3ec11..d9dd9aba46c5 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponseOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListParticipantsResponseOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequest.java index a6c345d573d1..58c88ba52562 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequestOrBuilder.java index 5bc3b998088b..a0ef1cb8bb22 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListRecordingsRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponse.java index 3795e1e90428..f285b02e01a5 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponse.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponseOrBuilder.java index de3032e29817..8ce4433b8e44 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponseOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListRecordingsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListRecordingsResponseOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequest.java index 96a5e6f69728..6a39e2b5258c 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequestOrBuilder.java index 89c09ea12d8b..de5a946e7292 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListTranscriptEntriesRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java index 03f38634d150..16a36a4a1ac9 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponseOrBuilder.java index 461da12f5cbc..94949fbd7b42 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponseOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListTranscriptEntriesResponseOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequest.java index b96e36985b03..ac7f219053f4 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequestOrBuilder.java index c57ddc1d67b5..66199dd4163a 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListTranscriptsRequestOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponse.java index bca21fe678b7..f0fefdd212ee 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponse.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponseOrBuilder.java index 5a98b2fcba7d..8a6647490653 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponseOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ListTranscriptsResponseOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java index d26ec5329069..626708331906 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.Participant.Builder.class); } + private int bitField0_; private int userCase_ = 0; @SuppressWarnings("serial") @@ -339,7 +341,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasEarliestStartTime() { - return earliestStartTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -398,7 +400,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { */ @java.lang.Override public boolean hasLatestEndTime() { - return latestEndTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -465,10 +467,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (userCase_ == 6) { output.writeMessage(6, (com.google.apps.meet.v2beta.PhoneUser) user_); } - if (earliestStartTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getEarliestStartTime()); } - if (latestEndTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getLatestEndTime()); } getUnknownFields().writeTo(output); @@ -498,10 +500,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.apps.meet.v2beta.PhoneUser) user_); } - if (earliestStartTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEarliestStartTime()); } - if (latestEndTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLatestEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -709,10 +711,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.Participant.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEarliestStartTimeFieldBuilder(); + getLatestEndTimeFieldBuilder(); + } } @java.lang.Override @@ -781,16 +793,20 @@ private void buildPartial0(com.google.apps.meet.v2beta.Participant result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.earliestStartTime_ = earliestStartTimeBuilder_ == null ? earliestStartTime_ : earliestStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.latestEndTime_ = latestEndTimeBuilder_ == null ? latestEndTime_ : latestEndTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.apps.meet.v2beta.Participant result) { @@ -1831,8 +1847,10 @@ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { } else { earliestStartTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (earliestStartTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -2041,8 +2059,10 @@ public Builder mergeLatestEndTime(com.google.protobuf.Timestamp value) { } else { latestEndTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (latestEndTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java index 764632c2428b..2ff13d656027 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ParticipantOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java index d2db46a6ca1a..1d768a82f8e7 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.ParticipantSession.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -134,7 +136,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -184,7 +186,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -236,10 +238,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getEndTime()); } getUnknownFields().writeTo(output); @@ -254,10 +256,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -440,10 +442,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.ParticipantSession.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -500,12 +512,16 @@ private void buildPartial0(com.google.apps.meet.v2beta.ParticipantSession result if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -838,8 +854,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1031,8 +1049,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java index acf7eb3428d4..247f625f6d64 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface ParticipantSessionOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java index 5242a043e360..092d86f70111 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java index 75689e3d09a4..bf5b5de11dea 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface PhoneUserOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java index 231bfa2384b8..c7c3a536f864 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -245,6 +246,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.Recording.State) } + private int bitField0_; private int destinationCase_ = 0; @SuppressWarnings("serial") @@ -466,7 +468,7 @@ public com.google.apps.meet.v2beta.Recording.State getState() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,7 +517,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -568,10 +570,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.apps.meet.v2beta.Recording.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getEndTime()); } if (destinationCase_ == 6) { @@ -592,10 +594,10 @@ public int getSerializedSize() { if (state_ != com.google.apps.meet.v2beta.Recording.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } if (destinationCase_ == 6) { @@ -796,10 +798,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.Recording.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -866,12 +878,16 @@ private void buildPartial0(com.google.apps.meet.v2beta.Recording result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.apps.meet.v2beta.Recording result) { @@ -1613,8 +1629,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1801,8 +1819,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java index fd868de6e950..a7dba8722a6a 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface RecordingOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java index 4ffa31f7d13c..017b821e7647 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public final class ResourceProto { diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java index 4e7134a1394f..89510415d6a4 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public final class ServiceProto { diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java index 60e6da3c09f3..a456a0515d39 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java index d7fb6ecb6451..78f33bc67812 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface SignedinUserOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java index aac631a52e4c..f4407e136f2e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -66,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.Space.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -242,7 +244,7 @@ public com.google.protobuf.ByteString getMeetingCodeBytes() { */ @java.lang.Override public boolean hasConfig() { - return config_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -288,7 +290,7 @@ public com.google.apps.meet.v2beta.SpaceConfigOrBuilder getConfigOrBuilder() { */ @java.lang.Override public boolean hasActiveConference() { - return activeConference_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -346,10 +348,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meetingCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, meetingCode_); } - if (config_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getConfig()); } - if (activeConference_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getActiveConference()); } getUnknownFields().writeTo(output); @@ -370,10 +372,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meetingCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, meetingCode_); } - if (config_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfig()); } - if (activeConference_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getActiveConference()); } size += getUnknownFields().getSerializedSize(); @@ -557,10 +559,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.Space.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + getActiveConferenceFieldBuilder(); + } } @java.lang.Override @@ -624,13 +636,17 @@ private void buildPartial0(com.google.apps.meet.v2beta.Space result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.meetingCode_ = meetingCode_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.activeConference_ = activeConferenceBuilder_ == null ? activeConference_ : activeConferenceBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1215,8 +1231,10 @@ public Builder mergeConfig(com.google.apps.meet.v2beta.SpaceConfig value) { } else { configBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (config_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1400,8 +1418,10 @@ public Builder mergeActiveConference(com.google.apps.meet.v2beta.ActiveConferenc } else { activeConferenceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (activeConference_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java index 6af5a8d5960c..8001094d5e44 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java index 0d1ffc6603ef..8b1b258a0d77 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface SpaceConfigOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java index 475c6326e709..ea0f1ed59d8e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface SpaceOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java index e48d23468a98..d6593e280468 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -246,6 +247,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.Transcript.State) } + private int bitField0_; private int destinationCase_ = 0; @SuppressWarnings("serial") @@ -461,7 +463,7 @@ public com.google.apps.meet.v2beta.Transcript.State getState() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -510,7 +512,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -563,10 +565,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.apps.meet.v2beta.Transcript.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getEndTime()); } if (destinationCase_ == 6) { @@ -587,10 +589,10 @@ public int getSerializedSize() { if (state_ != com.google.apps.meet.v2beta.Transcript.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } if (destinationCase_ == 6) { @@ -793,10 +795,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.Transcript.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -863,12 +875,16 @@ private void buildPartial0(com.google.apps.meet.v2beta.Transcript result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.apps.meet.v2beta.Transcript result) { @@ -1591,8 +1607,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1779,8 +1797,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java index ad5b2377b47d..ba82a7b9abfa 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -66,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.TranscriptEntry.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -296,7 +298,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -345,7 +347,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -404,10 +406,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getEndTime()); } getUnknownFields().writeTo(output); @@ -431,10 +433,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -622,10 +624,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.TranscriptEntry.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -694,12 +706,16 @@ private void buildPartial0(com.google.apps.meet.v2beta.TranscriptEntry result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1408,8 +1424,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -1596,8 +1614,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java index 912d913ae7df..c7e19286720a 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface TranscriptEntryOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptOrBuilder.java index 8d11ae887c2f..e13dbf7194f0 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface TranscriptOrBuilder diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java index 32ce0d8e9c3b..66310e7b9548 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.apps.meet.v2beta.UpdateSpaceRequest.Builder.class); } + private int bitField0_; public static final int SPACE_FIELD_NUMBER = 1; private com.google.apps.meet.v2beta.Space space_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSpace() { - return space_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -128,7 +130,7 @@ public com.google.apps.meet.v2beta.SpaceOrBuilder getSpaceOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -181,10 +183,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (space_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSpace()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -196,10 +198,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (space_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpace()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -374,10 +376,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.apps.meet.v2beta.UpdateSpaceRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSpaceFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -430,12 +442,16 @@ public com.google.apps.meet.v2beta.UpdateSpaceRequest buildPartial() { private void buildPartial0(com.google.apps.meet.v2beta.UpdateSpaceRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -651,8 +667,10 @@ public Builder mergeSpace(com.google.apps.meet.v2beta.Space value) { } else { spaceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (space_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -856,8 +874,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java index ce56c584d27d..ab48ff7f3085 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/apps/meet/v2beta/service.proto +// Protobuf Java Version: 3.25.2 package com.google.apps.meet.v2beta; public interface UpdateSpaceRequestOrBuilder diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..04a57fe71636 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ConferenceRecordsServiceSettings; +import com.google.apps.meet.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + ConferenceRecordsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + } +} +// [END meet_v2_generated_ConferenceRecordsService_Create_SetCredentialsProvider_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..98b49feb1cd7 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_Create_SetCredentialsProvider1_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ConferenceRecordsServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + ConferenceRecordsServiceSettings.newHttpJsonBuilder().build(); + ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + } +} +// [END meet_v2_generated_ConferenceRecordsService_Create_SetCredentialsProvider1_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetEndpoint.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..5cb0bebc7efe --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_Create_SetEndpoint_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ConferenceRecordsServiceSettings; +import com.google.apps.meet.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + ConferenceRecordsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + } +} +// [END meet_v2_generated_ConferenceRecordsService_Create_SetEndpoint_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/AsyncGetConferenceRecord.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/AsyncGetConferenceRecord.java new file mode 100644 index 000000000000..8ade011d79dc --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/AsyncGetConferenceRecord.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetConferenceRecordRequest; + +public class AsyncGetConferenceRecord { + + public static void main(String[] args) throws Exception { + asyncGetConferenceRecord(); + } + + public static void asyncGetConferenceRecord() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetConferenceRecordRequest request = + GetConferenceRecordRequest.newBuilder() + .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .build(); + ApiFuture future = + conferenceRecordsServiceClient.getConferenceRecordCallable().futureCall(request); + // Do something. + ConferenceRecord response = future.get(); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecord.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecord.java new file mode 100644 index 000000000000..9c6b73418cc3 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecord.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_sync] +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetConferenceRecordRequest; + +public class SyncGetConferenceRecord { + + public static void main(String[] args) throws Exception { + syncGetConferenceRecord(); + } + + public static void syncGetConferenceRecord() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetConferenceRecordRequest request = + GetConferenceRecordRequest.newBuilder() + .setName(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .build(); + ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(request); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordConferencerecordname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordConferencerecordname.java new file mode 100644 index 000000000000..0a864c565bc5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordConferencerecordname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_Conferencerecordname_sync] +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; + +public class SyncGetConferenceRecordConferencerecordname { + + public static void main(String[] args) throws Exception { + syncGetConferenceRecordConferencerecordname(); + } + + public static void syncGetConferenceRecordConferencerecordname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ConferenceRecordName name = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_Conferencerecordname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordString.java new file mode 100644 index 000000000000..04727a37f2f0 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getconferencerecord/SyncGetConferenceRecordString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_String_sync] +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; + +public class SyncGetConferenceRecordString { + + public static void main(String[] args) throws Exception { + syncGetConferenceRecordString(); + } + + public static void syncGetConferenceRecordString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String name = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + ConferenceRecord response = conferenceRecordsServiceClient.getConferenceRecord(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java new file mode 100644 index 000000000000..1eab6563e029 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipant_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetParticipantRequest; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantName; + +public class AsyncGetParticipant { + + public static void main(String[] args) throws Exception { + asyncGetParticipant(); + } + + public static void asyncGetParticipant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetParticipantRequest request = + GetParticipantRequest.newBuilder() + .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .build(); + ApiFuture future = + conferenceRecordsServiceClient.getParticipantCallable().futureCall(request); + // Do something. + Participant response = future.get(); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipant_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipant.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipant.java new file mode 100644 index 000000000000..5677fa9a84ea --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipant_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetParticipantRequest; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantName; + +public class SyncGetParticipant { + + public static void main(String[] args) throws Exception { + syncGetParticipant(); + } + + public static void syncGetParticipant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetParticipantRequest request = + GetParticipantRequest.newBuilder() + .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .build(); + Participant response = conferenceRecordsServiceClient.getParticipant(request); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipant_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantParticipantname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantParticipantname.java new file mode 100644 index 000000000000..075fd493b299 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantParticipantname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipant_Participantname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantName; + +public class SyncGetParticipantParticipantname { + + public static void main(String[] args) throws Exception { + syncGetParticipantParticipantname(); + } + + public static void syncGetParticipantParticipantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ParticipantName name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + Participant response = conferenceRecordsServiceClient.getParticipant(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipant_Participantname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantString.java new file mode 100644 index 000000000000..740203d83b49 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/SyncGetParticipantString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipant_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Participant; +import com.google.apps.meet.v2.ParticipantName; + +public class SyncGetParticipantString { + + public static void main(String[] args) throws Exception { + syncGetParticipantString(); + } + + public static void syncGetParticipantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String name = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString(); + Participant response = conferenceRecordsServiceClient.getParticipant(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipant_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java new file mode 100644 index 000000000000..484d7132c473 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipantSession_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetParticipantSessionRequest; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.ParticipantSessionName; + +public class AsyncGetParticipantSession { + + public static void main(String[] args) throws Exception { + asyncGetParticipantSession(); + } + + public static void asyncGetParticipantSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetParticipantSessionRequest request = + GetParticipantSessionRequest.newBuilder() + .setName( + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString()) + .build(); + ApiFuture future = + conferenceRecordsServiceClient.getParticipantSessionCallable().futureCall(request); + // Do something. + ParticipantSession response = future.get(); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipantSession_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSession.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSession.java new file mode 100644 index 000000000000..a1156aa69a82 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSession.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipantSession_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetParticipantSessionRequest; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.ParticipantSessionName; + +public class SyncGetParticipantSession { + + public static void main(String[] args) throws Exception { + syncGetParticipantSession(); + } + + public static void syncGetParticipantSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetParticipantSessionRequest request = + GetParticipantSessionRequest.newBuilder() + .setName( + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString()) + .build(); + ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(request); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipantSession_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionParticipantsessionname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionParticipantsessionname.java new file mode 100644 index 000000000000..005e4dfdd6aa --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionParticipantsessionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipantSession_Participantsessionname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.ParticipantSessionName; + +public class SyncGetParticipantSessionParticipantsessionname { + + public static void main(String[] args) throws Exception { + syncGetParticipantSessionParticipantsessionname(); + } + + public static void syncGetParticipantSessionParticipantsessionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ParticipantSessionName name = + ParticipantSessionName.of( + "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]"); + ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipantSession_Participantsessionname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionString.java new file mode 100644 index 000000000000..00b3c82a87f5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/SyncGetParticipantSessionString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetParticipantSession_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.apps.meet.v2.ParticipantSessionName; + +public class SyncGetParticipantSessionString { + + public static void main(String[] args) throws Exception { + syncGetParticipantSessionString(); + } + + public static void syncGetParticipantSessionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String name = + ParticipantSessionName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]") + .toString(); + ParticipantSession response = conferenceRecordsServiceClient.getParticipantSession(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetParticipantSession_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/AsyncGetRecording.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/AsyncGetRecording.java new file mode 100644 index 000000000000..d6cb9cd6fc42 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/AsyncGetRecording.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetRecording_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetRecordingRequest; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.RecordingName; + +public class AsyncGetRecording { + + public static void main(String[] args) throws Exception { + asyncGetRecording(); + } + + public static void asyncGetRecording() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetRecordingRequest request = + GetRecordingRequest.newBuilder() + .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + .build(); + ApiFuture future = + conferenceRecordsServiceClient.getRecordingCallable().futureCall(request); + // Do something. + Recording response = future.get(); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetRecording_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecording.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecording.java new file mode 100644 index 000000000000..c7009537927f --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecording.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetRecording_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetRecordingRequest; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.RecordingName; + +public class SyncGetRecording { + + public static void main(String[] args) throws Exception { + syncGetRecording(); + } + + public static void syncGetRecording() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetRecordingRequest request = + GetRecordingRequest.newBuilder() + .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString()) + .build(); + Recording response = conferenceRecordsServiceClient.getRecording(request); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetRecording_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingRecordingname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingRecordingname.java new file mode 100644 index 000000000000..40d5bbe696b1 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingRecordingname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetRecording_Recordingname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.RecordingName; + +public class SyncGetRecordingRecordingname { + + public static void main(String[] args) throws Exception { + syncGetRecordingRecordingname(); + } + + public static void syncGetRecordingRecordingname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + RecordingName name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]"); + Recording response = conferenceRecordsServiceClient.getRecording(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetRecording_Recordingname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingString.java new file mode 100644 index 000000000000..ac19eca0173a --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/SyncGetRecordingString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetRecording_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Recording; +import com.google.apps.meet.v2.RecordingName; + +public class SyncGetRecordingString { + + public static void main(String[] args) throws Exception { + syncGetRecordingString(); + } + + public static void syncGetRecordingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String name = RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString(); + Recording response = conferenceRecordsServiceClient.getRecording(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetRecording_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/AsyncGetTranscript.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/AsyncGetTranscript.java new file mode 100644 index 000000000000..ddc606194c22 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/AsyncGetTranscript.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscript_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetTranscriptRequest; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptName; + +public class AsyncGetTranscript { + + public static void main(String[] args) throws Exception { + asyncGetTranscript(); + } + + public static void asyncGetTranscript() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetTranscriptRequest request = + GetTranscriptRequest.newBuilder() + .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .build(); + ApiFuture future = + conferenceRecordsServiceClient.getTranscriptCallable().futureCall(request); + // Do something. + Transcript response = future.get(); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscript_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscript.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscript.java new file mode 100644 index 000000000000..0b83bc5d25b5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscript.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscript_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetTranscriptRequest; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptName; + +public class SyncGetTranscript { + + public static void main(String[] args) throws Exception { + syncGetTranscript(); + } + + public static void syncGetTranscript() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetTranscriptRequest request = + GetTranscriptRequest.newBuilder() + .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .build(); + Transcript response = conferenceRecordsServiceClient.getTranscript(request); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscript_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptString.java new file mode 100644 index 000000000000..6204d0106543 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscript_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptName; + +public class SyncGetTranscriptString { + + public static void main(String[] args) throws Exception { + syncGetTranscriptString(); + } + + public static void syncGetTranscriptString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString(); + Transcript response = conferenceRecordsServiceClient.getTranscript(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscript_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptTranscriptname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptTranscriptname.java new file mode 100644 index 000000000000..39b85ae917d5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/SyncGetTranscriptTranscriptname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscript_Transcriptname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Transcript; +import com.google.apps.meet.v2.TranscriptName; + +public class SyncGetTranscriptTranscriptname { + + public static void main(String[] args) throws Exception { + syncGetTranscriptTranscriptname(); + } + + public static void syncGetTranscriptTranscriptname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + TranscriptName name = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + Transcript response = conferenceRecordsServiceClient.getTranscript(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscript_Transcriptname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/AsyncGetTranscriptEntry.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/AsyncGetTranscriptEntry.java new file mode 100644 index 000000000000..dd1dfbe7cc31 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/AsyncGetTranscriptEntry.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetTranscriptEntryRequest; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptEntryName; + +public class AsyncGetTranscriptEntry { + + public static void main(String[] args) throws Exception { + asyncGetTranscriptEntry(); + } + + public static void asyncGetTranscriptEntry() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetTranscriptEntryRequest request = + GetTranscriptEntryRequest.newBuilder() + .setName( + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]") + .toString()) + .build(); + ApiFuture future = + conferenceRecordsServiceClient.getTranscriptEntryCallable().futureCall(request); + // Do something. + TranscriptEntry response = future.get(); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntry.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntry.java new file mode 100644 index 000000000000..dfe305e63c39 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntry.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.GetTranscriptEntryRequest; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptEntryName; + +public class SyncGetTranscriptEntry { + + public static void main(String[] args) throws Exception { + syncGetTranscriptEntry(); + } + + public static void syncGetTranscriptEntry() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + GetTranscriptEntryRequest request = + GetTranscriptEntryRequest.newBuilder() + .setName( + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]") + .toString()) + .build(); + TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(request); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryString.java new file mode 100644 index 000000000000..2ac96ddbd975 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptEntryName; + +public class SyncGetTranscriptEntryString { + + public static void main(String[] args) throws Exception { + syncGetTranscriptEntryString(); + } + + public static void syncGetTranscriptEntryString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String name = + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]").toString(); + TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryTranscriptentryname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryTranscriptentryname.java new file mode 100644 index 000000000000..1fee75bb2137 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/SyncGetTranscriptEntryTranscriptentryname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_Transcriptentryname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptEntryName; + +public class SyncGetTranscriptEntryTranscriptentryname { + + public static void main(String[] args) throws Exception { + syncGetTranscriptEntryTranscriptentryname(); + } + + public static void syncGetTranscriptEntryTranscriptentryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + TranscriptEntryName name = + TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]"); + TranscriptEntry response = conferenceRecordsServiceClient.getTranscriptEntry(name); + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_Transcriptentryname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecords.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecords.java new file mode 100644 index 000000000000..ad4f66d64548 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecords.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; + +public class AsyncListConferenceRecords { + + public static void main(String[] args) throws Exception { + asyncListConferenceRecords(); + } + + public static void asyncListConferenceRecords() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + conferenceRecordsServiceClient.listConferenceRecordsPagedCallable().futureCall(request); + // Do something. + for (ConferenceRecord element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecordsPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecordsPaged.java new file mode 100644 index 000000000000..643f89c678bb --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/AsyncListConferenceRecordsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_Paged_async] +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; +import com.google.apps.meet.v2.ListConferenceRecordsResponse; +import com.google.common.base.Strings; + +public class AsyncListConferenceRecordsPaged { + + public static void main(String[] args) throws Exception { + asyncListConferenceRecordsPaged(); + } + + public static void asyncListConferenceRecordsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListConferenceRecordsResponse response = + conferenceRecordsServiceClient.listConferenceRecordsCallable().call(request); + for (ConferenceRecord element : response.getConferenceRecordsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/SyncListConferenceRecords.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/SyncListConferenceRecords.java new file mode 100644 index 000000000000..d937d67ff215 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listconferencerecords/SyncListConferenceRecords.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_sync] +import com.google.apps.meet.v2.ConferenceRecord; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListConferenceRecordsRequest; + +public class SyncListConferenceRecords { + + public static void main(String[] args) throws Exception { + syncListConferenceRecords(); + } + + public static void syncListConferenceRecords() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListConferenceRecordsRequest request = + ListConferenceRecordsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (ConferenceRecord element : + conferenceRecordsServiceClient.listConferenceRecords(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java new file mode 100644 index 000000000000..0abfdd4cf741 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipants_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.Participant; + +public class AsyncListParticipants { + + public static void main(String[] args) throws Exception { + asyncListParticipants(); + } + + public static void asyncListParticipants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + conferenceRecordsServiceClient.listParticipantsPagedCallable().futureCall(request); + // Do something. + for (Participant element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipants_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipantsPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipantsPaged.java new file mode 100644 index 000000000000..024af98815ce --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipantsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipants_Paged_async] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.ListParticipantsResponse; +import com.google.apps.meet.v2.Participant; +import com.google.common.base.Strings; + +public class AsyncListParticipantsPaged { + + public static void main(String[] args) throws Exception { + asyncListParticipantsPaged(); + } + + public static void asyncListParticipantsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListParticipantsResponse response = + conferenceRecordsServiceClient.listParticipantsCallable().call(request); + for (Participant element : response.getParticipantsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipants_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipants.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipants.java new file mode 100644 index 000000000000..ca4be9ed8225 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipants.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipants_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListParticipantsRequest; +import com.google.apps.meet.v2.Participant; + +public class SyncListParticipants { + + public static void main(String[] args) throws Exception { + syncListParticipants(); + } + + public static void syncListParticipants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListParticipantsRequest request = + ListParticipantsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Participant element : + conferenceRecordsServiceClient.listParticipants(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipants_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsConferencerecordname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsConferencerecordname.java new file mode 100644 index 000000000000..606c83f88f79 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsConferencerecordname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipants_Conferencerecordname_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Participant; + +public class SyncListParticipantsConferencerecordname { + + public static void main(String[] args) throws Exception { + syncListParticipantsConferencerecordname(); + } + + public static void syncListParticipantsConferencerecordname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + for (Participant element : + conferenceRecordsServiceClient.listParticipants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipants_Conferencerecordname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsString.java new file mode 100644 index 000000000000..6e9d85525f79 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/SyncListParticipantsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipants_String_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Participant; + +public class SyncListParticipantsString { + + public static void main(String[] args) throws Exception { + syncListParticipantsString(); + } + + public static void syncListParticipantsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + for (Participant element : + conferenceRecordsServiceClient.listParticipants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipants_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java new file mode 100644 index 000000000000..ae49c3b4712c --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ParticipantName; +import com.google.apps.meet.v2.ParticipantSession; + +public class AsyncListParticipantSessions { + + public static void main(String[] args) throws Exception { + asyncListParticipantSessions(); + } + + public static void asyncListParticipantSessions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder() + .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + conferenceRecordsServiceClient.listParticipantSessionsPagedCallable().futureCall(request); + // Do something. + for (ParticipantSession element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessionsPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessionsPaged.java new file mode 100644 index 000000000000..01e04c6783d5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessionsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_Paged_async] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ListParticipantSessionsResponse; +import com.google.apps.meet.v2.ParticipantName; +import com.google.apps.meet.v2.ParticipantSession; +import com.google.common.base.Strings; + +public class AsyncListParticipantSessionsPaged { + + public static void main(String[] args) throws Exception { + asyncListParticipantSessionsPaged(); + } + + public static void asyncListParticipantSessionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder() + .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListParticipantSessionsResponse response = + conferenceRecordsServiceClient.listParticipantSessionsCallable().call(request); + for (ParticipantSession element : response.getParticipantSessionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessions.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessions.java new file mode 100644 index 000000000000..ef966e4ae465 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListParticipantSessionsRequest; +import com.google.apps.meet.v2.ParticipantName; +import com.google.apps.meet.v2.ParticipantSession; + +public class SyncListParticipantSessions { + + public static void main(String[] args) throws Exception { + syncListParticipantSessions(); + } + + public static void syncListParticipantSessions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListParticipantSessionsRequest request = + ListParticipantSessionsRequest.newBuilder() + .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (ParticipantSession element : + conferenceRecordsServiceClient.listParticipantSessions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsParticipantname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsParticipantname.java new file mode 100644 index 000000000000..c431fe6727e0 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsParticipantname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_Participantname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ParticipantName; +import com.google.apps.meet.v2.ParticipantSession; + +public class SyncListParticipantSessionsParticipantname { + + public static void main(String[] args) throws Exception { + syncListParticipantSessionsParticipantname(); + } + + public static void syncListParticipantSessionsParticipantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ParticipantName parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]"); + for (ParticipantSession element : + conferenceRecordsServiceClient.listParticipantSessions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_Participantname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsString.java new file mode 100644 index 000000000000..3e7190cff6e6 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/SyncListParticipantSessionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ParticipantName; +import com.google.apps.meet.v2.ParticipantSession; + +public class SyncListParticipantSessionsString { + + public static void main(String[] args) throws Exception { + syncListParticipantSessionsString(); + } + + public static void syncListParticipantSessionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String parent = ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString(); + for (ParticipantSession element : + conferenceRecordsServiceClient.listParticipantSessions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordings.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordings.java new file mode 100644 index 000000000000..6f94e85e63c2 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListRecordings_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.Recording; + +public class AsyncListRecordings { + + public static void main(String[] args) throws Exception { + asyncListRecordings(); + } + + public static void asyncListRecordings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListRecordingsRequest request = + ListRecordingsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + conferenceRecordsServiceClient.listRecordingsPagedCallable().futureCall(request); + // Do something. + for (Recording element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListRecordings_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordingsPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordingsPaged.java new file mode 100644 index 000000000000..e6e9062da71a --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordingsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListRecordings_Paged_async] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.ListRecordingsResponse; +import com.google.apps.meet.v2.Recording; +import com.google.common.base.Strings; + +public class AsyncListRecordingsPaged { + + public static void main(String[] args) throws Exception { + asyncListRecordingsPaged(); + } + + public static void asyncListRecordingsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListRecordingsRequest request = + ListRecordingsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRecordingsResponse response = + conferenceRecordsServiceClient.listRecordingsCallable().call(request); + for (Recording element : response.getRecordingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListRecordings_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordings.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordings.java new file mode 100644 index 000000000000..c3d395ab5eb6 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListRecordings_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListRecordingsRequest; +import com.google.apps.meet.v2.Recording; + +public class SyncListRecordings { + + public static void main(String[] args) throws Exception { + syncListRecordings(); + } + + public static void syncListRecordings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListRecordingsRequest request = + ListRecordingsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Recording element : + conferenceRecordsServiceClient.listRecordings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListRecordings_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsConferencerecordname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsConferencerecordname.java new file mode 100644 index 000000000000..923c99d987b5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsConferencerecordname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListRecordings_Conferencerecordname_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Recording; + +public class SyncListRecordingsConferencerecordname { + + public static void main(String[] args) throws Exception { + syncListRecordingsConferencerecordname(); + } + + public static void syncListRecordingsConferencerecordname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + for (Recording element : conferenceRecordsServiceClient.listRecordings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListRecordings_Conferencerecordname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsString.java new file mode 100644 index 000000000000..b06f75b256d6 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/SyncListRecordingsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListRecordings_String_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Recording; + +public class SyncListRecordingsString { + + public static void main(String[] args) throws Exception { + syncListRecordingsString(); + } + + public static void syncListRecordingsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + for (Recording element : conferenceRecordsServiceClient.listRecordings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListRecordings_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntries.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntries.java new file mode 100644 index 000000000000..7d6149c7ee62 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntries.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptName; + +public class AsyncListTranscriptEntries { + + public static void main(String[] args) throws Exception { + asyncListTranscriptEntries(); + } + + public static void asyncListTranscriptEntries() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder() + .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + conferenceRecordsServiceClient.listTranscriptEntriesPagedCallable().futureCall(request); + // Do something. + for (TranscriptEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntriesPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntriesPaged.java new file mode 100644 index 000000000000..df875f3bfe07 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntriesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_Paged_async] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.ListTranscriptEntriesResponse; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptName; +import com.google.common.base.Strings; + +public class AsyncListTranscriptEntriesPaged { + + public static void main(String[] args) throws Exception { + asyncListTranscriptEntriesPaged(); + } + + public static void asyncListTranscriptEntriesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder() + .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTranscriptEntriesResponse response = + conferenceRecordsServiceClient.listTranscriptEntriesCallable().call(request); + for (TranscriptEntry element : response.getTranscriptEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntries.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntries.java new file mode 100644 index 000000000000..09165f2a7ca4 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntries.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListTranscriptEntriesRequest; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptName; + +public class SyncListTranscriptEntries { + + public static void main(String[] args) throws Exception { + syncListTranscriptEntries(); + } + + public static void syncListTranscriptEntries() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListTranscriptEntriesRequest request = + ListTranscriptEntriesRequest.newBuilder() + .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (TranscriptEntry element : + conferenceRecordsServiceClient.listTranscriptEntries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesString.java new file mode 100644 index 000000000000..33acfd50e1ed --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_String_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptName; + +public class SyncListTranscriptEntriesString { + + public static void main(String[] args) throws Exception { + syncListTranscriptEntriesString(); + } + + public static void syncListTranscriptEntriesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString(); + for (TranscriptEntry element : + conferenceRecordsServiceClient.listTranscriptEntries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesTranscriptname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesTranscriptname.java new file mode 100644 index 000000000000..0450507e5e4f --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/SyncListTranscriptEntriesTranscriptname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_Transcriptname_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.TranscriptEntry; +import com.google.apps.meet.v2.TranscriptName; + +public class SyncListTranscriptEntriesTranscriptname { + + public static void main(String[] args) throws Exception { + syncListTranscriptEntriesTranscriptname(); + } + + public static void syncListTranscriptEntriesTranscriptname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + TranscriptName parent = TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]"); + for (TranscriptEntry element : + conferenceRecordsServiceClient.listTranscriptEntries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_Transcriptname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscripts.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscripts.java new file mode 100644 index 000000000000..07fca8cee549 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscripts.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscripts_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.Transcript; + +public class AsyncListTranscripts { + + public static void main(String[] args) throws Exception { + asyncListTranscripts(); + } + + public static void asyncListTranscripts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListTranscriptsRequest request = + ListTranscriptsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + conferenceRecordsServiceClient.listTranscriptsPagedCallable().futureCall(request); + // Do something. + for (Transcript element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscripts_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscriptsPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscriptsPaged.java new file mode 100644 index 000000000000..efd5d585bc83 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscriptsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscripts_Paged_async] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.ListTranscriptsResponse; +import com.google.apps.meet.v2.Transcript; +import com.google.common.base.Strings; + +public class AsyncListTranscriptsPaged { + + public static void main(String[] args) throws Exception { + asyncListTranscriptsPaged(); + } + + public static void asyncListTranscriptsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListTranscriptsRequest request = + ListTranscriptsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTranscriptsResponse response = + conferenceRecordsServiceClient.listTranscriptsCallable().call(request); + for (Transcript element : response.getTranscriptsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscripts_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscripts.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscripts.java new file mode 100644 index 000000000000..15943b9aa99b --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscripts.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscripts_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ListTranscriptsRequest; +import com.google.apps.meet.v2.Transcript; + +public class SyncListTranscripts { + + public static void main(String[] args) throws Exception { + syncListTranscripts(); + } + + public static void syncListTranscripts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ListTranscriptsRequest request = + ListTranscriptsRequest.newBuilder() + .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Transcript element : + conferenceRecordsServiceClient.listTranscripts(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscripts_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsConferencerecordname.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsConferencerecordname.java new file mode 100644 index 000000000000..a850aa8d939b --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsConferencerecordname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscripts_Conferencerecordname_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Transcript; + +public class SyncListTranscriptsConferencerecordname { + + public static void main(String[] args) throws Exception { + syncListTranscriptsConferencerecordname(); + } + + public static void syncListTranscriptsConferencerecordname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + ConferenceRecordName parent = ConferenceRecordName.of("[CONFERENCE_RECORD]"); + for (Transcript element : + conferenceRecordsServiceClient.listTranscripts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscripts_Conferencerecordname_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsString.java new file mode 100644 index 000000000000..dfdcd5518b21 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/SyncListTranscriptsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_ListTranscripts_String_sync] +import com.google.apps.meet.v2.ConferenceRecordName; +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.Transcript; + +public class SyncListTranscriptsString { + + public static void main(String[] args) throws Exception { + syncListTranscriptsString(); + } + + public static void syncListTranscriptsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create()) { + String parent = ConferenceRecordName.of("[CONFERENCE_RECORD]").toString(); + for (Transcript element : + conferenceRecordsServiceClient.listTranscripts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2_generated_ConferenceRecordsService_ListTranscripts_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservicesettings/getconferencerecord/SyncGetConferenceRecord.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservicesettings/getconferencerecord/SyncGetConferenceRecord.java new file mode 100644 index 000000000000..9b16d0bcc5a4 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservicesettings/getconferencerecord/SyncGetConferenceRecord.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsServiceSettings_GetConferenceRecord_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceSettings; +import java.time.Duration; + +public class SyncGetConferenceRecord { + + public static void main(String[] args) throws Exception { + syncGetConferenceRecord(); + } + + public static void syncGetConferenceRecord() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceSettings.Builder conferenceRecordsServiceSettingsBuilder = + ConferenceRecordsServiceSettings.newBuilder(); + conferenceRecordsServiceSettingsBuilder + .getConferenceRecordSettings() + .setRetrySettings( + conferenceRecordsServiceSettingsBuilder + .getConferenceRecordSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + conferenceRecordsServiceSettingsBuilder.build(); + } +} +// [END meet_v2_generated_ConferenceRecordsServiceSettings_GetConferenceRecord_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..89b39ebdba66 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.apps.meet.v2.SpacesServiceSettings; +import com.google.apps.meet.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceSettings spacesServiceSettings = + SpacesServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); + } +} +// [END meet_v2_generated_SpacesService_Create_SetCredentialsProvider_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..0aa9b2419e11 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_Create_SetCredentialsProvider1_sync] +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.apps.meet.v2.SpacesServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceSettings spacesServiceSettings = + SpacesServiceSettings.newHttpJsonBuilder().build(); + SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); + } +} +// [END meet_v2_generated_SpacesService_Create_SetCredentialsProvider1_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetEndpoint.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8b66e5c4343d --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_Create_SetEndpoint_sync] +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.apps.meet.v2.SpacesServiceSettings; +import com.google.apps.meet.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceSettings spacesServiceSettings = + SpacesServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); + } +} +// [END meet_v2_generated_SpacesService_Create_SetEndpoint_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/AsyncCreateSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/AsyncCreateSpace.java new file mode 100644 index 000000000000..09a94857b9d7 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/AsyncCreateSpace.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_CreateSpace_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.CreateSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class AsyncCreateSpace { + + public static void main(String[] args) throws Exception { + asyncCreateSpace(); + } + + public static void asyncCreateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + CreateSpaceRequest request = + CreateSpaceRequest.newBuilder().setSpace(Space.newBuilder().build()).build(); + ApiFuture future = spacesServiceClient.createSpaceCallable().futureCall(request); + // Do something. + Space response = future.get(); + } + } +} +// [END meet_v2_generated_SpacesService_CreateSpace_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpace.java new file mode 100644 index 000000000000..b18c6b185fb7 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpace.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_CreateSpace_sync] +import com.google.apps.meet.v2.CreateSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class SyncCreateSpace { + + public static void main(String[] args) throws Exception { + syncCreateSpace(); + } + + public static void syncCreateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + CreateSpaceRequest request = + CreateSpaceRequest.newBuilder().setSpace(Space.newBuilder().build()).build(); + Space response = spacesServiceClient.createSpace(request); + } + } +} +// [END meet_v2_generated_SpacesService_CreateSpace_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpaceSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpaceSpace.java new file mode 100644 index 000000000000..3f27d1bb105a --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/createspace/SyncCreateSpaceSpace.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_CreateSpace_Space_sync] +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class SyncCreateSpaceSpace { + + public static void main(String[] args) throws Exception { + syncCreateSpaceSpace(); + } + + public static void syncCreateSpaceSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + Space space = Space.newBuilder().build(); + Space response = spacesServiceClient.createSpace(space); + } + } +} +// [END meet_v2_generated_SpacesService_CreateSpace_Space_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/AsyncEndActiveConference.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/AsyncEndActiveConference.java new file mode 100644 index 000000000000..645db401bc53 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/AsyncEndActiveConference.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_EndActiveConference_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.EndActiveConferenceRequest; +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class AsyncEndActiveConference { + + public static void main(String[] args) throws Exception { + asyncEndActiveConference(); + } + + public static void asyncEndActiveConference() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + EndActiveConferenceRequest request = + EndActiveConferenceRequest.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .build(); + ApiFuture future = + spacesServiceClient.endActiveConferenceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END meet_v2_generated_SpacesService_EndActiveConference_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConference.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConference.java new file mode 100644 index 000000000000..a9723bdf0d32 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConference.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_EndActiveConference_sync] +import com.google.apps.meet.v2.EndActiveConferenceRequest; +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class SyncEndActiveConference { + + public static void main(String[] args) throws Exception { + syncEndActiveConference(); + } + + public static void syncEndActiveConference() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + EndActiveConferenceRequest request = + EndActiveConferenceRequest.newBuilder() + .setName(SpaceName.of("[SPACE]").toString()) + .build(); + spacesServiceClient.endActiveConference(request); + } + } +} +// [END meet_v2_generated_SpacesService_EndActiveConference_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceSpacename.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceSpacename.java new file mode 100644 index 000000000000..e63e3ef992e4 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceSpacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_EndActiveConference_Spacename_sync] +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class SyncEndActiveConferenceSpacename { + + public static void main(String[] args) throws Exception { + syncEndActiveConferenceSpacename(); + } + + public static void syncEndActiveConferenceSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + SpaceName name = SpaceName.of("[SPACE]"); + spacesServiceClient.endActiveConference(name); + } + } +} +// [END meet_v2_generated_SpacesService_EndActiveConference_Spacename_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceString.java new file mode 100644 index 000000000000..e5b468733991 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/endactiveconference/SyncEndActiveConferenceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_EndActiveConference_String_sync] +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class SyncEndActiveConferenceString { + + public static void main(String[] args) throws Exception { + syncEndActiveConferenceString(); + } + + public static void syncEndActiveConferenceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + String name = SpaceName.of("[SPACE]").toString(); + spacesServiceClient.endActiveConference(name); + } + } +} +// [END meet_v2_generated_SpacesService_EndActiveConference_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/AsyncGetSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/AsyncGetSpace.java new file mode 100644 index 000000000000..f77479212c5f --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/AsyncGetSpace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_GetSpace_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.GetSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class AsyncGetSpace { + + public static void main(String[] args) throws Exception { + asyncGetSpace(); + } + + public static void asyncGetSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + GetSpaceRequest request = + GetSpaceRequest.newBuilder().setName(SpaceName.of("[SPACE]").toString()).build(); + ApiFuture future = spacesServiceClient.getSpaceCallable().futureCall(request); + // Do something. + Space response = future.get(); + } + } +} +// [END meet_v2_generated_SpacesService_GetSpace_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpace.java new file mode 100644 index 000000000000..e09ebde41bb7 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpace.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_GetSpace_sync] +import com.google.apps.meet.v2.GetSpaceRequest; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class SyncGetSpace { + + public static void main(String[] args) throws Exception { + syncGetSpace(); + } + + public static void syncGetSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + GetSpaceRequest request = + GetSpaceRequest.newBuilder().setName(SpaceName.of("[SPACE]").toString()).build(); + Space response = spacesServiceClient.getSpace(request); + } + } +} +// [END meet_v2_generated_SpacesService_GetSpace_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceSpacename.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceSpacename.java new file mode 100644 index 000000000000..256b300d8571 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceSpacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_GetSpace_Spacename_sync] +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class SyncGetSpaceSpacename { + + public static void main(String[] args) throws Exception { + syncGetSpaceSpacename(); + } + + public static void syncGetSpaceSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + SpaceName name = SpaceName.of("[SPACE]"); + Space response = spacesServiceClient.getSpace(name); + } + } +} +// [END meet_v2_generated_SpacesService_GetSpace_Spacename_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceString.java new file mode 100644 index 000000000000..b026dee2da2f --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/getspace/SyncGetSpaceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_GetSpace_String_sync] +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpaceName; +import com.google.apps.meet.v2.SpacesServiceClient; + +public class SyncGetSpaceString { + + public static void main(String[] args) throws Exception { + syncGetSpaceString(); + } + + public static void syncGetSpaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + String name = SpaceName.of("[SPACE]").toString(); + Space response = spacesServiceClient.getSpace(name); + } + } +} +// [END meet_v2_generated_SpacesService_GetSpace_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/AsyncUpdateSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/AsyncUpdateSpace.java new file mode 100644 index 000000000000..ad845ff69c3f --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/AsyncUpdateSpace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_UpdateSpace_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.apps.meet.v2.UpdateSpaceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSpace { + + public static void main(String[] args) throws Exception { + asyncUpdateSpace(); + } + + public static void asyncUpdateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + UpdateSpaceRequest request = + UpdateSpaceRequest.newBuilder() + .setSpace(Space.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = spacesServiceClient.updateSpaceCallable().futureCall(request); + // Do something. + Space response = future.get(); + } + } +} +// [END meet_v2_generated_SpacesService_UpdateSpace_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpace.java new file mode 100644 index 000000000000..ac7c986bc822 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_UpdateSpace_sync] +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.apps.meet.v2.UpdateSpaceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSpace { + + public static void main(String[] args) throws Exception { + syncUpdateSpace(); + } + + public static void syncUpdateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + UpdateSpaceRequest request = + UpdateSpaceRequest.newBuilder() + .setSpace(Space.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Space response = spacesServiceClient.updateSpace(request); + } + } +} +// [END meet_v2_generated_SpacesService_UpdateSpace_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpaceSpaceFieldmask.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpaceSpaceFieldmask.java new file mode 100644 index 000000000000..c14ca7f7837c --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/updatespace/SyncUpdateSpaceSpaceFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_UpdateSpace_SpaceFieldmask_sync] +import com.google.apps.meet.v2.Space; +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSpaceSpaceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSpaceSpaceFieldmask(); + } + + public static void syncUpdateSpaceSpaceFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + Space space = Space.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Space response = spacesServiceClient.updateSpace(space, updateMask); + } + } +} +// [END meet_v2_generated_SpacesService_UpdateSpace_SpaceFieldmask_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservicesettings/createspace/SyncCreateSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservicesettings/createspace/SyncCreateSpace.java new file mode 100644 index 000000000000..866e07d4ce8d --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservicesettings/createspace/SyncCreateSpace.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesServiceSettings_CreateSpace_sync] +import com.google.apps.meet.v2.SpacesServiceSettings; +import java.time.Duration; + +public class SyncCreateSpace { + + public static void main(String[] args) throws Exception { + syncCreateSpace(); + } + + public static void syncCreateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceSettings.Builder spacesServiceSettingsBuilder = SpacesServiceSettings.newBuilder(); + spacesServiceSettingsBuilder + .createSpaceSettings() + .setRetrySettings( + spacesServiceSettingsBuilder + .createSpaceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SpacesServiceSettings spacesServiceSettings = spacesServiceSettingsBuilder.build(); + } +} +// [END meet_v2_generated_SpacesServiceSettings_CreateSpace_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/conferencerecordsservicestubsettings/getconferencerecord/SyncGetConferenceRecord.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/conferencerecordsservicestubsettings/getconferencerecord/SyncGetConferenceRecord.java new file mode 100644 index 000000000000..0a004d0dd338 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/conferencerecordsservicestubsettings/getconferencerecord/SyncGetConferenceRecord.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub.samples; + +// [START meet_v2_generated_ConferenceRecordsServiceStubSettings_GetConferenceRecord_sync] +import com.google.apps.meet.v2.stub.ConferenceRecordsServiceStubSettings; +import java.time.Duration; + +public class SyncGetConferenceRecord { + + public static void main(String[] args) throws Exception { + syncGetConferenceRecord(); + } + + public static void syncGetConferenceRecord() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceStubSettings.Builder conferenceRecordsServiceSettingsBuilder = + ConferenceRecordsServiceStubSettings.newBuilder(); + conferenceRecordsServiceSettingsBuilder + .getConferenceRecordSettings() + .setRetrySettings( + conferenceRecordsServiceSettingsBuilder + .getConferenceRecordSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConferenceRecordsServiceStubSettings conferenceRecordsServiceSettings = + conferenceRecordsServiceSettingsBuilder.build(); + } +} +// [END meet_v2_generated_ConferenceRecordsServiceStubSettings_GetConferenceRecord_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/spacesservicestubsettings/createspace/SyncCreateSpace.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/spacesservicestubsettings/createspace/SyncCreateSpace.java new file mode 100644 index 000000000000..f01a08b69bc5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/stub/spacesservicestubsettings/createspace/SyncCreateSpace.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.apps.meet.v2.stub.samples; + +// [START meet_v2_generated_SpacesServiceStubSettings_CreateSpace_sync] +import com.google.apps.meet.v2.stub.SpacesServiceStubSettings; +import java.time.Duration; + +public class SyncCreateSpace { + + public static void main(String[] args) throws Exception { + syncCreateSpace(); + } + + public static void syncCreateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceStubSettings.Builder spacesServiceSettingsBuilder = + SpacesServiceStubSettings.newBuilder(); + spacesServiceSettingsBuilder + .createSpaceSettings() + .setRetrySettings( + spacesServiceSettingsBuilder + .createSpaceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SpacesServiceStubSettings spacesServiceSettings = spacesServiceSettingsBuilder.build(); + } +} +// [END meet_v2_generated_SpacesServiceStubSettings_CreateSpace_sync] diff --git a/versions.txt b/versions.txt index fee314d35e5d..2a32e40c15b2 100644 --- a/versions.txt +++ b/versions.txt @@ -725,3 +725,5 @@ grpc-google-cloud-meet-v2beta:0.1.0:0.2.0-SNAPSHOT google-cloud-servicehealth:0.1.0:0.2.0-SNAPSHOT proto-google-cloud-servicehealth-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-servicehealth-v1:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-meet-v2:0.1.0:0.2.0-SNAPSHOT +grpc-google-cloud-meet-v2:0.1.0:0.2.0-SNAPSHOT