From 820f4571af45b0d26ce3b883b27ebba5ac6f2270 Mon Sep 17 00:00:00 2001 From: Burke Davison <40617934+burkedavison@users.noreply.github.com> Date: Wed, 21 Dec 2022 16:16:24 -0500 Subject: [PATCH] ci(showcase): add showcase testing (#1188) * ci(showcase): add showcase testing * ci(showcase): relocate showcase golden files from ./test to ./showcase/ * ci(showcase): update DEVELOPMENT.md with showcase testing instructions * ci(showcase): ignore license header check for generated showcase client * ci(showcase): single-line addlicense call * ci(showcase): change addlicense argument order * ci(showcase): change addlicense argument order * ci(showcase): replace -ignore parameter with filtered 'find' * ci(showcase): fix working-directory in ./github/workflows/ci-maven.yaml * ci(showcase): set SHOWCASE_VERSION env in github actions * ci(showcase): correct path to showcase server download directory * ci(showcase): remove unused test dependencies and javadoc configurations * ci(showcase): use gapic-generator-java-pom-parent in showcase/pom.xml * ci(showcase): use gapic-generator-java-bom as parent in showcase/pom.xml * ci(showcase): install maven modules before showcase testing * ci(showcase): remove Java 8 build as it's not supported for gax * ci(showcase): use bazelisk instead of bazel for showcase client generation --- .github/workflows/ci-maven.yaml | 108 +- .github/workflows/ci.yaml | 92 +- DEVELOPMENT.md | 233 +- WORKSPACE | 3 + {test/showcase => showcase}/BUILD.bazel | 79 + showcase/gapic-showcase/pom.xml | 193 + .../google/showcase/v1beta1/BlurbName.java | 0 .../google/showcase/v1beta1/ProfileName.java | 0 .../com/google/showcase/v1beta1/RoomName.java | 0 .../google/showcase/v1beta1/SequenceName.java | 0 .../showcase/v1beta1/SequenceReportName.java | 0 .../google/showcase/v1beta1/SessionName.java | 0 .../com/google/showcase/v1beta1/TestName.java | 0 .../com/google/showcase/v1beta1/UserName.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../compliance/getenum/AsyncGetEnum.java | 0 .../compliance/getenum/SyncGetEnum.java | 0 .../repeatdatabody/AsyncRepeatDataBody.java | 0 .../repeatdatabody/SyncRepeatDataBody.java | 0 .../AsyncRepeatDataBodyInfo.java | 0 .../SyncRepeatDataBodyInfo.java | 0 .../AsyncRepeatDataBodyPatch.java | 0 .../SyncRepeatDataBodyPatch.java | 0 .../AsyncRepeatDataBodyPut.java | 0 .../SyncRepeatDataBodyPut.java | 0 .../AsyncRepeatDataPathResource.java | 0 .../SyncRepeatDataPathResource.java | 0 .../AsyncRepeatDataPathTrailingResource.java | 0 .../SyncRepeatDataPathTrailingResource.java | 0 .../repeatdataquery/AsyncRepeatDataQuery.java | 0 .../repeatdataquery/SyncRepeatDataQuery.java | 0 .../AsyncRepeatDataSimplePath.java | 0 .../SyncRepeatDataSimplePath.java | 0 .../verifyenum/AsyncVerifyEnum.java | 0 .../compliance/verifyenum/SyncVerifyEnum.java | 0 .../repeatdatabody/SyncRepeatDataBody.java | 0 .../v1beta1/echo/block/AsyncBlock.java | 0 .../v1beta1/echo/block/SyncBlock.java | 0 .../showcase/v1beta1/echo/chat/AsyncChat.java | 0 .../v1beta1/echo/collect/AsyncCollect.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../echo/create/SyncCreateSetEndpoint.java | 0 .../showcase/v1beta1/echo/echo/AsyncEcho.java | 0 .../showcase/v1beta1/echo/echo/SyncEcho.java | 0 .../v1beta1/echo/expand/AsyncExpand.java | 0 .../echo/pagedexpand/AsyncPagedExpand.java | 0 .../pagedexpand/AsyncPagedExpandPaged.java | 0 .../echo/pagedexpand/SyncPagedExpand.java | 0 .../AsyncPagedExpandLegacy.java | 0 .../SyncPagedExpandLegacy.java | 0 .../AsyncPagedExpandLegacyMapped.java | 0 .../AsyncPagedExpandLegacyMappedPaged.java | 0 .../SyncPagedExpandLegacyMapped.java | 0 .../showcase/v1beta1/echo/wait/AsyncWait.java | 0 .../v1beta1/echo/wait/AsyncWaitLRO.java | 0 .../showcase/v1beta1/echo/wait/SyncWait.java | 0 .../v1beta1/echosettings/echo/SyncEcho.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../identity/createuser/AsyncCreateUser.java | 0 .../identity/createuser/SyncCreateUser.java | 0 .../SyncCreateUserStringString.java | 0 ...serStringStringIntStringBooleanDouble.java | 0 .../identity/deleteuser/AsyncDeleteUser.java | 0 .../identity/deleteuser/SyncDeleteUser.java | 0 .../deleteuser/SyncDeleteUserString.java | 0 .../deleteuser/SyncDeleteUserUsername.java | 0 .../identity/getuser/AsyncGetUser.java | 0 .../v1beta1/identity/getuser/SyncGetUser.java | 0 .../identity/getuser/SyncGetUserString.java | 0 .../identity/getuser/SyncGetUserUsername.java | 0 .../identity/listusers/AsyncListUsers.java | 0 .../listusers/AsyncListUsersPaged.java | 0 .../identity/listusers/SyncListUsers.java | 0 .../identity/updateuser/AsyncUpdateUser.java | 0 .../identity/updateuser/SyncUpdateUser.java | 0 .../createuser/SyncCreateUser.java | 0 .../messaging/connect/AsyncConnect.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createblurb/AsyncCreateBlurb.java | 0 .../createblurb/SyncCreateBlurb.java | 0 ...reateBlurbProfilenameStringBytestring.java | 0 ...yncCreateBlurbProfilenameStringString.java | 0 ...ateBlurbProfilenameUsernameBytestring.java | 0 ...cCreateBlurbProfilenameUsernameString.java | 0 ...ncCreateBlurbRoomnameStringBytestring.java | 0 .../SyncCreateBlurbRoomnameStringString.java | 0 ...CreateBlurbRoomnameUsernameBytestring.java | 0 ...SyncCreateBlurbRoomnameUsernameString.java | 0 ...SyncCreateBlurbStringStringBytestring.java | 0 .../SyncCreateBlurbStringStringString.java | 0 ...ncCreateBlurbStringUsernameBytestring.java | 0 .../SyncCreateBlurbStringUsernameString.java | 0 .../messaging/createroom/AsyncCreateRoom.java | 0 .../messaging/createroom/SyncCreateRoom.java | 0 .../SyncCreateRoomStringString.java | 0 .../deleteblurb/AsyncDeleteBlurb.java | 0 .../deleteblurb/SyncDeleteBlurb.java | 0 .../deleteblurb/SyncDeleteBlurbBlurbname.java | 0 .../deleteblurb/SyncDeleteBlurbString.java | 0 .../messaging/deleteroom/AsyncDeleteRoom.java | 0 .../messaging/deleteroom/SyncDeleteRoom.java | 0 .../deleteroom/SyncDeleteRoomRoomname.java | 0 .../deleteroom/SyncDeleteRoomString.java | 0 .../messaging/getblurb/AsyncGetBlurb.java | 0 .../messaging/getblurb/SyncGetBlurb.java | 0 .../getblurb/SyncGetBlurbBlurbname.java | 0 .../getblurb/SyncGetBlurbString.java | 0 .../messaging/getroom/AsyncGetRoom.java | 0 .../messaging/getroom/SyncGetRoom.java | 0 .../getroom/SyncGetRoomRoomname.java | 0 .../messaging/getroom/SyncGetRoomString.java | 0 .../messaging/listblurbs/AsyncListBlurbs.java | 0 .../listblurbs/AsyncListBlurbsPaged.java | 0 .../messaging/listblurbs/SyncListBlurbs.java | 0 .../listblurbs/SyncListBlurbsProfilename.java | 0 .../listblurbs/SyncListBlurbsRoomname.java | 0 .../listblurbs/SyncListBlurbsString.java | 0 .../messaging/listrooms/AsyncListRooms.java | 0 .../listrooms/AsyncListRoomsPaged.java | 0 .../messaging/listrooms/SyncListRooms.java | 0 .../searchblurbs/AsyncSearchBlurbs.java | 0 .../searchblurbs/AsyncSearchBlurbsLRO.java | 0 .../searchblurbs/SyncSearchBlurbs.java | 0 .../SyncSearchBlurbsProfilenameString.java | 0 .../SyncSearchBlurbsRoomnameString.java | 0 .../SyncSearchBlurbsStringString.java | 0 .../messaging/sendblurbs/AsyncSendBlurbs.java | 0 .../streamblurbs/AsyncStreamBlurbs.java | 0 .../updateblurb/AsyncUpdateBlurb.java | 0 .../updateblurb/SyncUpdateBlurb.java | 0 .../messaging/updateroom/AsyncUpdateRoom.java | 0 .../messaging/updateroom/SyncUpdateRoom.java | 0 .../createroom/SyncCreateRoom.java | 0 .../attemptsequence/AsyncAttemptSequence.java | 0 .../attemptsequence/SyncAttemptSequence.java | 0 .../SyncAttemptSequenceSequencename.java | 0 .../SyncAttemptSequenceString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createsequence/AsyncCreateSequence.java | 0 .../createsequence/SyncCreateSequence.java | 0 .../SyncCreateSequenceSequence.java | 0 .../AsyncGetSequenceReport.java | 0 .../SyncGetSequenceReport.java | 0 ...ncGetSequenceReportSequencereportname.java | 0 .../SyncGetSequenceReportString.java | 0 .../createsequence/SyncCreateSequence.java | 0 .../repeatdatabody/SyncRepeatDataBody.java | 0 .../stub/echostubsettings/echo/SyncEcho.java | 0 .../createuser/SyncCreateUser.java | 0 .../createroom/SyncCreateRoom.java | 0 .../createsequence/SyncCreateSequence.java | 0 .../createsession/SyncCreateSession.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../testing/create/SyncCreateSetEndpoint.java | 0 .../createsession/AsyncCreateSession.java | 0 .../createsession/SyncCreateSession.java | 0 .../deletesession/AsyncDeleteSession.java | 0 .../deletesession/SyncDeleteSession.java | 0 .../testing/deletetest/AsyncDeleteTest.java | 0 .../testing/deletetest/SyncDeleteTest.java | 0 .../testing/getsession/AsyncGetSession.java | 0 .../testing/getsession/SyncGetSession.java | 0 .../listsessions/AsyncListSessions.java | 0 .../listsessions/AsyncListSessionsPaged.java | 0 .../listsessions/SyncListSessions.java | 0 .../testing/listtests/AsyncListTests.java | 0 .../listtests/AsyncListTestsPaged.java | 0 .../testing/listtests/SyncListTests.java | 0 .../reportsession/AsyncReportSession.java | 0 .../reportsession/SyncReportSession.java | 0 .../testing/verifytest/AsyncVerifyTest.java | 0 .../testing/verifytest/SyncVerifyTest.java | 0 .../createsession/SyncCreateSession.java | 0 .../showcase/v1beta1/ComplianceClient.java | 0 .../showcase/v1beta1/ComplianceSettings.java | 0 .../google/showcase/v1beta1/EchoClient.java | 0 .../google/showcase/v1beta1/EchoSettings.java | 0 .../showcase/v1beta1/IdentityClient.java | 0 .../showcase/v1beta1/IdentitySettings.java | 0 .../showcase/v1beta1/MessagingClient.java | 0 .../showcase/v1beta1/MessagingSettings.java | 0 .../v1beta1/SequenceServiceClient.java | 0 .../v1beta1/SequenceServiceSettings.java | 0 .../showcase/v1beta1/TestingClient.java | 0 .../showcase/v1beta1/TestingSettings.java | 0 .../showcase/v1beta1/gapic_metadata.json | 0 .../google/showcase/v1beta1/package-info.java | 0 .../showcase/v1beta1/stub/ComplianceStub.java | 0 .../v1beta1/stub/ComplianceStubSettings.java | 0 .../showcase/v1beta1/stub/EchoStub.java | 0 .../v1beta1/stub/EchoStubSettings.java | 0 .../stub/GrpcComplianceCallableFactory.java | 0 .../v1beta1/stub/GrpcComplianceStub.java | 0 .../v1beta1/stub/GrpcEchoCallableFactory.java | 0 .../showcase/v1beta1/stub/GrpcEchoStub.java | 0 .../stub/GrpcIdentityCallableFactory.java | 0 .../v1beta1/stub/GrpcIdentityStub.java | 0 .../stub/GrpcMessagingCallableFactory.java | 0 .../v1beta1/stub/GrpcMessagingStub.java | 0 .../GrpcSequenceServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcSequenceServiceStub.java | 0 .../stub/GrpcTestingCallableFactory.java | 0 .../v1beta1/stub/GrpcTestingStub.java | 0 .../HttpJsonComplianceCallableFactory.java | 0 .../v1beta1/stub/HttpJsonComplianceStub.java | 0 .../stub/HttpJsonEchoCallableFactory.java | 0 .../v1beta1/stub/HttpJsonEchoStub.java | 0 .../stub/HttpJsonIdentityCallableFactory.java | 0 .../v1beta1/stub/HttpJsonIdentityStub.java | 0 .../HttpJsonMessagingCallableFactory.java | 0 .../v1beta1/stub/HttpJsonMessagingStub.java | 0 ...ttpJsonSequenceServiceCallableFactory.java | 0 .../stub/HttpJsonSequenceServiceStub.java | 0 .../stub/HttpJsonTestingCallableFactory.java | 0 .../v1beta1/stub/HttpJsonTestingStub.java | 0 .../showcase/v1beta1/stub/IdentityStub.java | 0 .../v1beta1/stub/IdentityStubSettings.java | 0 .../showcase/v1beta1/stub/MessagingStub.java | 0 .../v1beta1/stub/MessagingStubSettings.java | 0 .../v1beta1/stub/SequenceServiceStub.java | 0 .../stub/SequenceServiceStubSettings.java | 0 .../showcase/v1beta1/stub/TestingStub.java | 0 .../v1beta1/stub/TestingStubSettings.java | 0 .../v1beta1/ComplianceClientHttpJsonTest.java | 0 .../v1beta1/ComplianceClientTest.java | 0 .../v1beta1/EchoClientHttpJsonTest.java | 0 .../showcase/v1beta1/EchoClientTest.java | 0 .../v1beta1/IdentityClientHttpJsonTest.java | 0 .../showcase/v1beta1/IdentityClientTest.java | 0 .../v1beta1/MessagingClientHttpJsonTest.java | 0 .../showcase/v1beta1/MessagingClientTest.java | 0 .../showcase/v1beta1/MockCompliance.java | 0 .../showcase/v1beta1/MockComplianceImpl.java | 0 .../com/google/showcase/v1beta1/MockEcho.java | 0 .../google/showcase/v1beta1/MockEchoImpl.java | 0 .../google/showcase/v1beta1/MockIdentity.java | 0 .../showcase/v1beta1/MockIdentityImpl.java | 0 .../showcase/v1beta1/MockMessaging.java | 0 .../showcase/v1beta1/MockMessagingImpl.java | 0 .../showcase/v1beta1/MockSequenceService.java | 0 .../v1beta1/MockSequenceServiceImpl.java | 0 .../google/showcase/v1beta1/MockTesting.java | 0 .../showcase/v1beta1/MockTestingImpl.java | 0 .../SequenceServiceClientHttpJsonTest.java | 0 .../v1beta1/SequenceServiceClientTest.java | 0 .../v1beta1/TestingClientHttpJsonTest.java | 0 .../showcase/v1beta1/TestingClientTest.java | 0 .../showcase/v1beta1/it/ITFirstHttp.java | 77 + .../showcase/v1beta1/it/ITFirstRpc.java | 75 + .../showcase/v1beta1/it/ITNumericEnums.java | 71 + showcase/grpc-gapic-showcase-v1beta1/pom.xml | 112 + .../showcase/v1beta1/ComplianceGrpc.java | 942 ++++ .../com/google/showcase/v1beta1/EchoGrpc.java | 829 ++++ .../google/showcase/v1beta1/IdentityGrpc.java | 572 +++ .../showcase/v1beta1/MessagingGrpc.java | 1199 +++++ .../showcase/v1beta1/SequenceServiceGrpc.java | 424 ++ .../google/showcase/v1beta1/TestingGrpc.java | 794 ++++ showcase/pom.xml | 89 + showcase/proto-gapic-showcase-v1beta1/pom.xml | 104 + .../v1beta1/AttemptSequenceRequest.java | 559 +++ .../AttemptSequenceRequestOrBuilder.java | 21 + .../google/showcase/v1beta1/BlockRequest.java | 1272 ++++++ .../v1beta1/BlockRequestOrBuilder.java | 95 + .../showcase/v1beta1/BlockResponse.java | 602 +++ .../v1beta1/BlockResponseOrBuilder.java | 31 + .../com/google/showcase/v1beta1/Blurb.java | 2177 ++++++++++ .../google/showcase/v1beta1/BlurbName.java | 473 ++ .../showcase/v1beta1/BlurbOrBuilder.java | 225 + .../showcase/v1beta1/ComplianceData.java | 2662 ++++++++++++ .../showcase/v1beta1/ComplianceDataChild.java | 1766 ++++++++ .../v1beta1/ComplianceDataChildOrBuilder.java | 141 + .../v1beta1/ComplianceDataGrandchild.java | 690 +++ .../ComplianceDataGrandchildOrBuilder.java | 33 + .../v1beta1/ComplianceDataOrBuilder.java | 212 + .../showcase/v1beta1/ComplianceGroup.java | 1114 +++++ .../v1beta1/ComplianceGroupOrBuilder.java | 70 + .../v1beta1/ComplianceOuterClass.java | 252 ++ .../showcase/v1beta1/ComplianceSuite.java | 784 ++++ .../v1beta1/ComplianceSuiteOrBuilder.java | 33 + .../showcase/v1beta1/ConnectRequest.java | 1644 +++++++ .../v1beta1/ConnectRequestOrBuilder.java | 68 + .../google/showcase/v1beta1/Continent.java | 149 + .../showcase/v1beta1/CreateBlurbRequest.java | 840 ++++ .../v1beta1/CreateBlurbRequestOrBuilder.java | 58 + .../showcase/v1beta1/CreateRoomRequest.java | 667 +++ .../v1beta1/CreateRoomRequestOrBuilder.java | 36 + .../v1beta1/CreateSequenceRequest.java | 609 +++ .../CreateSequenceRequestOrBuilder.java | 24 + .../v1beta1/CreateSessionRequest.java | 689 +++ .../CreateSessionRequestOrBuilder.java | 42 + .../showcase/v1beta1/CreateUserRequest.java | 667 +++ .../v1beta1/CreateUserRequestOrBuilder.java | 36 + .../showcase/v1beta1/DeleteBlurbRequest.java | 597 +++ .../v1beta1/DeleteBlurbRequestOrBuilder.java | 29 + .../showcase/v1beta1/DeleteRoomRequest.java | 597 +++ .../v1beta1/DeleteRoomRequestOrBuilder.java | 29 + .../v1beta1/DeleteSessionRequest.java | 595 +++ .../DeleteSessionRequestOrBuilder.java | 29 + .../showcase/v1beta1/DeleteTestRequest.java | 595 +++ .../v1beta1/DeleteTestRequestOrBuilder.java | 29 + .../showcase/v1beta1/DeleteUserRequest.java | 597 +++ .../v1beta1/DeleteUserRequestOrBuilder.java | 29 + .../showcase/v1beta1/EchoOuterClass.java | 301 ++ .../google/showcase/v1beta1/EchoRequest.java | 1439 ++++++ .../v1beta1/EchoRequestOrBuilder.java | 126 + .../google/showcase/v1beta1/EchoResponse.java | 719 +++ .../v1beta1/EchoResponseOrBuilder.java | 48 + .../google/showcase/v1beta1/EnumRequest.java | 502 +++ .../v1beta1/EnumRequestOrBuilder.java | 19 + .../google/showcase/v1beta1/EnumResponse.java | 781 ++++ .../v1beta1/EnumResponseOrBuilder.java | 55 + .../showcase/v1beta1/ExpandRequest.java | 831 ++++ .../v1beta1/ExpandRequestOrBuilder.java | 56 + .../showcase/v1beta1/GetBlurbRequest.java | 597 +++ .../v1beta1/GetBlurbRequestOrBuilder.java | 29 + .../showcase/v1beta1/GetRoomRequest.java | 597 +++ .../v1beta1/GetRoomRequestOrBuilder.java | 29 + .../v1beta1/GetSequenceReportRequest.java | 559 +++ .../GetSequenceReportRequestOrBuilder.java | 21 + .../showcase/v1beta1/GetSessionRequest.java | 595 +++ .../v1beta1/GetSessionRequestOrBuilder.java | 29 + .../showcase/v1beta1/GetUserRequest.java | 597 +++ .../v1beta1/GetUserRequestOrBuilder.java | 29 + .../showcase/v1beta1/IdentityOuterClass.java | 187 + .../com/google/showcase/v1beta1/Issue.java | 1136 +++++ .../showcase/v1beta1/IssueOrBuilder.java | 67 + .../showcase/v1beta1/ListBlurbsRequest.java | 865 ++++ .../v1beta1/ListBlurbsRequestOrBuilder.java | 65 + .../showcase/v1beta1/ListBlurbsResponse.java | 1061 +++++ .../v1beta1/ListBlurbsResponseOrBuilder.java | 79 + .../showcase/v1beta1/ListRoomsRequest.java | 695 +++ .../v1beta1/ListRoomsRequestOrBuilder.java | 44 + .../showcase/v1beta1/ListRoomsResponse.java | 1061 +++++ .../v1beta1/ListRoomsResponseOrBuilder.java | 79 + .../showcase/v1beta1/ListSessionsRequest.java | 675 +++ .../v1beta1/ListSessionsRequestOrBuilder.java | 39 + .../v1beta1/ListSessionsResponse.java | 1045 +++++ .../ListSessionsResponseOrBuilder.java | 75 + .../showcase/v1beta1/ListTestsRequest.java | 841 ++++ .../v1beta1/ListTestsRequestOrBuilder.java | 59 + .../showcase/v1beta1/ListTestsResponse.java | 1045 +++++ .../v1beta1/ListTestsResponseOrBuilder.java | 75 + .../showcase/v1beta1/ListUsersRequest.java | 695 +++ .../v1beta1/ListUsersRequestOrBuilder.java | 44 + .../showcase/v1beta1/ListUsersResponse.java | 1061 +++++ .../v1beta1/ListUsersResponseOrBuilder.java | 79 + .../showcase/v1beta1/MessagingOuterClass.java | 447 ++ .../PagedExpandLegacyMappedResponse.java | 942 ++++ ...edExpandLegacyMappedResponseOrBuilder.java | 95 + .../v1beta1/PagedExpandLegacyRequest.java | 853 ++++ .../PagedExpandLegacyRequestOrBuilder.java | 61 + .../showcase/v1beta1/PagedExpandRequest.java | 841 ++++ .../v1beta1/PagedExpandRequestOrBuilder.java | 59 + .../showcase/v1beta1/PagedExpandResponse.java | 1038 +++++ .../v1beta1/PagedExpandResponseList.java | 624 +++ .../PagedExpandResponseListOrBuilder.java | 34 + .../v1beta1/PagedExpandResponseOrBuilder.java | 73 + .../google/showcase/v1beta1/ProfileName.java | 168 + .../showcase/v1beta1/RepeatRequest.java | 1518 +++++++ .../v1beta1/RepeatRequestOrBuilder.java | 132 + .../showcase/v1beta1/RepeatResponse.java | 775 ++++ .../v1beta1/RepeatResponseOrBuilder.java | 44 + .../v1beta1/ReportSessionRequest.java | 595 +++ .../ReportSessionRequestOrBuilder.java | 29 + .../v1beta1/ReportSessionResponse.java | 1150 +++++ .../ReportSessionResponseOrBuilder.java | 72 + .../com/google/showcase/v1beta1/Room.java | 1399 ++++++ .../com/google/showcase/v1beta1/RoomName.java | 166 + .../showcase/v1beta1/RoomOrBuilder.java | 123 + .../v1beta1/SearchBlurbsMetadata.java | 667 +++ .../SearchBlurbsMetadataOrBuilder.java | 36 + .../showcase/v1beta1/SearchBlurbsRequest.java | 1052 +++++ .../v1beta1/SearchBlurbsRequestOrBuilder.java | 91 + .../v1beta1/SearchBlurbsResponse.java | 1061 +++++ .../SearchBlurbsResponseOrBuilder.java | 79 + .../showcase/v1beta1/SendBlurbsResponse.java | 678 +++ .../v1beta1/SendBlurbsResponseOrBuilder.java | 50 + .../com/google/showcase/v1beta1/Sequence.java | 1979 +++++++++ .../google/showcase/v1beta1/SequenceName.java | 168 + .../showcase/v1beta1/SequenceOrBuilder.java | 70 + .../showcase/v1beta1/SequenceOuterClass.java | 184 + .../showcase/v1beta1/SequenceReport.java | 2602 +++++++++++ .../showcase/v1beta1/SequenceReportName.java | 168 + .../v1beta1/SequenceReportOrBuilder.java | 65 + .../com/google/showcase/v1beta1/Session.java | 879 ++++ .../google/showcase/v1beta1/SessionName.java | 168 + .../showcase/v1beta1/SessionOrBuilder.java | 50 + .../com/google/showcase/v1beta1/Severity.java | 135 + .../showcase/v1beta1/StreamBlurbsRequest.java | 833 ++++ .../v1beta1/StreamBlurbsRequestOrBuilder.java | 56 + .../v1beta1/StreamBlurbsResponse.java | 945 ++++ .../StreamBlurbsResponseOrBuilder.java | 55 + .../com/google/showcase/v1beta1/Test.java | 3839 +++++++++++++++++ .../com/google/showcase/v1beta1/TestName.java | 191 + .../showcase/v1beta1/TestOrBuilder.java | 131 + .../com/google/showcase/v1beta1/TestRun.java | 845 ++++ .../showcase/v1beta1/TestRunOrBuilder.java | 60 + .../showcase/v1beta1/TestingOuterClass.java | 345 ++ .../showcase/v1beta1/UpdateBlurbRequest.java | 915 ++++ .../v1beta1/UpdateBlurbRequestOrBuilder.java | 66 + .../showcase/v1beta1/UpdateRoomRequest.java | 915 ++++ .../v1beta1/UpdateRoomRequestOrBuilder.java | 66 + .../showcase/v1beta1/UpdateUserRequest.java | 915 ++++ .../v1beta1/UpdateUserRequestOrBuilder.java | 66 + .../com/google/showcase/v1beta1/User.java | 1972 +++++++++ .../com/google/showcase/v1beta1/UserName.java | 166 + .../showcase/v1beta1/UserOrBuilder.java | 219 + .../showcase/v1beta1/VerifyTestRequest.java | 873 ++++ .../v1beta1/VerifyTestRequestOrBuilder.java | 68 + .../showcase/v1beta1/VerifyTestResponse.java | 657 +++ .../v1beta1/VerifyTestResponseOrBuilder.java | 36 + .../google/showcase/v1beta1/WaitMetadata.java | 665 +++ .../v1beta1/WaitMetadataOrBuilder.java | 36 + .../google/showcase/v1beta1/WaitRequest.java | 1631 +++++++ .../v1beta1/WaitRequestOrBuilder.java | 124 + .../google/showcase/v1beta1/WaitResponse.java | 595 +++ .../v1beta1/WaitResponseOrBuilder.java | 29 + showcase/scripts/BUILD.bazel | 6 + showcase/scripts/update.sh | 67 + showcase/scripts/verify.sh | 60 + test/integration/BUILD.bazel | 16 - 431 files changed, 85614 insertions(+), 163 deletions(-) rename {test/showcase => showcase}/BUILD.bazel (53%) create mode 100644 showcase/gapic-showcase/pom.xml rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/BlurbName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/ProfileName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/RoomName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/SequenceName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/SequenceReportName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/SessionName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/TestName.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/proto/src/main/java}/com/google/showcase/v1beta1/UserName.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java (100%) rename {test/integration/goldens/showcase/samples/snippets/generated => showcase/gapic-showcase/samples/snippets/generated/src}/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/ComplianceClient.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/ComplianceSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/EchoClient.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/EchoSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/IdentityClient.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/IdentitySettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/MessagingClient.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/MessagingSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/SequenceServiceClient.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/SequenceServiceSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/TestingClient.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/TestingSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/gapic_metadata.json (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/package-info.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/ComplianceStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/EchoStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/EchoStubSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcEchoStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/GrpcTestingStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/IdentityStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/IdentityStubSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/MessagingStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/MessagingStubSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/SequenceServiceStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/TestingStub.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/main/java}/com/google/showcase/v1beta1/stub/TestingStubSettings.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/ComplianceClientTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/EchoClientTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/IdentityClientTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MessagingClientTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockCompliance.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockComplianceImpl.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockEcho.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockEchoImpl.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockIdentity.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockIdentityImpl.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockMessaging.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockMessagingImpl.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockSequenceService.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockSequenceServiceImpl.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockTesting.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/MockTestingImpl.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/SequenceServiceClientTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java (100%) rename {test/integration/goldens/showcase/src => showcase/gapic-showcase/src/test/java}/com/google/showcase/v1beta1/TestingClientTest.java (100%) create mode 100644 showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstHttp.java create mode 100644 showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstRpc.java create mode 100644 showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java create mode 100644 showcase/grpc-gapic-showcase-v1beta1/pom.xml create mode 100644 showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java create mode 100644 showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java create mode 100644 showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java create mode 100644 showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java create mode 100644 showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java create mode 100644 showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java create mode 100644 showcase/pom.xml create mode 100644 showcase/proto-gapic-showcase-v1beta1/pom.xml create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReport.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java create mode 100644 showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java create mode 100644 showcase/scripts/BUILD.bazel create mode 100755 showcase/scripts/update.sh create mode 100755 showcase/scripts/verify.sh diff --git a/.github/workflows/ci-maven.yaml b/.github/workflows/ci-maven.yaml index 15ba07a36e..c62607917c 100644 --- a/.github/workflows/ci-maven.yaml +++ b/.github/workflows/ci-maven.yaml @@ -4,12 +4,14 @@ on: - main pull_request: name: ci-maven +env: + SHOWCASE_VERSION: 0.25.0 jobs: units: runs-on: ubuntu-latest strategy: matrix: - java: [11, 17] + java: [ 11, 17 ] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v3 @@ -67,28 +69,28 @@ jobs: name: "units (8) for gapic-generator-java" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: temurin - cache: maven - - name: Install modules outside gapic-generator-java - shell: bash - run: | - mvn -B -ntp install --projects '!gapic-generator-java' \ - -Dcheckstyle.skip -Dfmt.skip -DskipTests - - uses: actions/setup-java@v3 - with: - java-version: 8 - distribution: temurin - cache: maven - - run: java -version - - name: Run test only for gapic-generator-java using Java 8 - shell: bash - run: | - mvn -B -ntp verify --projects 'gapic-generator-java' \ - -Dcheckstyle.skip -Dfmt.skip + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: temurin + cache: maven + - name: Install modules outside gapic-generator-java + shell: bash + run: | + mvn -B -ntp install --projects '!gapic-generator-java' \ + -Dcheckstyle.skip -Dfmt.skip -DskipTests + - uses: actions/setup-java@v3 + with: + java-version: 8 + distribution: temurin + cache: maven + - run: java -version + - name: Run test only for gapic-generator-java using Java 8 + shell: bash + run: | + mvn -B -ntp verify --projects 'gapic-generator-java' \ + -Dcheckstyle.skip -Dfmt.skip lint: runs-on: ubuntu-latest @@ -103,3 +105,63 @@ jobs: - name: Java Linter # Exclude the root project run: mvn -B -ntp --projects '!.' fmt:check + + showcase: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 11, 17 ] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java }} + distribution: temurin + - run: java -version + + - name: Bazel File Cache Setup + id: cache-bazel + uses: actions/cache@v3 + with: + path: ~/.cache/bazel + key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }} + - name: Bazel Cache Not Found + if: steps.cache-bazel.outputs.cache-hit != 'true' + run: | + echo "No cache found." + - name: Bazel Cache Found + if: steps.cache-bazel.outputs.cache-hit == 'true' + run: | + echo -n "Cache found. Cache size: " + du -sh ~/.cache/bazel + echo "If the cache seems broken, update the CACHE_VERSION secret in" + echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions" + echo "(use any random string, any GUID will work)" + echo "and it will start over with a clean cache." + echo "The old one will disappear after 7 days." + + - name: Install maven modules + run: | + mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y curl unzip + - name: Install showcase server + run: | + sudo mkdir -p /usr/src/showcase + sudo chown -R ${USER} /usr/src/ + curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${SHOWCASE_VERSION}/gapic-showcase-${SHOWCASE_VERSION}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${SHOWCASE_VERSION}-linux-amd64.tar.gz + cd /usr/src/showcase/ + tar -xf showcase-* + ./gapic-showcase run & + cd - + - name: Showcase integration tests + working-directory: showcase + run: | + mvn verify \ + -P enable-golden-tests \ + -P enable-integration-tests \ + --batch-mode \ + --no-transfer-progress diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 31a446e08b..bd4848f6d1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -58,54 +58,54 @@ jobs: matrix: java: [ 8, 11 ] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: temurin - - run: java -version - - run: bazelisk version - - name: Bazel File Cache Setup - id: cache-bazel - uses: actions/cache@v3 - with: - path: ~/.cache/bazel - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }} + - uses: actions/checkout@v2 + - uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java }} + distribution: temurin + - run: java -version + - run: bazelisk version + - name: Bazel File Cache Setup + id: cache-bazel + uses: actions/cache@v3 + with: + path: ~/.cache/bazel + key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }} - - name: Bazel Cache Not Found - if: steps.cache-bazel.outputs.cache-hit != 'true' - run: | - echo "No cache found." - - name: Bazel Cache Found - if: steps.cache-bazel.outputs.cache-hit == 'true' - run: | - echo -n "Cache found. Cache size: " - du -sh ~/.cache/bazel - echo "If the cache seems broken, update the CACHE_VERSION secret in" - echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions" - echo "(use any random string, any GUID will work)" - echo "and it will start over with a clean cache." - echo "The old one will disappear after 7 days." + - name: Bazel Cache Not Found + if: steps.cache-bazel.outputs.cache-hit != 'true' + run: | + echo "No cache found." + - name: Bazel Cache Found + if: steps.cache-bazel.outputs.cache-hit == 'true' + run: | + echo -n "Cache found. Cache size: " + du -sh ~/.cache/bazel + echo "If the cache seems broken, update the CACHE_VERSION secret in" + echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions" + echo "(use any random string, any GUID will work)" + echo "and it will start over with a clean cache." + echo "The old one will disappear after 7 days." - - name: Gradle Build Generated Storage Client Library - run: | - echo "Building Storage lib from generated source..." - mkdir /tmp/java-storage - bazelisk --batch build @com_google_googleapis//google/storage/v2:google-cloud-storage-v2-java - tar zxvf bazel-bin/external/com_google_googleapis/google/storage/v2/google-cloud-storage-v2-java.tar.gz -C /tmp/java-storage - pushd /tmp/java-storage/google-cloud-storage-v2-java - ./gradlew clean build publishToMavenLocal sourcesJar allJars - popd + - name: Gradle Build Generated Storage Client Library + run: | + echo "Building Storage lib from generated source..." + mkdir /tmp/java-storage + bazelisk --batch build @com_google_googleapis//google/storage/v2:google-cloud-storage-v2-java + tar zxvf bazel-bin/external/com_google_googleapis/google/storage/v2/google-cloud-storage-v2-java.tar.gz -C /tmp/java-storage + pushd /tmp/java-storage/google-cloud-storage-v2-java + ./gradlew clean build publishToMavenLocal sourcesJar allJars + popd - - name: Gradle Build Generated Compute Client Library - run: | - echo "Building Compute lib from generated source..." - mkdir /tmp/java-compute - bazelisk --batch build @com_google_googleapis//google/cloud/compute/v1small:google-cloud-compute-small-v1-java - tar zxvf bazel-bin/external/com_google_googleapis/google/cloud/compute/v1small/google-cloud-compute-small-v1-java.tar.gz -C /tmp/java-compute - pushd /tmp/java-compute/google-cloud-compute-small-v1-java - ./gradlew clean build publishToMavenLocal sourcesJar allJars - popd + - name: Gradle Build Generated Compute Client Library + run: | + echo "Building Compute lib from generated source..." + mkdir /tmp/java-compute + bazelisk --batch build @com_google_googleapis//google/cloud/compute/v1small:google-cloud-compute-small-v1-java + tar zxvf bazel-bin/external/com_google_googleapis/google/cloud/compute/v1small/google-cloud-compute-small-v1-java.tar.gz -C /tmp/java-compute + pushd /tmp/java-compute/google-cloud-compute-small-v1-java + ./gradlew clean build publishToMavenLocal sourcesJar allJars + popd license-header: runs-on: ubuntu-latest @@ -117,5 +117,5 @@ jobs: - name: License Header Check run: | go install github.com/google/addlicense@latest - addlicense -c "Google LLC" -l apache -check $(find $PWD -type f -name '*.java' ! -iname '*PlaceholderFile.java') + addlicense -c "Google LLC" -l apache -check $(find $PWD -type f -name '*.java' ! -path '**/showcase/**' ! -iname '*PlaceholderFile.java') diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 5eb2740fa0..30cb88c117 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -2,103 +2,180 @@ ## Set Up -1. Clone this repo. +1. Clone this repo. -2. Copy the Git pre-commit hooks. This will automatically check the build, run - tests, and perform linting before each commit. (Symlinks don't seem to work, - but if you find a way, please add it here!) +2. Copy the Git pre-commit hooks. This will automatically check the build, run + tests, and perform linting before each commit. (Symlinks don't seem to work, + but if you find a way, please add it here!) - ```sh - cp .githooks/pre-commit .git/hooks/pre-commit - ``` + ```sh + cp .githooks/pre-commit .git/hooks/pre-commit + ``` ## Code Formatting -- Run linter checks without actually doing the formatting. +- Run linter checks without actually doing the formatting. - ```sh - bazel run //:google_java_format_verification - ``` - or - ```sh - mvn fmt:check - ``` + ```sh + bazel run //:google_java_format_verification + ``` + or + ```sh + mvn fmt:check + ``` -- Format files. +- Format files. - ```sh - bazel run //:google_java_format - ``` - or - ```sh - mvn fmt:format - ``` + ```sh + bazel run //:google_java_format + ``` + or + ```sh + mvn fmt:format + ``` ## Test Running -- Run all unit and integration tests. +- Run all unit and integration tests. - ```sh - bazel test //... - ``` + ```sh + bazel test //... + ``` -- Run all unit tests. +- Run all unit tests. - ```sh - bazel test //:units - ``` - or - ```sh - mvn test - ``` + ```sh + bazel test //:units + ``` + or + ```sh + mvn test + ``` -- Run a single unit test like `JavaCodeGeneratorTest.java`: +- Run a single unit test like `JavaCodeGeneratorTest.java`: - ```sh - bazel test //:unit_com_google_api_generator_engine_JavaCodeGeneratorTest - ``` - or - ```sh - mvn test -Dtest=JavaCodeGeneratorTest + ```sh + bazel test //:unit_com_google_api_generator_engine_JavaCodeGeneratorTest + ``` + or + ```sh + mvn test -Dtest=JavaCodeGeneratorTest - mvn test "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]" - ``` - -- Update all unit test golden files: - - ```sh - mvn test -DupdateUnitGoldens - ``` - -- Update a single unit test golden file, for example `JavaCodeGeneratorTest.java`: - - ```sh - bazel run //:update_com_google_api_generator_engine_JavaCodeGeneratorTest - ``` - or - ```sh - mvn test -DupdateUnitGoldens -Dtest=JavaCodeGeneratorTest - ``` - -- Run a single integration test for API like `Redis`, it generates Java source - code using the Java microgenerator and compares them with the goldens files - in `test/integration/goldens/redis`. + mvn test "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]" + ``` - ```sh - bazel test //test/integration:redis - ``` - -- Update integration test golden files, for example `Redis`. This clobbers all the - files in `test/integration/goldens/redis`. + - ```sh - bazel run //test/integration:update_redis - ``` +- Update all unit test golden files: + + ```sh + mvn test -DupdateUnitGoldens + ``` + +- Update a single unit test golden file, for example `JavaCodeGeneratorTest.java`: + + ```sh + bazel run //:update_com_google_api_generator_engine_JavaCodeGeneratorTest + ``` + or + ```sh + mvn test -DupdateUnitGoldens -Dtest=JavaCodeGeneratorTest + ``` + +- Run a single integration test for API like `Redis`, it generates Java source + code using the Java microgenerator and compares them with the goldens files + in `test/integration/goldens/redis`. + + ```sh + bazel test //test/integration:redis + ``` + +- Update integration test golden files, for example `Redis`. This clobbers all the + files in `test/integration/goldens/redis`. + + ```sh + bazel run //test/integration:update_redis + ``` + +## Showcase Integration Testing + +[GAPIC Showcase](https://github.com/googleapis/gapic-showcase) is an API that demonstrates Generated +API Client (GAPIC) features and common API patterns used by Google. It follows the [Cloud APIs +design guide](https://cloud.google.com/apis/design/). `gapic-generator-java` generates a client for +the Showcase API which can communicate with a local Showcase server to perform integration tests. + +### Requirements + +* Install [Go](https://go.dev) in your `PATH`. + +### Installing the Server + +Using the latest version of showcase is recommended, but backward compatibility between server +versions is not guaranteed. If changing the version of the server, it may also be necessary to +update to a compatible client version in `./WORKSPACE`. + +```shell +$ GAPIC_SHOWCASE_VERSION=0.25.0 +$ go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$GAPIC_SHOWCASE_VERSION" +$ PATH=$PATH:`go env GOPATH`/bin +$ gapic-showcase --help +> Root command of gapic-showcase +> +> Usage: +> gapic-showcase [command] +> +> Available Commands: +> completion Emits bash a completion for gapic-showcase +> compliance This service is used to test that GAPICs... +> echo This service is used showcase the four main types... +> help Help about any command +> identity A simple identity service. +> messaging A simple messaging service that implements chat... +> run Runs the showcase server +> sequence Sub-command for Service: Sequence +> testing A service to facilitate running discrete sets of... +> +> Flags: +> -h, --help help for gapic-showcase +> -j, --json Print JSON output +> -v, --verbose Print verbose output +> --version version for gapic-showcase +``` + +### Running the Server + +Run the showcase server to allow requests to be sent to it. This opens port `:7469` to send and +receive requests. + +```shell +$ gapic-showcase run +> 2022/11/21 16:22:15 Showcase listening on port: :7469 +> 2022/11/21 16:22:15 Starting endpoint 0: gRPC endpoint +> 2022/11/21 16:22:15 Starting endpoint 1: HTTP/REST endpoint +> 2022/11/21 16:22:15 Starting endpoint multiplexer +> 2022/11/21 16:22:15 Listening for gRPC-fallback connections +> 2022/11/21 16:22:15 Listening for gRPC connections +> 2022/11/21 16:22:15 Listening for REST connections +> 2022/11/21 16:22:15 Fallback server listening on port: :1337 +``` + +### Running the Integration Tests + +Open a new terminal window in the root project directory. + +```shell +$ cd showcase +$ mvn verify -P enable-integration-tests -P enable-golden-tests +``` + +Note: + +* `-P enable-golden-tests` is optional. These tests do not require a local server. ## Running the Plugin 1. Clone [googleapis](https://github.com/googleapis/googleapis) and - [gapic-showcase](https://github.com/googleapis/gapic-showcase/). + [gapic-showcase](https://github.com/googleapis/gapic-showcase/). 2. Copy the protos from Showcase into googleapis/google/showcase. @@ -108,7 +185,7 @@ ``` 3. Add the new microgenerator rules to - `googleapis/google/showcase/v1beta1/BUILD.bazel` file as follows: + `googleapis/google/showcase/v1beta1/BUILD.bazel` file as follows: ```python load( @@ -163,7 +240,7 @@ ``` 4. Point to local gapic-generator-java - + Normally, googleapis's build pulls in googleapis/gapic-generator-java from the Internet: @@ -195,13 +272,13 @@ cd googleapis bazel build //google/showcase/v1beta1:showcase_java_gapic ``` - + You can generate any client library based on the protos within googleapis. You just need the name of the service within the `java_gapic_assembly_gradle_pkg` rules within the service's `BUILD.bazel` file. For instance, to run your local generator on the `speech`'s v2 service, you can run: - + ``` bazel build //google/cloud/speech/v2:google-cloud-speech-v2-java ``` diff --git a/WORKSPACE b/WORKSPACE index e73de98dff..de55cfc78c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -125,8 +125,11 @@ http_archive( # Showcase _showcase_commit = "90d73532a0cab753a85f45c158394f24fc21d91a" +_showcase_sha256 = "0f582541a379be0746e6b8bc5af3df511581d4b1f18f7dfb9ce203be1a64cef1" + http_archive( name = "com_google_gapic_showcase", + sha256 = _showcase_sha256, strip_prefix = "gapic-showcase-%s" % _showcase_commit, urls = [ # "https://github.com/googleapis/gapic-showcase/archive/refs/tags/v%s.zip" % _showcase_version, diff --git a/test/showcase/BUILD.bazel b/showcase/BUILD.bazel similarity index 53% rename from test/showcase/BUILD.bazel rename to showcase/BUILD.bazel index d4563af02a..919547453c 100644 --- a/test/showcase/BUILD.bazel +++ b/showcase/BUILD.bazel @@ -57,3 +57,82 @@ java_gapic_assembly_gradle_pkg( "@com_google_gapic_showcase//schema/google/showcase/v1beta1:showcase_proto", ], ) + +# Golden File Directories +filegroup( + name = "gapic_showcase_files", + srcs = glob(["gapic-showcase/src/**"]), +) + +filegroup( + name = "grpc_gapic_showcase_files", + srcs = glob(["grpc-gapic-showcase-v1beta1/src/**"]), +) + +filegroup( + name = "proto_gapic_showcase_files", + srcs = glob(["proto-gapic-showcase-v1beta1/src/**"]), +) + +# GAPIC Showcase : Update and Verify +GAPIC_DATA = [ + "showcase_java_gapic_srcjar_raw.srcjar", + ":gapic_showcase_files", + "//showcase:showcase_java_gapic", +] + +sh_binary( + name = "update_gapic", + srcs = ["//showcase/scripts:update.sh"], + args = ["gapic"], + data = GAPIC_DATA, +) + +sh_binary( + name = "verify_gapic", + srcs = ["//showcase/scripts:verify.sh"], + args = ["gapic"], + data = GAPIC_DATA, +) + +# GRPC Showcase : Update and Verify +GRPC_DATA = [ + "libshowcase_java_grpc-src.jar", + ":grpc_gapic_showcase_files", + "//showcase:showcase_java_grpc", +] + +sh_binary( + name = "update_grpc", + srcs = ["//showcase/scripts:update.sh"], + args = ["grpc"], + data = GRPC_DATA, +) + +sh_binary( + name = "verify_grpc", + srcs = ["//showcase/scripts:verify.sh"], + args = ["grpc"], + data = GRPC_DATA, +) + +# Proto Showcase : Update and Verify +PROTO_DATA = [ + "proto-google-cloud-showcase-v1beta1-java.tar.gz", + ":proto_gapic_showcase_files", + "//showcase:showcase_java_proto", +] + +sh_binary( + name = "update_proto", + srcs = ["//showcase/scripts:update.sh"], + args = ["proto"], + data = PROTO_DATA, +) + +sh_binary( + name = "verify_proto", + srcs = ["//showcase/scripts:verify.sh"], + args = ["proto"], + data = PROTO_DATA, +) diff --git a/showcase/gapic-showcase/pom.xml b/showcase/gapic-showcase/pom.xml new file mode 100644 index 0000000000..92c7b7a8a3 --- /dev/null +++ b/showcase/gapic-showcase/pom.xml @@ -0,0 +1,193 @@ + + + 4.0.0 + com.google.cloud + gapic-showcase + 0.0.1-SHAPSHOT + jar + GAPIC Showcase Client + + GAPIC Showcase is an API that demonstrates Generated API Client (GAPIC) features and common API + patterns used by Google. + + + com.google.cloud + gapic-showcase-parent + 0.0.1-SNAPSHOT + + + + true + + + + + enable-golden-tests + + true + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + verify-showcase + + exec + + test + + bazel + + run + //showcase:verify_gapic + + + + + + + + + + update + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + verify-showcase + + exec + + generate-sources + + bazelisk + + run + //showcase:update_gapic + + + + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.8 + + + report + + report + + + + XML + HTML + + + + + + + + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api.grpc + proto-gapic-showcase-v1beta1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + + + junit + junit + test + + + + com.google.api.grpc + grpc-gapic-showcase-v1beta1 + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/BlurbName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/BlurbName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/BlurbName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/BlurbName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ProfileName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/ProfileName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ProfileName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/ProfileName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/RoomName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/RoomName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/RoomName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/RoomName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceReportName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceReportName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SessionName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SessionName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SessionName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SessionName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/TestName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/TestName.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/UserName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/UserName.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/UserName.java rename to showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/UserName.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java diff --git a/test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java similarity index 100% rename from test/integration/goldens/showcase/samples/snippets/generated/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java rename to showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceClient.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoClient.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentityClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentityClient.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentitySettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentitySettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingClient.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceClient.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingClient.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/gapic_metadata.json b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/gapic_metadata.json rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/package-info.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/package-info.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/ComplianceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/ComplianceStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/EchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/EchoStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/EchoStubSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcEchoStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcTestingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/GrpcTestingStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/IdentityStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/IdentityStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/IdentityStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/IdentityStubSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/MessagingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/MessagingStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/MessagingStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/MessagingStubSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/SequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/SequenceServiceStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/TestingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/TestingStub.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/TestingStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/stub/TestingStubSettings.java rename to showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/ComplianceClientTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/EchoClientTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentityClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/IdentityClientTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MessagingClientTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockCompliance.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockCompliance.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockComplianceImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockComplianceImpl.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockEcho.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockEcho.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockEchoImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockEchoImpl.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockIdentity.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockIdentity.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockIdentityImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockIdentityImpl.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockMessaging.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockMessaging.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockMessagingImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockMessagingImpl.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockSequenceService.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockSequenceService.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockSequenceServiceImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockSequenceServiceImpl.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockTesting.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockTesting.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockTestingImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/MockTestingImpl.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/SequenceServiceClientTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java diff --git a/test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java similarity index 100% rename from test/integration/goldens/showcase/src/com/google/showcase/v1beta1/TestingClientTest.java rename to showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstHttp.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstHttp.java new file mode 100644 index 0000000000..02909527ca --- /dev/null +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstHttp.java @@ -0,0 +1,77 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.it; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThrows; + +import com.google.api.client.http.javanet.NetHttpTransport; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.EchoSettings; +import java.io.IOException; +import java.security.GeneralSecurityException; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class ITFirstHttp { + + private static EchoClient client; + + @BeforeClass + public static void createClient() throws IOException, GeneralSecurityException { + EchoSettings echoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + + client = EchoClient.create(echoSettings); + } + + @AfterClass + public static void destroyClient() { + client.close(); + } + + // TODO(#1187): For 'throws' explanation, see + // https://github.com/googleapis/gapic-showcase/blob/v0.25.0/util/genrest/resttools/systemparam.go#L37-L46 + @Test + public void testEcho() { + assertThrows( + InvalidArgumentException.class, + () -> assertEquals("http-echo?", echo("http-echo?"))); + + assertThrows( + InvalidArgumentException.class, + () -> assertEquals("http-echo!", echo("http-echo!"))); + } + + private String echo(String value) { + EchoResponse response = client.echo(EchoRequest.newBuilder().setContent(value).build()); + return response.getContent(); + } +} \ No newline at end of file diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstRpc.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstRpc.java new file mode 100644 index 0000000000..46e681bb86 --- /dev/null +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITFirstRpc.java @@ -0,0 +1,75 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.it; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.EchoSettings; +import io.grpc.ManagedChannelBuilder; +import java.io.IOException; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class ITFirstRpc { + + private static EchoClient client; + + @Before + public void createClient() throws IOException { + EchoSettings echoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + InstantiatingGrpcChannelProvider.newBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .build(); + + client = EchoClient.create(echoSettings); + } + + @After + public void destroyClient() { + client.close(); + } + + @Test + public void testEcho() { + assertEquals("grpc-echo?", echo("grpc-echo?")); + assertEquals("grpc-echo!", echo("grpc-echo!")); + } + + @Test + public void testShutdown() { + assertFalse(client.isShutdown()); + client.shutdown(); + assertTrue(client.isShutdown()); + } + + private String echo(String value) { + EchoResponse response = client.echo(EchoRequest.newBuilder().setContent(value).build()); + return response.getContent(); + } +} \ No newline at end of file diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java new file mode 100644 index 0000000000..6c417ae87a --- /dev/null +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java @@ -0,0 +1,71 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.it; + +import static org.junit.Assert.assertThrows; + +import com.google.api.client.http.javanet.NetHttpTransport; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceSettings; +import com.google.showcase.v1beta1.EnumRequest; +import java.io.IOException; +import java.security.GeneralSecurityException; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class ITNumericEnums { + + private ComplianceClient client; + + @Before + public void createClient() throws GeneralSecurityException, IOException { + ComplianceSettings complianceSettings = + ComplianceSettings.newHttpJsonBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + ComplianceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + client = ComplianceClient.create(complianceSettings); + } + + @After + public void destroyClient() { + client.close(); + } + + // TODO(#1187): For 'throws' explanation, see + // https://github.com/googleapis/gapic-showcase/blob/v0.25.0/util/genrest/resttools/systemparam.go#L37-L46 + @Test + public void verifyEnums() { + EnumRequest request = EnumRequest.newBuilder().setUnknownEnum(true).build(); + + // EnumResponse initialResponse = + assertThrows(InvalidArgumentException.class, () -> client.getEnum(request)); + + // EnumResponse verifiedResponse = client.verifyEnum(initialResponse); + // + // Assert.assertNotNull(initialResponse); + // Assert.assertEquals(initialResponse, verifiedResponse); + } +} \ No newline at end of file diff --git a/showcase/grpc-gapic-showcase-v1beta1/pom.xml b/showcase/grpc-gapic-showcase-v1beta1/pom.xml new file mode 100644 index 0000000000..78881187c3 --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/pom.xml @@ -0,0 +1,112 @@ + + 4.0.0 + com.google.api.grpc + grpc-gapic-showcase-v1beta1 + 0.0.1-SNAPSHOT + grpc-gapic-showcase-v1beta1 + GRPC library for grpc-google-cloud-iot-v1 + + com.google.cloud + gapic-showcase-parent + 0.0.1-SNAPSHOT + + + + true + + + + + diff + + true + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + verify-showcase + + exec + + test + + bazel + + run + //showcase:verify_grpc + + + + + + + + + + update + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + verify-showcase + + exec + + generate-sources + + bazelisk + + run + //showcase:update_grpc + + + + + + + + + + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-gapic-showcase-v1beta1 + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.guava + guava + + + diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java new file mode 100644 index 0000000000..31504f489d --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java @@ -0,0 +1,942 @@ +package com.google.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/compliance.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ComplianceGrpc { + + private ComplianceGrpc() {} + + public static final String SERVICE_NAME = "google.showcase.v1beta1.Compliance"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRepeatDataBodyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataBody", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataBodyMethod() { + io.grpc.MethodDescriptor getRepeatDataBodyMethod; + if ((getRepeatDataBodyMethod = ComplianceGrpc.getRepeatDataBodyMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataBodyMethod = ComplianceGrpc.getRepeatDataBodyMethod) == null) { + ComplianceGrpc.getRepeatDataBodyMethod = getRepeatDataBodyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBody")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBody")) + .build(); + } + } + } + return getRepeatDataBodyMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyInfo", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod() { + io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod; + if ((getRepeatDataBodyInfoMethod = ComplianceGrpc.getRepeatDataBodyInfoMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataBodyInfoMethod = ComplianceGrpc.getRepeatDataBodyInfoMethod) == null) { + ComplianceGrpc.getRepeatDataBodyInfoMethod = getRepeatDataBodyInfoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyInfo")) + .build(); + } + } + } + return getRepeatDataBodyInfoMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataQuery", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataQueryMethod() { + io.grpc.MethodDescriptor getRepeatDataQueryMethod; + if ((getRepeatDataQueryMethod = ComplianceGrpc.getRepeatDataQueryMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataQueryMethod = ComplianceGrpc.getRepeatDataQueryMethod) == null) { + ComplianceGrpc.getRepeatDataQueryMethod = getRepeatDataQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataQuery")) + .build(); + } + } + } + return getRepeatDataQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataSimplePathMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataSimplePath", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataSimplePathMethod() { + io.grpc.MethodDescriptor getRepeatDataSimplePathMethod; + if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod) == null) { + ComplianceGrpc.getRepeatDataSimplePathMethod = getRepeatDataSimplePathMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataSimplePath")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataSimplePath")) + .build(); + } + } + } + return getRepeatDataSimplePathMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataPathResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataPathResource", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataPathResourceMethod() { + io.grpc.MethodDescriptor getRepeatDataPathResourceMethod; + if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod) == null) { + ComplianceGrpc.getRepeatDataPathResourceMethod = getRepeatDataPathResourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataPathResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataPathResource")) + .build(); + } + } + } + return getRepeatDataPathResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataPathTrailingResource", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod() { + io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod; + if ((getRepeatDataPathTrailingResourceMethod = ComplianceGrpc.getRepeatDataPathTrailingResourceMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataPathTrailingResourceMethod = ComplianceGrpc.getRepeatDataPathTrailingResourceMethod) == null) { + ComplianceGrpc.getRepeatDataPathTrailingResourceMethod = getRepeatDataPathTrailingResourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataPathTrailingResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataPathTrailingResource")) + .build(); + } + } + } + return getRepeatDataPathTrailingResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataBodyPutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyPut", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataBodyPutMethod() { + io.grpc.MethodDescriptor getRepeatDataBodyPutMethod; + if ((getRepeatDataBodyPutMethod = ComplianceGrpc.getRepeatDataBodyPutMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataBodyPutMethod = ComplianceGrpc.getRepeatDataBodyPutMethod) == null) { + ComplianceGrpc.getRepeatDataBodyPutMethod = getRepeatDataBodyPutMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPut")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyPut")) + .build(); + } + } + } + return getRepeatDataBodyPutMethod; + } + + private static volatile io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyPatch", + requestType = com.google.showcase.v1beta1.RepeatRequest.class, + responseType = com.google.showcase.v1beta1.RepeatResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod() { + io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod; + if ((getRepeatDataBodyPatchMethod = ComplianceGrpc.getRepeatDataBodyPatchMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getRepeatDataBodyPatchMethod = ComplianceGrpc.getRepeatDataBodyPatchMethod) == null) { + ComplianceGrpc.getRepeatDataBodyPatchMethod = getRepeatDataBodyPatchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyPatch")) + .build(); + } + } + } + return getRepeatDataBodyPatchMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEnumMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnum", + requestType = com.google.showcase.v1beta1.EnumRequest.class, + responseType = com.google.showcase.v1beta1.EnumResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEnumMethod() { + io.grpc.MethodDescriptor getGetEnumMethod; + if ((getGetEnumMethod = ComplianceGrpc.getGetEnumMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getGetEnumMethod = ComplianceGrpc.getGetEnumMethod) == null) { + ComplianceGrpc.getGetEnumMethod = getGetEnumMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnum")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EnumRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EnumResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("GetEnum")) + .build(); + } + } + } + return getGetEnumMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyEnumMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyEnum", + requestType = com.google.showcase.v1beta1.EnumResponse.class, + responseType = com.google.showcase.v1beta1.EnumResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyEnumMethod() { + io.grpc.MethodDescriptor getVerifyEnumMethod; + if ((getVerifyEnumMethod = ComplianceGrpc.getVerifyEnumMethod) == null) { + synchronized (ComplianceGrpc.class) { + if ((getVerifyEnumMethod = ComplianceGrpc.getVerifyEnumMethod) == null) { + ComplianceGrpc.getVerifyEnumMethod = getVerifyEnumMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyEnum")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EnumResponse.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EnumResponse.getDefaultInstance())) + .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("VerifyEnum")) + .build(); + } + } + } + return getVerifyEnumMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ComplianceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ComplianceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ComplianceStub(channel, callOptions); + } + }; + return ComplianceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ComplianceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ComplianceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ComplianceBlockingStub(channel, callOptions); + } + }; + return ComplianceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ComplianceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ComplianceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ComplianceFutureStub(channel, callOptions); + } + }; + return ComplianceFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class ComplianceImplBase implements io.grpc.BindableService { + + /** + */ + public void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyMethod(), responseObserver); + } + + /** + */ + public void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyInfoMethod(), responseObserver); + } + + /** + */ + public void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataQueryMethod(), responseObserver); + } + + /** + */ + public void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataSimplePathMethod(), responseObserver); + } + + /** + */ + public void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathResourceMethod(), responseObserver); + } + + /** + */ + public void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathTrailingResourceMethod(), responseObserver); + } + + /** + */ + public void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPutMethod(), responseObserver); + } + + /** + */ + public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPatchMethod(), responseObserver); + } + + /** + */ + public void getEnum(com.google.showcase.v1beta1.EnumRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnumMethod(), responseObserver); + } + + /** + */ + public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyEnumMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRepeatDataBodyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_BODY))) + .addMethod( + getRepeatDataBodyInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_BODY_INFO))) + .addMethod( + getRepeatDataQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_QUERY))) + .addMethod( + getRepeatDataSimplePathMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_SIMPLE_PATH))) + .addMethod( + getRepeatDataPathResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_PATH_RESOURCE))) + .addMethod( + getRepeatDataPathTrailingResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE))) + .addMethod( + getRepeatDataBodyPutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_BODY_PUT))) + .addMethod( + getRepeatDataBodyPatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatResponse>( + this, METHODID_REPEAT_DATA_BODY_PATCH))) + .addMethod( + getGetEnumMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.EnumRequest, + com.google.showcase.v1beta1.EnumResponse>( + this, METHODID_GET_ENUM))) + .addMethod( + getVerifyEnumMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.EnumResponse, + com.google.showcase.v1beta1.EnumResponse>( + this, METHODID_VERIFY_ENUM))) + .build(); + } + } + + /** + */ + public static final class ComplianceStub extends io.grpc.stub.AbstractAsyncStub { + private ComplianceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ComplianceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ComplianceStub(channel, callOptions); + } + + /** + */ + public void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getEnum(com.google.showcase.v1beta1.EnumRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnumMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyEnumMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class ComplianceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ComplianceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ComplianceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ComplianceBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataBodyMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataBodyInfoMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataQueryMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataSimplePathMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataPathResourceMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataPathTrailingResourceMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataBodyPutMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRepeatDataBodyPatchMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1beta1.EnumRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnumMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v1beta1.EnumResponse request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyEnumMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class ComplianceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ComplianceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ComplianceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ComplianceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataBody( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataBodyInfo( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataQuery( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataSimplePath( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataPathResource( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataPathTrailingResource( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataBodyPut( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture repeatDataBodyPatch( + com.google.showcase.v1beta1.RepeatRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getEnum( + com.google.showcase.v1beta1.EnumRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnumMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture verifyEnum( + com.google.showcase.v1beta1.EnumResponse request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyEnumMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_REPEAT_DATA_BODY = 0; + private static final int METHODID_REPEAT_DATA_BODY_INFO = 1; + private static final int METHODID_REPEAT_DATA_QUERY = 2; + private static final int METHODID_REPEAT_DATA_SIMPLE_PATH = 3; + private static final int METHODID_REPEAT_DATA_PATH_RESOURCE = 4; + private static final int METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE = 5; + private static final int METHODID_REPEAT_DATA_BODY_PUT = 6; + private static final int METHODID_REPEAT_DATA_BODY_PATCH = 7; + private static final int METHODID_GET_ENUM = 8; + private static final int METHODID_VERIFY_ENUM = 9; + + 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 ComplianceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ComplianceImplBase 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_REPEAT_DATA_BODY: + serviceImpl.repeatDataBody((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_BODY_INFO: + serviceImpl.repeatDataBodyInfo((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_QUERY: + serviceImpl.repeatDataQuery((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_SIMPLE_PATH: + serviceImpl.repeatDataSimplePath((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_PATH_RESOURCE: + serviceImpl.repeatDataPathResource((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE: + serviceImpl.repeatDataPathTrailingResource((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_BODY_PUT: + serviceImpl.repeatDataBodyPut((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPEAT_DATA_BODY_PATCH: + serviceImpl.repeatDataBodyPatch((com.google.showcase.v1beta1.RepeatRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ENUM: + serviceImpl.getEnum((com.google.showcase.v1beta1.EnumRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_ENUM: + serviceImpl.verifyEnum((com.google.showcase.v1beta1.EnumResponse) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ComplianceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ComplianceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Compliance"); + } + } + + private static final class ComplianceFileDescriptorSupplier + extends ComplianceBaseDescriptorSupplier { + ComplianceFileDescriptorSupplier() {} + } + + private static final class ComplianceMethodDescriptorSupplier + extends ComplianceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ComplianceMethodDescriptorSupplier(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 (ComplianceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ComplianceFileDescriptorSupplier()) + .addMethod(getRepeatDataBodyMethod()) + .addMethod(getRepeatDataBodyInfoMethod()) + .addMethod(getRepeatDataQueryMethod()) + .addMethod(getRepeatDataSimplePathMethod()) + .addMethod(getRepeatDataPathResourceMethod()) + .addMethod(getRepeatDataPathTrailingResourceMethod()) + .addMethod(getRepeatDataBodyPutMethod()) + .addMethod(getRepeatDataBodyPatchMethod()) + .addMethod(getGetEnumMethod()) + .addMethod(getVerifyEnumMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java new file mode 100644 index 0000000000..fb0405e1ec --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java @@ -0,0 +1,829 @@ +package com.google.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/echo.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EchoGrpc { + + private EchoGrpc() {} + + public static final String SERVICE_NAME = "google.showcase.v1beta1.Echo"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getEchoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Echo", + requestType = com.google.showcase.v1beta1.EchoRequest.class, + responseType = com.google.showcase.v1beta1.EchoResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getEchoMethod() { + io.grpc.MethodDescriptor getEchoMethod; + if ((getEchoMethod = EchoGrpc.getEchoMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getEchoMethod = EchoGrpc.getEchoMethod) == null) { + EchoGrpc.getEchoMethod = getEchoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Echo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Echo")) + .build(); + } + } + } + return getEchoMethod; + } + + private static volatile io.grpc.MethodDescriptor getExpandMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Expand", + requestType = com.google.showcase.v1beta1.ExpandRequest.class, + responseType = com.google.showcase.v1beta1.EchoResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getExpandMethod() { + io.grpc.MethodDescriptor getExpandMethod; + if ((getExpandMethod = EchoGrpc.getExpandMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getExpandMethod = EchoGrpc.getExpandMethod) == null) { + EchoGrpc.getExpandMethod = getExpandMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Expand")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Expand")) + .build(); + } + } + } + return getExpandMethod; + } + + private static volatile io.grpc.MethodDescriptor getCollectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Collect", + requestType = com.google.showcase.v1beta1.EchoRequest.class, + responseType = com.google.showcase.v1beta1.EchoResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + public static io.grpc.MethodDescriptor getCollectMethod() { + io.grpc.MethodDescriptor getCollectMethod; + if ((getCollectMethod = EchoGrpc.getCollectMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getCollectMethod = EchoGrpc.getCollectMethod) == null) { + EchoGrpc.getCollectMethod = getCollectMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Collect")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Collect")) + .build(); + } + } + } + return getCollectMethod; + } + + private static volatile io.grpc.MethodDescriptor getChatMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Chat", + requestType = com.google.showcase.v1beta1.EchoRequest.class, + responseType = com.google.showcase.v1beta1.EchoResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getChatMethod() { + io.grpc.MethodDescriptor getChatMethod; + if ((getChatMethod = EchoGrpc.getChatMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getChatMethod = EchoGrpc.getChatMethod) == null) { + EchoGrpc.getChatMethod = getChatMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Chat")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Chat")) + .build(); + } + } + } + return getChatMethod; + } + + private static volatile io.grpc.MethodDescriptor getPagedExpandMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PagedExpand", + requestType = com.google.showcase.v1beta1.PagedExpandRequest.class, + responseType = com.google.showcase.v1beta1.PagedExpandResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPagedExpandMethod() { + io.grpc.MethodDescriptor getPagedExpandMethod; + if ((getPagedExpandMethod = EchoGrpc.getPagedExpandMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getPagedExpandMethod = EchoGrpc.getPagedExpandMethod) == null) { + EchoGrpc.getPagedExpandMethod = getPagedExpandMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpand")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpand")) + .build(); + } + } + } + return getPagedExpandMethod; + } + + private static volatile io.grpc.MethodDescriptor getPagedExpandLegacyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PagedExpandLegacy", + requestType = com.google.showcase.v1beta1.PagedExpandLegacyRequest.class, + responseType = com.google.showcase.v1beta1.PagedExpandResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPagedExpandLegacyMethod() { + io.grpc.MethodDescriptor getPagedExpandLegacyMethod; + if ((getPagedExpandLegacyMethod = EchoGrpc.getPagedExpandLegacyMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getPagedExpandLegacyMethod = EchoGrpc.getPagedExpandLegacyMethod) == null) { + EchoGrpc.getPagedExpandLegacyMethod = getPagedExpandLegacyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacy")) + .build(); + } + } + } + return getPagedExpandLegacyMethod; + } + + private static volatile io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PagedExpandLegacyMapped", + requestType = com.google.showcase.v1beta1.PagedExpandRequest.class, + responseType = com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod() { + io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod; + if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod) == null) { + EchoGrpc.getPagedExpandLegacyMappedMethod = getPagedExpandLegacyMappedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacyMapped")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacyMapped")) + .build(); + } + } + } + return getPagedExpandLegacyMappedMethod; + } + + private static volatile io.grpc.MethodDescriptor getWaitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Wait", + requestType = com.google.showcase.v1beta1.WaitRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getWaitMethod() { + io.grpc.MethodDescriptor getWaitMethod; + if ((getWaitMethod = EchoGrpc.getWaitMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getWaitMethod = EchoGrpc.getWaitMethod) == null) { + EchoGrpc.getWaitMethod = getWaitMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Wait")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.WaitRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Wait")) + .build(); + } + } + } + return getWaitMethod; + } + + private static volatile io.grpc.MethodDescriptor getBlockMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Block", + requestType = com.google.showcase.v1beta1.BlockRequest.class, + responseType = com.google.showcase.v1beta1.BlockResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBlockMethod() { + io.grpc.MethodDescriptor getBlockMethod; + if ((getBlockMethod = EchoGrpc.getBlockMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getBlockMethod = EchoGrpc.getBlockMethod) == null) { + EchoGrpc.getBlockMethod = getBlockMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Block")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.BlockRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.BlockResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Block")) + .build(); + } + } + } + return getBlockMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static EchoStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EchoStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EchoStub(channel, callOptions); + } + }; + return EchoStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EchoBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EchoBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EchoBlockingStub(channel, callOptions); + } + }; + return EchoBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static EchoFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EchoFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EchoFutureStub(channel, callOptions); + } + }; + return EchoFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class EchoImplBase implements io.grpc.BindableService { + + /** + */ + public void echo(com.google.showcase.v1beta1.EchoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEchoMethod(), responseObserver); + } + + /** + */ + public void expand(com.google.showcase.v1beta1.ExpandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExpandMethod(), responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver collect( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getCollectMethod(), responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver chat( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getChatMethod(), responseObserver); + } + + /** + */ + public void pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPagedExpandMethod(), responseObserver); + } + + /** + */ + public void pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPagedExpandLegacyMethod(), responseObserver); + } + + /** + */ + public void pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPagedExpandLegacyMappedMethod(), responseObserver); + } + + /** + */ + public void wait(com.google.showcase.v1beta1.WaitRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWaitMethod(), responseObserver); + } + + /** + */ + public void block(com.google.showcase.v1beta1.BlockRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlockMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getEchoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoRequest, + com.google.showcase.v1beta1.EchoResponse>( + this, METHODID_ECHO))) + .addMethod( + getExpandMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.ExpandRequest, + com.google.showcase.v1beta1.EchoResponse>( + this, METHODID_EXPAND))) + .addMethod( + getCollectMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoRequest, + com.google.showcase.v1beta1.EchoResponse>( + this, METHODID_COLLECT))) + .addMethod( + getChatMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoRequest, + com.google.showcase.v1beta1.EchoResponse>( + this, METHODID_CHAT))) + .addMethod( + getPagedExpandMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.PagedExpandRequest, + com.google.showcase.v1beta1.PagedExpandResponse>( + this, METHODID_PAGED_EXPAND))) + .addMethod( + getPagedExpandLegacyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.PagedExpandLegacyRequest, + com.google.showcase.v1beta1.PagedExpandResponse>( + this, METHODID_PAGED_EXPAND_LEGACY))) + .addMethod( + getPagedExpandLegacyMappedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.PagedExpandRequest, + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>( + this, METHODID_PAGED_EXPAND_LEGACY_MAPPED))) + .addMethod( + getWaitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.WaitRequest, + com.google.longrunning.Operation>( + this, METHODID_WAIT))) + .addMethod( + getBlockMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.BlockRequest, + com.google.showcase.v1beta1.BlockResponse>( + this, METHODID_BLOCK))) + .build(); + } + } + + /** + */ + public static final class EchoStub extends io.grpc.stub.AbstractAsyncStub { + private EchoStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EchoStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EchoStub(channel, callOptions); + } + + /** + */ + public void echo(com.google.showcase.v1beta1.EchoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEchoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void expand(com.google.showcase.v1beta1.ExpandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getExpandMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver collect( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncClientStreamingCall( + getChannel().newCall(getCollectMethod(), getCallOptions()), responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver chat( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getChatMethod(), getCallOptions()), responseObserver); + } + + /** + */ + public void pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPagedExpandMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPagedExpandLegacyMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPagedExpandLegacyMappedMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void wait(com.google.showcase.v1beta1.WaitRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWaitMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void block(com.google.showcase.v1beta1.BlockRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBlockMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class EchoBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private EchoBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EchoBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EchoBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.showcase.v1beta1.EchoResponse echo(com.google.showcase.v1beta1.EchoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEchoMethod(), getCallOptions(), request); + } + + /** + */ + public java.util.Iterator expand( + com.google.showcase.v1beta1.ExpandRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getExpandMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.PagedExpandResponse pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPagedExpandMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.PagedExpandResponse pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPagedExpandLegacyMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPagedExpandLegacyMappedMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.longrunning.Operation wait(com.google.showcase.v1beta1.WaitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWaitMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.BlockResponse block(com.google.showcase.v1beta1.BlockRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBlockMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class EchoFutureStub extends io.grpc.stub.AbstractFutureStub { + private EchoFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EchoFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EchoFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture echo( + com.google.showcase.v1beta1.EchoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEchoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture pagedExpand( + com.google.showcase.v1beta1.PagedExpandRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPagedExpandMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture pagedExpandLegacy( + com.google.showcase.v1beta1.PagedExpandLegacyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPagedExpandLegacyMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture pagedExpandLegacyMapped( + com.google.showcase.v1beta1.PagedExpandRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPagedExpandLegacyMappedMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture wait( + com.google.showcase.v1beta1.WaitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getWaitMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture block( + com.google.showcase.v1beta1.BlockRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBlockMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_ECHO = 0; + private static final int METHODID_EXPAND = 1; + private static final int METHODID_PAGED_EXPAND = 2; + private static final int METHODID_PAGED_EXPAND_LEGACY = 3; + private static final int METHODID_PAGED_EXPAND_LEGACY_MAPPED = 4; + private static final int METHODID_WAIT = 5; + private static final int METHODID_BLOCK = 6; + private static final int METHODID_COLLECT = 7; + private static final int METHODID_CHAT = 8; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EchoImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EchoImplBase 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_ECHO: + serviceImpl.echo((com.google.showcase.v1beta1.EchoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPAND: + serviceImpl.expand((com.google.showcase.v1beta1.ExpandRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PAGED_EXPAND: + serviceImpl.pagedExpand((com.google.showcase.v1beta1.PagedExpandRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PAGED_EXPAND_LEGACY: + serviceImpl.pagedExpandLegacy((com.google.showcase.v1beta1.PagedExpandLegacyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PAGED_EXPAND_LEGACY_MAPPED: + serviceImpl.pagedExpandLegacyMapped((com.google.showcase.v1beta1.PagedExpandRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_WAIT: + serviceImpl.wait((com.google.showcase.v1beta1.WaitRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BLOCK: + serviceImpl.block((com.google.showcase.v1beta1.BlockRequest) 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) { + case METHODID_COLLECT: + return (io.grpc.stub.StreamObserver) serviceImpl.collect( + (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_CHAT: + return (io.grpc.stub.StreamObserver) serviceImpl.chat( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class EchoBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EchoBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Echo"); + } + } + + private static final class EchoFileDescriptorSupplier + extends EchoBaseDescriptorSupplier { + EchoFileDescriptorSupplier() {} + } + + private static final class EchoMethodDescriptorSupplier + extends EchoBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EchoMethodDescriptorSupplier(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 (EchoGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EchoFileDescriptorSupplier()) + .addMethod(getEchoMethod()) + .addMethod(getExpandMethod()) + .addMethod(getCollectMethod()) + .addMethod(getChatMethod()) + .addMethod(getPagedExpandMethod()) + .addMethod(getPagedExpandLegacyMethod()) + .addMethod(getPagedExpandLegacyMappedMethod()) + .addMethod(getWaitMethod()) + .addMethod(getBlockMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java new file mode 100644 index 0000000000..bcfa37a663 --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java @@ -0,0 +1,572 @@ +package com.google.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/identity.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class IdentityGrpc { + + private IdentityGrpc() {} + + public static final String SERVICE_NAME = "google.showcase.v1beta1.Identity"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUser", + requestType = com.google.showcase.v1beta1.CreateUserRequest.class, + responseType = com.google.showcase.v1beta1.User.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateUserMethod() { + io.grpc.MethodDescriptor getCreateUserMethod; + if ((getCreateUserMethod = IdentityGrpc.getCreateUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getCreateUserMethod = IdentityGrpc.getCreateUserMethod) == null) { + IdentityGrpc.getCreateUserMethod = getCreateUserMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateUserRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.User.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("CreateUser")) + .build(); + } + } + } + return getCreateUserMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUser", + requestType = com.google.showcase.v1beta1.GetUserRequest.class, + responseType = com.google.showcase.v1beta1.User.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetUserMethod() { + io.grpc.MethodDescriptor getGetUserMethod; + if ((getGetUserMethod = IdentityGrpc.getGetUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getGetUserMethod = IdentityGrpc.getGetUserMethod) == null) { + IdentityGrpc.getGetUserMethod = getGetUserMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetUserRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.User.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("GetUser")) + .build(); + } + } + } + return getGetUserMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUser", + requestType = com.google.showcase.v1beta1.UpdateUserRequest.class, + responseType = com.google.showcase.v1beta1.User.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateUserMethod() { + io.grpc.MethodDescriptor getUpdateUserMethod; + if ((getUpdateUserMethod = IdentityGrpc.getUpdateUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getUpdateUserMethod = IdentityGrpc.getUpdateUserMethod) == null) { + IdentityGrpc.getUpdateUserMethod = getUpdateUserMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.UpdateUserRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.User.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("UpdateUser")) + .build(); + } + } + } + return getUpdateUserMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUser", + requestType = com.google.showcase.v1beta1.DeleteUserRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteUserMethod() { + io.grpc.MethodDescriptor getDeleteUserMethod; + if ((getDeleteUserMethod = IdentityGrpc.getDeleteUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getDeleteUserMethod = IdentityGrpc.getDeleteUserMethod) == null) { + IdentityGrpc.getDeleteUserMethod = getDeleteUserMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteUserRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("DeleteUser")) + .build(); + } + } + } + return getDeleteUserMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsers", + requestType = com.google.showcase.v1beta1.ListUsersRequest.class, + responseType = com.google.showcase.v1beta1.ListUsersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsersMethod() { + io.grpc.MethodDescriptor getListUsersMethod; + if ((getListUsersMethod = IdentityGrpc.getListUsersMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getListUsersMethod = IdentityGrpc.getListUsersMethod) == null) { + IdentityGrpc.getListUsersMethod = getListUsersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListUsersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListUsersResponse.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("ListUsers")) + .build(); + } + } + } + return getListUsersMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static IdentityStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityStub(channel, callOptions); + } + }; + return IdentityStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IdentityBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityBlockingStub(channel, callOptions); + } + }; + return IdentityBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static IdentityFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityFutureStub(channel, callOptions); + } + }; + return IdentityFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class IdentityImplBase implements io.grpc.BindableService { + + /** + */ + public void createUser(com.google.showcase.v1beta1.CreateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUserMethod(), responseObserver); + } + + /** + */ + public void getUser(com.google.showcase.v1beta1.GetUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUserMethod(), responseObserver); + } + + /** + */ + public void updateUser(com.google.showcase.v1beta1.UpdateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUserMethod(), responseObserver); + } + + /** + */ + public void deleteUser(com.google.showcase.v1beta1.DeleteUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUserMethod(), responseObserver); + } + + /** + */ + public void listUsers(com.google.showcase.v1beta1.ListUsersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsersMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateUserRequest, + com.google.showcase.v1beta1.User>( + this, METHODID_CREATE_USER))) + .addMethod( + getGetUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetUserRequest, + com.google.showcase.v1beta1.User>( + this, METHODID_GET_USER))) + .addMethod( + getUpdateUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.UpdateUserRequest, + com.google.showcase.v1beta1.User>( + this, METHODID_UPDATE_USER))) + .addMethod( + getDeleteUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteUserRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_USER))) + .addMethod( + getListUsersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListUsersRequest, + com.google.showcase.v1beta1.ListUsersResponse>( + this, METHODID_LIST_USERS))) + .build(); + } + } + + /** + */ + public static final class IdentityStub extends io.grpc.stub.AbstractAsyncStub { + private IdentityStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityStub(channel, callOptions); + } + + /** + */ + public void createUser(com.google.showcase.v1beta1.CreateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getUser(com.google.showcase.v1beta1.GetUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateUser(com.google.showcase.v1beta1.UpdateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteUser(com.google.showcase.v1beta1.DeleteUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listUsers(com.google.showcase.v1beta1.ListUsersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsersMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class IdentityBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private IdentityBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.showcase.v1beta1.User createUser(com.google.showcase.v1beta1.CreateUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUserMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.User getUser(com.google.showcase.v1beta1.GetUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.User updateUser(com.google.showcase.v1beta1.UpdateUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteUser(com.google.showcase.v1beta1.DeleteUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUserMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.ListUsersResponse listUsers(com.google.showcase.v1beta1.ListUsersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsersMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class IdentityFutureStub extends io.grpc.stub.AbstractFutureStub { + private IdentityFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createUser( + com.google.showcase.v1beta1.CreateUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUserMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getUser( + com.google.showcase.v1beta1.GetUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateUser( + com.google.showcase.v1beta1.UpdateUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteUser( + com.google.showcase.v1beta1.DeleteUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listUsers( + com.google.showcase.v1beta1.ListUsersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_USER = 0; + private static final int METHODID_GET_USER = 1; + private static final int METHODID_UPDATE_USER = 2; + private static final int METHODID_DELETE_USER = 3; + private static final int METHODID_LIST_USERS = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final IdentityImplBase serviceImpl; + private final int methodId; + + MethodHandlers(IdentityImplBase 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_USER: + serviceImpl.createUser((com.google.showcase.v1beta1.CreateUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_USER: + serviceImpl.getUser((com.google.showcase.v1beta1.GetUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_USER: + serviceImpl.updateUser((com.google.showcase.v1beta1.UpdateUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_USER: + serviceImpl.deleteUser((com.google.showcase.v1beta1.DeleteUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USERS: + serviceImpl.listUsers((com.google.showcase.v1beta1.ListUsersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class IdentityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IdentityBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Identity"); + } + } + + private static final class IdentityFileDescriptorSupplier + extends IdentityBaseDescriptorSupplier { + IdentityFileDescriptorSupplier() {} + } + + private static final class IdentityMethodDescriptorSupplier + extends IdentityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + IdentityMethodDescriptorSupplier(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 (IdentityGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IdentityFileDescriptorSupplier()) + .addMethod(getCreateUserMethod()) + .addMethod(getGetUserMethod()) + .addMethod(getUpdateUserMethod()) + .addMethod(getDeleteUserMethod()) + .addMethod(getListUsersMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java new file mode 100644 index 0000000000..906dfe779e --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java @@ -0,0 +1,1199 @@ +package com.google.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/messaging.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MessagingGrpc { + + private MessagingGrpc() {} + + public static final String SERVICE_NAME = "google.showcase.v1beta1.Messaging"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRoom", + requestType = com.google.showcase.v1beta1.CreateRoomRequest.class, + responseType = com.google.showcase.v1beta1.Room.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRoomMethod() { + io.grpc.MethodDescriptor getCreateRoomMethod; + if ((getCreateRoomMethod = MessagingGrpc.getCreateRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getCreateRoomMethod = MessagingGrpc.getCreateRoomMethod) == null) { + MessagingGrpc.getCreateRoomMethod = getCreateRoomMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateRoomRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Room.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("CreateRoom")) + .build(); + } + } + } + return getCreateRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRoom", + requestType = com.google.showcase.v1beta1.GetRoomRequest.class, + responseType = com.google.showcase.v1beta1.Room.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRoomMethod() { + io.grpc.MethodDescriptor getGetRoomMethod; + if ((getGetRoomMethod = MessagingGrpc.getGetRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getGetRoomMethod = MessagingGrpc.getGetRoomMethod) == null) { + MessagingGrpc.getGetRoomMethod = getGetRoomMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetRoomRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Room.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("GetRoom")) + .build(); + } + } + } + return getGetRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRoom", + requestType = com.google.showcase.v1beta1.UpdateRoomRequest.class, + responseType = com.google.showcase.v1beta1.Room.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateRoomMethod() { + io.grpc.MethodDescriptor getUpdateRoomMethod; + if ((getUpdateRoomMethod = MessagingGrpc.getUpdateRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getUpdateRoomMethod = MessagingGrpc.getUpdateRoomMethod) == null) { + MessagingGrpc.getUpdateRoomMethod = getUpdateRoomMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.UpdateRoomRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Room.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("UpdateRoom")) + .build(); + } + } + } + return getUpdateRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRoom", + requestType = com.google.showcase.v1beta1.DeleteRoomRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRoomMethod() { + io.grpc.MethodDescriptor getDeleteRoomMethod; + if ((getDeleteRoomMethod = MessagingGrpc.getDeleteRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getDeleteRoomMethod = MessagingGrpc.getDeleteRoomMethod) == null) { + MessagingGrpc.getDeleteRoomMethod = getDeleteRoomMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteRoomRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("DeleteRoom")) + .build(); + } + } + } + return getDeleteRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRoomsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRooms", + requestType = com.google.showcase.v1beta1.ListRoomsRequest.class, + responseType = com.google.showcase.v1beta1.ListRoomsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRoomsMethod() { + io.grpc.MethodDescriptor getListRoomsMethod; + if ((getListRoomsMethod = MessagingGrpc.getListRoomsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getListRoomsMethod = MessagingGrpc.getListRoomsMethod) == null) { + MessagingGrpc.getListRoomsMethod = getListRoomsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRooms")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListRoomsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListRoomsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("ListRooms")) + .build(); + } + } + } + return getListRoomsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBlurb", + requestType = com.google.showcase.v1beta1.CreateBlurbRequest.class, + responseType = com.google.showcase.v1beta1.Blurb.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBlurbMethod() { + io.grpc.MethodDescriptor getCreateBlurbMethod; + if ((getCreateBlurbMethod = MessagingGrpc.getCreateBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getCreateBlurbMethod = MessagingGrpc.getCreateBlurbMethod) == null) { + MessagingGrpc.getCreateBlurbMethod = getCreateBlurbMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Blurb.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("CreateBlurb")) + .build(); + } + } + } + return getCreateBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBlurb", + requestType = com.google.showcase.v1beta1.GetBlurbRequest.class, + responseType = com.google.showcase.v1beta1.Blurb.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlurbMethod() { + io.grpc.MethodDescriptor getGetBlurbMethod; + if ((getGetBlurbMethod = MessagingGrpc.getGetBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getGetBlurbMethod = MessagingGrpc.getGetBlurbMethod) == null) { + MessagingGrpc.getGetBlurbMethod = getGetBlurbMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetBlurbRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Blurb.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("GetBlurb")) + .build(); + } + } + } + return getGetBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBlurb", + requestType = com.google.showcase.v1beta1.UpdateBlurbRequest.class, + responseType = com.google.showcase.v1beta1.Blurb.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateBlurbMethod() { + io.grpc.MethodDescriptor getUpdateBlurbMethod; + if ((getUpdateBlurbMethod = MessagingGrpc.getUpdateBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getUpdateBlurbMethod = MessagingGrpc.getUpdateBlurbMethod) == null) { + MessagingGrpc.getUpdateBlurbMethod = getUpdateBlurbMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.UpdateBlurbRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Blurb.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("UpdateBlurb")) + .build(); + } + } + } + return getUpdateBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBlurb", + requestType = com.google.showcase.v1beta1.DeleteBlurbRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBlurbMethod() { + io.grpc.MethodDescriptor getDeleteBlurbMethod; + if ((getDeleteBlurbMethod = MessagingGrpc.getDeleteBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getDeleteBlurbMethod = MessagingGrpc.getDeleteBlurbMethod) == null) { + MessagingGrpc.getDeleteBlurbMethod = getDeleteBlurbMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteBlurbRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("DeleteBlurb")) + .build(); + } + } + } + return getDeleteBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBlurbs", + requestType = com.google.showcase.v1beta1.ListBlurbsRequest.class, + responseType = com.google.showcase.v1beta1.ListBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBlurbsMethod() { + io.grpc.MethodDescriptor getListBlurbsMethod; + if ((getListBlurbsMethod = MessagingGrpc.getListBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getListBlurbsMethod = MessagingGrpc.getListBlurbsMethod) == null) { + MessagingGrpc.getListBlurbsMethod = getListBlurbsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListBlurbsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListBlurbsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("ListBlurbs")) + .build(); + } + } + } + return getListBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchBlurbs", + requestType = com.google.showcase.v1beta1.SearchBlurbsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchBlurbsMethod() { + io.grpc.MethodDescriptor getSearchBlurbsMethod; + if ((getSearchBlurbsMethod = MessagingGrpc.getSearchBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getSearchBlurbsMethod = MessagingGrpc.getSearchBlurbsMethod) == null) { + MessagingGrpc.getSearchBlurbsMethod = getSearchBlurbsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("SearchBlurbs")) + .build(); + } + } + } + return getSearchBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamBlurbs", + requestType = com.google.showcase.v1beta1.StreamBlurbsRequest.class, + responseType = com.google.showcase.v1beta1.StreamBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getStreamBlurbsMethod() { + io.grpc.MethodDescriptor getStreamBlurbsMethod; + if ((getStreamBlurbsMethod = MessagingGrpc.getStreamBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getStreamBlurbsMethod = MessagingGrpc.getStreamBlurbsMethod) == null) { + MessagingGrpc.getStreamBlurbsMethod = getStreamBlurbsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("StreamBlurbs")) + .build(); + } + } + } + return getStreamBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSendBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendBlurbs", + requestType = com.google.showcase.v1beta1.CreateBlurbRequest.class, + responseType = com.google.showcase.v1beta1.SendBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + public static io.grpc.MethodDescriptor getSendBlurbsMethod() { + io.grpc.MethodDescriptor getSendBlurbsMethod; + if ((getSendBlurbsMethod = MessagingGrpc.getSendBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getSendBlurbsMethod = MessagingGrpc.getSendBlurbsMethod) == null) { + MessagingGrpc.getSendBlurbsMethod = getSendBlurbsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.SendBlurbsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("SendBlurbs")) + .build(); + } + } + } + return getSendBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor getConnectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Connect", + requestType = com.google.showcase.v1beta1.ConnectRequest.class, + responseType = com.google.showcase.v1beta1.StreamBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getConnectMethod() { + io.grpc.MethodDescriptor getConnectMethod; + if ((getConnectMethod = MessagingGrpc.getConnectMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getConnectMethod = MessagingGrpc.getConnectMethod) == null) { + MessagingGrpc.getConnectMethod = getConnectMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Connect")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("Connect")) + .build(); + } + } + } + return getConnectMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MessagingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MessagingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingStub(channel, callOptions); + } + }; + return MessagingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MessagingBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MessagingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingBlockingStub(channel, callOptions); + } + }; + return MessagingBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MessagingFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MessagingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingFutureStub(channel, callOptions); + } + }; + return MessagingFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class MessagingImplBase implements io.grpc.BindableService { + + /** + */ + public void createRoom(com.google.showcase.v1beta1.CreateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRoomMethod(), responseObserver); + } + + /** + */ + public void getRoom(com.google.showcase.v1beta1.GetRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRoomMethod(), responseObserver); + } + + /** + */ + public void updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRoomMethod(), responseObserver); + } + + /** + */ + public void deleteRoom(com.google.showcase.v1beta1.DeleteRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRoomMethod(), responseObserver); + } + + /** + */ + public void listRooms(com.google.showcase.v1beta1.ListRoomsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoomsMethod(), responseObserver); + } + + /** + */ + public void createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBlurbMethod(), responseObserver); + } + + /** + */ + public void getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlurbMethod(), responseObserver); + } + + /** + */ + public void updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBlurbMethod(), responseObserver); + } + + /** + */ + public void deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBlurbMethod(), responseObserver); + } + + /** + */ + public void listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlurbsMethod(), responseObserver); + } + + /** + */ + public void searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchBlurbsMethod(), responseObserver); + } + + /** + */ + public void streamBlurbs(com.google.showcase.v1beta1.StreamBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamBlurbsMethod(), responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver sendBlurbs( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSendBlurbsMethod(), responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver connect( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getConnectMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateRoomRequest, + com.google.showcase.v1beta1.Room>( + this, METHODID_CREATE_ROOM))) + .addMethod( + getGetRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetRoomRequest, + com.google.showcase.v1beta1.Room>( + this, METHODID_GET_ROOM))) + .addMethod( + getUpdateRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.UpdateRoomRequest, + com.google.showcase.v1beta1.Room>( + this, METHODID_UPDATE_ROOM))) + .addMethod( + getDeleteRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteRoomRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ROOM))) + .addMethod( + getListRoomsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListRoomsRequest, + com.google.showcase.v1beta1.ListRoomsResponse>( + this, METHODID_LIST_ROOMS))) + .addMethod( + getCreateBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.Blurb>( + this, METHODID_CREATE_BLURB))) + .addMethod( + getGetBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetBlurbRequest, + com.google.showcase.v1beta1.Blurb>( + this, METHODID_GET_BLURB))) + .addMethod( + getUpdateBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.UpdateBlurbRequest, + com.google.showcase.v1beta1.Blurb>( + this, METHODID_UPDATE_BLURB))) + .addMethod( + getDeleteBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteBlurbRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_BLURB))) + .addMethod( + getListBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListBlurbsRequest, + com.google.showcase.v1beta1.ListBlurbsResponse>( + this, METHODID_LIST_BLURBS))) + .addMethod( + getSearchBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.SearchBlurbsRequest, + com.google.longrunning.Operation>( + this, METHODID_SEARCH_BLURBS))) + .addMethod( + getStreamBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.StreamBlurbsRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse>( + this, METHODID_STREAM_BLURBS))) + .addMethod( + getSendBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.SendBlurbsResponse>( + this, METHODID_SEND_BLURBS))) + .addMethod( + getConnectMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.ConnectRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse>( + this, METHODID_CONNECT))) + .build(); + } + } + + /** + */ + public static final class MessagingStub extends io.grpc.stub.AbstractAsyncStub { + private MessagingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MessagingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingStub(channel, callOptions); + } + + /** + */ + public void createRoom(com.google.showcase.v1beta1.CreateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getRoom(com.google.showcase.v1beta1.GetRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteRoom(com.google.showcase.v1beta1.DeleteRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listRooms(com.google.showcase.v1beta1.ListRoomsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRoomsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBlurbMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBlurbMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBlurbMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBlurbMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBlurbsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchBlurbsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void streamBlurbs(com.google.showcase.v1beta1.StreamBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamBlurbsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver sendBlurbs( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncClientStreamingCall( + getChannel().newCall(getSendBlurbsMethod(), getCallOptions()), responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver connect( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getConnectMethod(), getCallOptions()), responseObserver); + } + } + + /** + */ + public static final class MessagingBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private MessagingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MessagingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.showcase.v1beta1.Room createRoom(com.google.showcase.v1beta1.CreateRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRoomMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.Room getRoom(com.google.showcase.v1beta1.GetRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRoomMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.Room updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRoomMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteRoom(com.google.showcase.v1beta1.DeleteRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRoomMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.ListRoomsResponse listRooms(com.google.showcase.v1beta1.ListRoomsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRoomsMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.Blurb createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBlurbMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.Blurb getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBlurbMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.Blurb updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBlurbMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBlurbMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.ListBlurbsResponse listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBlurbsMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.longrunning.Operation searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchBlurbsMethod(), getCallOptions(), request); + } + + /** + */ + public java.util.Iterator streamBlurbs( + com.google.showcase.v1beta1.StreamBlurbsRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamBlurbsMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class MessagingFutureStub extends io.grpc.stub.AbstractFutureStub { + private MessagingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MessagingFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createRoom( + com.google.showcase.v1beta1.CreateRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRoomMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getRoom( + com.google.showcase.v1beta1.GetRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRoomMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateRoom( + com.google.showcase.v1beta1.UpdateRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRoomMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteRoom( + com.google.showcase.v1beta1.DeleteRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRoomMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listRooms( + com.google.showcase.v1beta1.ListRoomsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRoomsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createBlurb( + com.google.showcase.v1beta1.CreateBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBlurbMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getBlurb( + com.google.showcase.v1beta1.GetBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBlurbMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateBlurb( + com.google.showcase.v1beta1.UpdateBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBlurbMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteBlurb( + com.google.showcase.v1beta1.DeleteBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBlurbMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listBlurbs( + com.google.showcase.v1beta1.ListBlurbsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBlurbsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture searchBlurbs( + com.google.showcase.v1beta1.SearchBlurbsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchBlurbsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ROOM = 0; + private static final int METHODID_GET_ROOM = 1; + private static final int METHODID_UPDATE_ROOM = 2; + private static final int METHODID_DELETE_ROOM = 3; + private static final int METHODID_LIST_ROOMS = 4; + private static final int METHODID_CREATE_BLURB = 5; + private static final int METHODID_GET_BLURB = 6; + private static final int METHODID_UPDATE_BLURB = 7; + private static final int METHODID_DELETE_BLURB = 8; + private static final int METHODID_LIST_BLURBS = 9; + private static final int METHODID_SEARCH_BLURBS = 10; + private static final int METHODID_STREAM_BLURBS = 11; + private static final int METHODID_SEND_BLURBS = 12; + private static final int METHODID_CONNECT = 13; + + 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 MessagingImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MessagingImplBase 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_ROOM: + serviceImpl.createRoom((com.google.showcase.v1beta1.CreateRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ROOM: + serviceImpl.getRoom((com.google.showcase.v1beta1.GetRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ROOM: + serviceImpl.updateRoom((com.google.showcase.v1beta1.UpdateRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ROOM: + serviceImpl.deleteRoom((com.google.showcase.v1beta1.DeleteRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ROOMS: + serviceImpl.listRooms((com.google.showcase.v1beta1.ListRoomsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BLURB: + serviceImpl.createBlurb((com.google.showcase.v1beta1.CreateBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLURB: + serviceImpl.getBlurb((com.google.showcase.v1beta1.GetBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BLURB: + serviceImpl.updateBlurb((com.google.showcase.v1beta1.UpdateBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BLURB: + serviceImpl.deleteBlurb((com.google.showcase.v1beta1.DeleteBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BLURBS: + serviceImpl.listBlurbs((com.google.showcase.v1beta1.ListBlurbsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_BLURBS: + serviceImpl.searchBlurbs((com.google.showcase.v1beta1.SearchBlurbsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STREAM_BLURBS: + serviceImpl.streamBlurbs((com.google.showcase.v1beta1.StreamBlurbsRequest) 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) { + case METHODID_SEND_BLURBS: + return (io.grpc.stub.StreamObserver) serviceImpl.sendBlurbs( + (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_CONNECT: + return (io.grpc.stub.StreamObserver) serviceImpl.connect( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class MessagingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MessagingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Messaging"); + } + } + + private static final class MessagingFileDescriptorSupplier + extends MessagingBaseDescriptorSupplier { + MessagingFileDescriptorSupplier() {} + } + + private static final class MessagingMethodDescriptorSupplier + extends MessagingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MessagingMethodDescriptorSupplier(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 (MessagingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MessagingFileDescriptorSupplier()) + .addMethod(getCreateRoomMethod()) + .addMethod(getGetRoomMethod()) + .addMethod(getUpdateRoomMethod()) + .addMethod(getDeleteRoomMethod()) + .addMethod(getListRoomsMethod()) + .addMethod(getCreateBlurbMethod()) + .addMethod(getGetBlurbMethod()) + .addMethod(getUpdateBlurbMethod()) + .addMethod(getDeleteBlurbMethod()) + .addMethod(getListBlurbsMethod()) + .addMethod(getSearchBlurbsMethod()) + .addMethod(getStreamBlurbsMethod()) + .addMethod(getSendBlurbsMethod()) + .addMethod(getConnectMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java new file mode 100644 index 0000000000..5c96630fef --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java @@ -0,0 +1,424 @@ +package com.google.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/sequence.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SequenceServiceGrpc { + + private SequenceServiceGrpc() {} + + public static final String SERVICE_NAME = "google.showcase.v1beta1.SequenceService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSequence", + requestType = com.google.showcase.v1beta1.CreateSequenceRequest.class, + responseType = com.google.showcase.v1beta1.Sequence.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSequenceMethod() { + io.grpc.MethodDescriptor getCreateSequenceMethod; + if ((getCreateSequenceMethod = SequenceServiceGrpc.getCreateSequenceMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getCreateSequenceMethod = SequenceServiceGrpc.getCreateSequenceMethod) == null) { + SequenceServiceGrpc.getCreateSequenceMethod = getCreateSequenceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateSequenceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Sequence.getDefaultInstance())) + .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("CreateSequence")) + .build(); + } + } + } + return getCreateSequenceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSequenceReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSequenceReport", + requestType = com.google.showcase.v1beta1.GetSequenceReportRequest.class, + responseType = com.google.showcase.v1beta1.SequenceReport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSequenceReportMethod() { + io.grpc.MethodDescriptor getGetSequenceReportMethod; + if ((getGetSequenceReportMethod = SequenceServiceGrpc.getGetSequenceReportMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getGetSequenceReportMethod = SequenceServiceGrpc.getGetSequenceReportMethod) == null) { + SequenceServiceGrpc.getGetSequenceReportMethod = getGetSequenceReportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSequenceReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetSequenceReportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.SequenceReport.getDefaultInstance())) + .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("GetSequenceReport")) + .build(); + } + } + } + return getGetSequenceReportMethod; + } + + private static volatile io.grpc.MethodDescriptor getAttemptSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AttemptSequence", + requestType = com.google.showcase.v1beta1.AttemptSequenceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAttemptSequenceMethod() { + io.grpc.MethodDescriptor getAttemptSequenceMethod; + if ((getAttemptSequenceMethod = SequenceServiceGrpc.getAttemptSequenceMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getAttemptSequenceMethod = SequenceServiceGrpc.getAttemptSequenceMethod) == null) { + SequenceServiceGrpc.getAttemptSequenceMethod = getAttemptSequenceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AttemptSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.AttemptSequenceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("AttemptSequence")) + .build(); + } + } + } + return getAttemptSequenceMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SequenceServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SequenceServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceStub(channel, callOptions); + } + }; + return SequenceServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SequenceServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SequenceServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceBlockingStub(channel, callOptions); + } + }; + return SequenceServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SequenceServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SequenceServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceFutureStub(channel, callOptions); + } + }; + return SequenceServiceFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class SequenceServiceImplBase implements io.grpc.BindableService { + + /** + */ + public void createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSequenceMethod(), responseObserver); + } + + /** + */ + public void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSequenceReportMethod(), responseObserver); + } + + /** + */ + public void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAttemptSequenceMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSequenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateSequenceRequest, + com.google.showcase.v1beta1.Sequence>( + this, METHODID_CREATE_SEQUENCE))) + .addMethod( + getGetSequenceReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetSequenceReportRequest, + com.google.showcase.v1beta1.SequenceReport>( + this, METHODID_GET_SEQUENCE_REPORT))) + .addMethod( + getAttemptSequenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.AttemptSequenceRequest, + com.google.protobuf.Empty>( + this, METHODID_ATTEMPT_SEQUENCE))) + .build(); + } + } + + /** + */ + public static final class SequenceServiceStub extends io.grpc.stub.AbstractAsyncStub { + private SequenceServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SequenceServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceStub(channel, callOptions); + } + + /** + */ + public void createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class SequenceServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SequenceServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SequenceServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.showcase.v1beta1.Sequence createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSequenceMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.SequenceReport getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSequenceReportMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAttemptSequenceMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class SequenceServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private SequenceServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SequenceServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createSequence( + com.google.showcase.v1beta1.CreateSequenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getSequenceReport( + com.google.showcase.v1beta1.GetSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture attemptSequence( + com.google.showcase.v1beta1.AttemptSequenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SEQUENCE = 0; + private static final int METHODID_GET_SEQUENCE_REPORT = 1; + private static final int METHODID_ATTEMPT_SEQUENCE = 2; + + 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 SequenceServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SequenceServiceImplBase 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_SEQUENCE: + serviceImpl.createSequence((com.google.showcase.v1beta1.CreateSequenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SEQUENCE_REPORT: + serviceImpl.getSequenceReport((com.google.showcase.v1beta1.GetSequenceReportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ATTEMPT_SEQUENCE: + serviceImpl.attemptSequence((com.google.showcase.v1beta1.AttemptSequenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SequenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SequenceServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SequenceService"); + } + } + + private static final class SequenceServiceFileDescriptorSupplier + extends SequenceServiceBaseDescriptorSupplier { + SequenceServiceFileDescriptorSupplier() {} + } + + private static final class SequenceServiceMethodDescriptorSupplier + extends SequenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SequenceServiceMethodDescriptorSupplier(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 (SequenceServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SequenceServiceFileDescriptorSupplier()) + .addMethod(getCreateSequenceMethod()) + .addMethod(getGetSequenceReportMethod()) + .addMethod(getAttemptSequenceMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java new file mode 100644 index 0000000000..e238c85867 --- /dev/null +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java @@ -0,0 +1,794 @@ +package com.google.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/testing.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TestingGrpc { + + private TestingGrpc() {} + + public static final String SERVICE_NAME = "google.showcase.v1beta1.Testing"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSession", + requestType = com.google.showcase.v1beta1.CreateSessionRequest.class, + responseType = com.google.showcase.v1beta1.Session.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSessionMethod() { + io.grpc.MethodDescriptor getCreateSessionMethod; + if ((getCreateSessionMethod = TestingGrpc.getCreateSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getCreateSessionMethod = TestingGrpc.getCreateSessionMethod) == null) { + TestingGrpc.getCreateSessionMethod = getCreateSessionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Session.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("CreateSession")) + .build(); + } + } + } + return getCreateSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSession", + requestType = com.google.showcase.v1beta1.GetSessionRequest.class, + responseType = com.google.showcase.v1beta1.Session.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSessionMethod() { + io.grpc.MethodDescriptor getGetSessionMethod; + if ((getGetSessionMethod = TestingGrpc.getGetSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getGetSessionMethod = TestingGrpc.getGetSessionMethod) == null) { + TestingGrpc.getGetSessionMethod = getGetSessionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Session.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("GetSession")) + .build(); + } + } + } + return getGetSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSessionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSessions", + requestType = com.google.showcase.v1beta1.ListSessionsRequest.class, + responseType = com.google.showcase.v1beta1.ListSessionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSessionsMethod() { + io.grpc.MethodDescriptor getListSessionsMethod; + if ((getListSessionsMethod = TestingGrpc.getListSessionsMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getListSessionsMethod = TestingGrpc.getListSessionsMethod) == null) { + TestingGrpc.getListSessionsMethod = getListSessionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListSessionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ListSessions")) + .build(); + } + } + } + return getListSessionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSession", + requestType = com.google.showcase.v1beta1.DeleteSessionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSessionMethod() { + io.grpc.MethodDescriptor getDeleteSessionMethod; + if ((getDeleteSessionMethod = TestingGrpc.getDeleteSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getDeleteSessionMethod = TestingGrpc.getDeleteSessionMethod) == null) { + TestingGrpc.getDeleteSessionMethod = getDeleteSessionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("DeleteSession")) + .build(); + } + } + } + return getDeleteSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor getReportSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReportSession", + requestType = com.google.showcase.v1beta1.ReportSessionRequest.class, + responseType = com.google.showcase.v1beta1.ReportSessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getReportSessionMethod() { + io.grpc.MethodDescriptor getReportSessionMethod; + if ((getReportSessionMethod = TestingGrpc.getReportSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getReportSessionMethod = TestingGrpc.getReportSessionMethod) == null) { + TestingGrpc.getReportSessionMethod = getReportSessionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ReportSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ReportSessionResponse.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ReportSession")) + .build(); + } + } + } + return getReportSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTestsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTests", + requestType = com.google.showcase.v1beta1.ListTestsRequest.class, + responseType = com.google.showcase.v1beta1.ListTestsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTestsMethod() { + io.grpc.MethodDescriptor getListTestsMethod; + if ((getListTestsMethod = TestingGrpc.getListTestsMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getListTestsMethod = TestingGrpc.getListTestsMethod) == null) { + TestingGrpc.getListTestsMethod = getListTestsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTests")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListTestsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListTestsResponse.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ListTests")) + .build(); + } + } + } + return getListTestsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteTestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTest", + requestType = com.google.showcase.v1beta1.DeleteTestRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteTestMethod() { + io.grpc.MethodDescriptor getDeleteTestMethod; + if ((getDeleteTestMethod = TestingGrpc.getDeleteTestMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getDeleteTestMethod = TestingGrpc.getDeleteTestMethod) == null) { + TestingGrpc.getDeleteTestMethod = getDeleteTestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteTestRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("DeleteTest")) + .build(); + } + } + } + return getDeleteTestMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyTestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyTest", + requestType = com.google.showcase.v1beta1.VerifyTestRequest.class, + responseType = com.google.showcase.v1beta1.VerifyTestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyTestMethod() { + io.grpc.MethodDescriptor getVerifyTestMethod; + if ((getVerifyTestMethod = TestingGrpc.getVerifyTestMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getVerifyTestMethod = TestingGrpc.getVerifyTestMethod) == null) { + TestingGrpc.getVerifyTestMethod = getVerifyTestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyTest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.VerifyTestRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.VerifyTestResponse.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("VerifyTest")) + .build(); + } + } + } + return getVerifyTestMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TestingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TestingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingStub(channel, callOptions); + } + }; + return TestingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TestingBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TestingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingBlockingStub(channel, callOptions); + } + }; + return TestingBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TestingFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TestingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingFutureStub(channel, callOptions); + } + }; + return TestingFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class TestingImplBase implements io.grpc.BindableService { + + /** + */ + public void createSession(com.google.showcase.v1beta1.CreateSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSessionMethod(), responseObserver); + } + + /** + */ + public void getSession(com.google.showcase.v1beta1.GetSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSessionMethod(), responseObserver); + } + + /** + */ + public void listSessions(com.google.showcase.v1beta1.ListSessionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSessionsMethod(), responseObserver); + } + + /** + */ + public void deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSessionMethod(), responseObserver); + } + + /** + */ + public void reportSession(com.google.showcase.v1beta1.ReportSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportSessionMethod(), responseObserver); + } + + /** + */ + public void listTests(com.google.showcase.v1beta1.ListTestsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTestsMethod(), responseObserver); + } + + /** + */ + public void deleteTest(com.google.showcase.v1beta1.DeleteTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTestMethod(), responseObserver); + } + + /** + */ + public void verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyTestMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateSessionRequest, + com.google.showcase.v1beta1.Session>( + this, METHODID_CREATE_SESSION))) + .addMethod( + getGetSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetSessionRequest, + com.google.showcase.v1beta1.Session>( + this, METHODID_GET_SESSION))) + .addMethod( + getListSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListSessionsRequest, + com.google.showcase.v1beta1.ListSessionsResponse>( + this, METHODID_LIST_SESSIONS))) + .addMethod( + getDeleteSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteSessionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SESSION))) + .addMethod( + getReportSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ReportSessionRequest, + com.google.showcase.v1beta1.ReportSessionResponse>( + this, METHODID_REPORT_SESSION))) + .addMethod( + getListTestsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListTestsRequest, + com.google.showcase.v1beta1.ListTestsResponse>( + this, METHODID_LIST_TESTS))) + .addMethod( + getDeleteTestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteTestRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TEST))) + .addMethod( + getVerifyTestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.VerifyTestRequest, + com.google.showcase.v1beta1.VerifyTestResponse>( + this, METHODID_VERIFY_TEST))) + .build(); + } + } + + /** + */ + public static final class TestingStub extends io.grpc.stub.AbstractAsyncStub { + private TestingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TestingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingStub(channel, callOptions); + } + + /** + */ + public void createSession(com.google.showcase.v1beta1.CreateSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getSession(com.google.showcase.v1beta1.GetSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listSessions(com.google.showcase.v1beta1.ListSessionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSessionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void reportSession(com.google.showcase.v1beta1.ReportSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReportSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listTests(com.google.showcase.v1beta1.ListTestsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTestsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteTest(com.google.showcase.v1beta1.DeleteTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTestMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyTestMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class TestingBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TestingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TestingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.showcase.v1beta1.Session createSession(com.google.showcase.v1beta1.CreateSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSessionMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.Session getSession(com.google.showcase.v1beta1.GetSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSessionMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.ListSessionsResponse listSessions(com.google.showcase.v1beta1.ListSessionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSessionsMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSessionMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.ReportSessionResponse reportSession(com.google.showcase.v1beta1.ReportSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportSessionMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.ListTestsResponse listTests(com.google.showcase.v1beta1.ListTestsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTestsMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteTest(com.google.showcase.v1beta1.DeleteTestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTestMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.showcase.v1beta1.VerifyTestResponse verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyTestMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class TestingFutureStub extends io.grpc.stub.AbstractFutureStub { + private TestingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TestingFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createSession( + com.google.showcase.v1beta1.CreateSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getSession( + com.google.showcase.v1beta1.GetSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSessionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listSessions( + com.google.showcase.v1beta1.ListSessionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSessionsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteSession( + com.google.showcase.v1beta1.DeleteSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture reportSession( + com.google.showcase.v1beta1.ReportSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReportSessionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listTests( + com.google.showcase.v1beta1.ListTestsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTestsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteTest( + com.google.showcase.v1beta1.DeleteTestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTestMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture verifyTest( + com.google.showcase.v1beta1.VerifyTestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyTestMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SESSION = 0; + private static final int METHODID_GET_SESSION = 1; + private static final int METHODID_LIST_SESSIONS = 2; + private static final int METHODID_DELETE_SESSION = 3; + private static final int METHODID_REPORT_SESSION = 4; + private static final int METHODID_LIST_TESTS = 5; + private static final int METHODID_DELETE_TEST = 6; + private static final int METHODID_VERIFY_TEST = 7; + + 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 TestingImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TestingImplBase 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_SESSION: + serviceImpl.createSession((com.google.showcase.v1beta1.CreateSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SESSION: + serviceImpl.getSession((com.google.showcase.v1beta1.GetSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SESSIONS: + serviceImpl.listSessions((com.google.showcase.v1beta1.ListSessionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SESSION: + serviceImpl.deleteSession((com.google.showcase.v1beta1.DeleteSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPORT_SESSION: + serviceImpl.reportSession((com.google.showcase.v1beta1.ReportSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TESTS: + serviceImpl.listTests((com.google.showcase.v1beta1.ListTestsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TEST: + serviceImpl.deleteTest((com.google.showcase.v1beta1.DeleteTestRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_TEST: + serviceImpl.verifyTest((com.google.showcase.v1beta1.VerifyTestRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class TestingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TestingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Testing"); + } + } + + private static final class TestingFileDescriptorSupplier + extends TestingBaseDescriptorSupplier { + TestingFileDescriptorSupplier() {} + } + + private static final class TestingMethodDescriptorSupplier + extends TestingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TestingMethodDescriptorSupplier(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 (TestingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TestingFileDescriptorSupplier()) + .addMethod(getCreateSessionMethod()) + .addMethod(getGetSessionMethod()) + .addMethod(getListSessionsMethod()) + .addMethod(getDeleteSessionMethod()) + .addMethod(getReportSessionMethod()) + .addMethod(getListTestsMethod()) + .addMethod(getDeleteTestMethod()) + .addMethod(getVerifyTestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/showcase/pom.xml b/showcase/pom.xml new file mode 100644 index 0000000000..8fee74ead2 --- /dev/null +++ b/showcase/pom.xml @@ -0,0 +1,89 @@ + + + 4.0.0 + com.google.cloud + gapic-showcase-parent + pom + 0.0.1-SNAPSHOT + GAPIC Showcase Client Core Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.api + gapic-generator-java-bom + 2.12.1-SNAPSHOT + ../gapic-generator-java-bom + + + + UTF-8 + UTF-8 + github + google-cloud-showcase-parent + true + true + true + true + + + + + + com.google.api.grpc + proto-gapic-showcase-v1beta1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-gapic-showcase-v1beta1 + 0.0.1-SNAPSHOT + + + com.google.cloud + gapic-showcase + 0.0.1-SNAPSHOT + + + + junit + junit + 4.13.2 + test + + + + + + gapic-showcase + grpc-gapic-showcase-v1beta1 + proto-gapic-showcase-v1beta1 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + ${skipUnitTests} + + + + org.apache.maven.plugins + maven-failsafe-plugin + + 1C + true + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/showcase/proto-gapic-showcase-v1beta1/pom.xml b/showcase/proto-gapic-showcase-v1beta1/pom.xml new file mode 100644 index 0000000000..3202cf23bf --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/pom.xml @@ -0,0 +1,104 @@ + + 4.0.0 + com.google.api.grpc + proto-gapic-showcase-v1beta1 + 0.0.1-SNAPSHOT + proto-gapic-showcase-v1beta1 + PROTO library for proto-gapic-showcase-v1beta1 + + com.google.cloud + gapic-showcase-parent + 0.0.1-SNAPSHOT + + + + true + + + + + diff + + true + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + verify-showcase + + exec + + test + + bazelisk + + run + //showcase:verify_proto + + + + + + + + + + update + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + verify-showcase + + exec + + generate-sources + + bazel + + run + //showcase:update_proto + + + + + + + + + + + + + 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java new file mode 100644 index 0000000000..c3c458a4dc --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} + */ +public final class AttemptSequenceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptSequenceRequest) + AttemptSequenceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AttemptSequenceRequest.newBuilder() to construct. + private AttemptSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AttemptSequenceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AttemptSequenceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AttemptSequenceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptSequenceRequest.class, com.google.showcase.v1beta1.AttemptSequenceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * 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; + } + } + /** + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.AttemptSequenceRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.AttemptSequenceRequest other = (com.google.showcase.v1beta1.AttemptSequenceRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest 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.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.AttemptSequenceRequest 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.showcase.v1beta1.AttemptSequenceRequest 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.AttemptSequenceRequest) + com.google.showcase.v1beta1.AttemptSequenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptSequenceRequest.class, com.google.showcase.v1beta1.AttemptSequenceRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.AttemptSequenceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptSequenceRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.AttemptSequenceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptSequenceRequest build() { + com.google.showcase.v1beta1.AttemptSequenceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptSequenceRequest buildPartial() { + com.google.showcase.v1beta1.AttemptSequenceRequest result = new com.google.showcase.v1beta1.AttemptSequenceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.AttemptSequenceRequest) { + return mergeFrom((com.google.showcase.v1beta1.AttemptSequenceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.AttemptSequenceRequest other) { + if (other == com.google.showcase.v1beta1.AttemptSequenceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.AttemptSequenceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.AttemptSequenceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + onChanged(); + return this; + } + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * 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; + 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.showcase.v1beta1.AttemptSequenceRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptSequenceRequest) + private static final com.google.showcase.v1beta1.AttemptSequenceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptSequenceRequest(); + } + + public static com.google.showcase.v1beta1.AttemptSequenceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttemptSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AttemptSequenceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.AttemptSequenceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..84a1590fb0 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface AttemptSequenceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java new file mode 100644 index 0000000000..3e4863a3be --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java @@ -0,0 +1,1272 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for Block method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.BlockRequest} + */ +public final class BlockRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.BlockRequest) + BlockRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use BlockRequest.newBuilder() to construct. + private BlockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlockRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlockRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlockRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (responseDelay_ != null) { + subBuilder = responseDelay_.toBuilder(); + } + responseDelay_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseDelay_); + responseDelay_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (responseCase_ == 2) { + subBuilder = ((com.google.rpc.Status) response_).toBuilder(); + } + response_ = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.rpc.Status) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 2; + break; + } + case 26: { + com.google.showcase.v1beta1.BlockResponse.Builder subBuilder = null; + if (responseCase_ == 3) { + subBuilder = ((com.google.showcase.v1beta1.BlockResponse) response_).toBuilder(); + } + response_ = + input.readMessage(com.google.showcase.v1beta1.BlockResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.showcase.v1beta1.BlockResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.BlockRequest.class, com.google.showcase.v1beta1.BlockRequest.Builder.class); + } + + private int responseCase_ = 0; + private java.lang.Object response_; + public enum ResponseCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ERROR(2), + SUCCESS(3), + RESPONSE_NOT_SET(0); + private final int value; + private ResponseCase(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 ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 2: return ERROR; + case 3: return SUCCESS; + case 0: return RESPONSE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public static final int RESPONSE_DELAY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration responseDelay_; + /** + *
+   * The amount of time to block before returning a response.
+   * 
+ * + * .google.protobuf.Duration response_delay = 1; + * @return Whether the responseDelay field is set. + */ + @java.lang.Override + public boolean hasResponseDelay() { + return responseDelay_ != null; + } + /** + *
+   * The amount of time to block before returning a response.
+   * 
+ * + * .google.protobuf.Duration response_delay = 1; + * @return The responseDelay. + */ + @java.lang.Override + public com.google.protobuf.Duration getResponseDelay() { + return responseDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + } + /** + *
+   * The amount of time to block before returning a response.
+   * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder() { + return getResponseDelay(); + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return responseCase_ == 2; + } + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + public static final int SUCCESS_FIELD_NUMBER = 3; + /** + *
+   * The response to be returned that will signify successful method call.
+   * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + * @return Whether the success field is set. + */ + @java.lang.Override + public boolean hasSuccess() { + return responseCase_ == 3; + } + /** + *
+   * The response to be returned that will signify successful method call.
+   * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + * @return The success. + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponse getSuccess() { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.BlockResponse) response_; + } + return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } + /** + *
+   * The response to be returned that will signify successful method call.
+   * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder() { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.BlockResponse) response_; + } + return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (responseDelay_ != null) { + output.writeMessage(1, getResponseDelay()); + } + if (responseCase_ == 2) { + output.writeMessage(2, (com.google.rpc.Status) response_); + } + if (responseCase_ == 3) { + output.writeMessage(3, (com.google.showcase.v1beta1.BlockResponse) response_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseDelay_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponseDelay()); + } + if (responseCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.rpc.Status) response_); + } + if (responseCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.showcase.v1beta1.BlockResponse) response_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.BlockRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.BlockRequest other = (com.google.showcase.v1beta1.BlockRequest) obj; + + if (hasResponseDelay() != other.hasResponseDelay()) return false; + if (hasResponseDelay()) { + if (!getResponseDelay() + .equals(other.getResponseDelay())) return false; + } + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 3: + if (!getSuccess() + .equals(other.getSuccess())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponseDelay()) { + hash = (37 * hash) + RESPONSE_DELAY_FIELD_NUMBER; + hash = (53 * hash) + getResponseDelay().hashCode(); + } + switch (responseCase_) { + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 3: + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + getSuccess().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.BlockRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.BlockRequest 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.showcase.v1beta1.BlockRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.BlockRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.BlockRequest 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.showcase.v1beta1.BlockRequest 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 request for Block method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.BlockRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.BlockRequest) + com.google.showcase.v1beta1.BlockRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.BlockRequest.class, com.google.showcase.v1beta1.BlockRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.BlockRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responseDelayBuilder_ == null) { + responseDelay_ = null; + } else { + responseDelay_ = null; + responseDelayBuilder_ = null; + } + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.BlockRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockRequest build() { + com.google.showcase.v1beta1.BlockRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockRequest buildPartial() { + com.google.showcase.v1beta1.BlockRequest result = new com.google.showcase.v1beta1.BlockRequest(this); + if (responseDelayBuilder_ == null) { + result.responseDelay_ = responseDelay_; + } else { + result.responseDelay_ = responseDelayBuilder_.build(); + } + if (responseCase_ == 2) { + if (errorBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = errorBuilder_.build(); + } + } + if (responseCase_ == 3) { + if (successBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = successBuilder_.build(); + } + } + result.responseCase_ = responseCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.BlockRequest) { + return mergeFrom((com.google.showcase.v1beta1.BlockRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.BlockRequest other) { + if (other == com.google.showcase.v1beta1.BlockRequest.getDefaultInstance()) return this; + if (other.hasResponseDelay()) { + mergeResponseDelay(other.getResponseDelay()); + } + switch (other.getResponseCase()) { + case ERROR: { + mergeError(other.getError()); + break; + } + case SUCCESS: { + mergeSuccess(other.getSuccess()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.BlockRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.BlockRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int responseCase_ = 0; + private java.lang.Object response_; + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.Duration responseDelay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> responseDelayBuilder_; + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + * @return Whether the responseDelay field is set. + */ + public boolean hasResponseDelay() { + return responseDelayBuilder_ != null || responseDelay_ != null; + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + * @return The responseDelay. + */ + public com.google.protobuf.Duration getResponseDelay() { + if (responseDelayBuilder_ == null) { + return responseDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + } else { + return responseDelayBuilder_.getMessage(); + } + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + public Builder setResponseDelay(com.google.protobuf.Duration value) { + if (responseDelayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseDelay_ = value; + onChanged(); + } else { + responseDelayBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + public Builder setResponseDelay( + com.google.protobuf.Duration.Builder builderForValue) { + if (responseDelayBuilder_ == null) { + responseDelay_ = builderForValue.build(); + onChanged(); + } else { + responseDelayBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + public Builder mergeResponseDelay(com.google.protobuf.Duration value) { + if (responseDelayBuilder_ == null) { + if (responseDelay_ != null) { + responseDelay_ = + com.google.protobuf.Duration.newBuilder(responseDelay_).mergeFrom(value).buildPartial(); + } else { + responseDelay_ = value; + } + onChanged(); + } else { + responseDelayBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + public Builder clearResponseDelay() { + if (responseDelayBuilder_ == null) { + responseDelay_ = null; + onChanged(); + } else { + responseDelay_ = null; + responseDelayBuilder_ = null; + } + + return this; + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + public com.google.protobuf.Duration.Builder getResponseDelayBuilder() { + + onChanged(); + return getResponseDelayFieldBuilder().getBuilder(); + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + public com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder() { + if (responseDelayBuilder_ != null) { + return responseDelayBuilder_.getMessageOrBuilder(); + } else { + return responseDelay_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + } + } + /** + *
+     * The amount of time to block before returning a response.
+     * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getResponseDelayFieldBuilder() { + if (responseDelayBuilder_ == null) { + responseDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getResponseDelay(), + getParentForChildren(), + isClean()); + responseDelay_ = null; + } + return responseDelayBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return responseCase_ == 2; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (responseCase_ == 2) { + return errorBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (responseCase_ == 2 && + response_ != com.google.rpc.Status.getDefaultInstance()) { + response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 2) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if ((responseCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(responseCase_ == 2)) { + response_ = com.google.rpc.Status.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.BlockResponse, com.google.showcase.v1beta1.BlockResponse.Builder, com.google.showcase.v1beta1.BlockResponseOrBuilder> successBuilder_; + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + * @return Whether the success field is set. + */ + @java.lang.Override + public boolean hasSuccess() { + return responseCase_ == 3; + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + * @return The success. + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponse getSuccess() { + if (successBuilder_ == null) { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.BlockResponse) response_; + } + return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } else { + if (responseCase_ == 3) { + return successBuilder_.getMessage(); + } + return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + public Builder setSuccess(com.google.showcase.v1beta1.BlockResponse value) { + if (successBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + successBuilder_.setMessage(value); + } + responseCase_ = 3; + return this; + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + public Builder setSuccess( + com.google.showcase.v1beta1.BlockResponse.Builder builderForValue) { + if (successBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + successBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 3; + return this; + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + public Builder mergeSuccess(com.google.showcase.v1beta1.BlockResponse value) { + if (successBuilder_ == null) { + if (responseCase_ == 3 && + response_ != com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()) { + response_ = com.google.showcase.v1beta1.BlockResponse.newBuilder((com.google.showcase.v1beta1.BlockResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 3) { + successBuilder_.mergeFrom(value); + } else { + successBuilder_.setMessage(value); + } + } + responseCase_ = 3; + return this; + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + public Builder clearSuccess() { + if (successBuilder_ == null) { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + } + successBuilder_.clear(); + } + return this; + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + public com.google.showcase.v1beta1.BlockResponse.Builder getSuccessBuilder() { + return getSuccessFieldBuilder().getBuilder(); + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder() { + if ((responseCase_ == 3) && (successBuilder_ != null)) { + return successBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.BlockResponse) response_; + } + return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } + } + /** + *
+     * The response to be returned that will signify successful method call.
+     * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.BlockResponse, com.google.showcase.v1beta1.BlockResponse.Builder, com.google.showcase.v1beta1.BlockResponseOrBuilder> + getSuccessFieldBuilder() { + if (successBuilder_ == null) { + if (!(responseCase_ == 3)) { + response_ = com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } + successBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.BlockResponse, com.google.showcase.v1beta1.BlockResponse.Builder, com.google.showcase.v1beta1.BlockResponseOrBuilder>( + (com.google.showcase.v1beta1.BlockResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 3; + onChanged();; + return successBuilder_; + } + @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.showcase.v1beta1.BlockRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.BlockRequest) + private static final com.google.showcase.v1beta1.BlockRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.BlockRequest(); + } + + public static com.google.showcase.v1beta1.BlockRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java new file mode 100644 index 0000000000..81cce93799 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface BlockRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.BlockRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The amount of time to block before returning a response.
+   * 
+ * + * .google.protobuf.Duration response_delay = 1; + * @return Whether the responseDelay field is set. + */ + boolean hasResponseDelay(); + /** + *
+   * The amount of time to block before returning a response.
+   * 
+ * + * .google.protobuf.Duration response_delay = 1; + * @return The responseDelay. + */ + com.google.protobuf.Duration getResponseDelay(); + /** + *
+   * The amount of time to block before returning a response.
+   * 
+ * + * .google.protobuf.Duration response_delay = 1; + */ + com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder(); + + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + com.google.rpc.Status getError(); + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + *
+   * The response to be returned that will signify successful method call.
+   * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + * @return Whether the success field is set. + */ + boolean hasSuccess(); + /** + *
+   * The response to be returned that will signify successful method call.
+   * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + * @return The success. + */ + com.google.showcase.v1beta1.BlockResponse getSuccess(); + /** + *
+   * The response to be returned that will signify successful method call.
+   * 
+ * + * .google.showcase.v1beta1.BlockResponse success = 3; + */ + com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder(); + + public com.google.showcase.v1beta1.BlockRequest.ResponseCase getResponseCase(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java new file mode 100644 index 0000000000..880c46c04f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java @@ -0,0 +1,602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response for Block method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.BlockResponse} + */ +public final class BlockResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.BlockResponse) + BlockResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use BlockResponse.newBuilder() to construct. + private BlockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlockResponse() { + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlockResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlockResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.BlockResponse.class, com.google.showcase.v1beta1.BlockResponse.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private volatile java.lang.Object content_; + /** + *
+   * This content can contain anything, the server will not depend on a value
+   * here.
+   * 
+ * + * string content = 1; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
+   * This content can contain anything, the server will not depend on a value
+   * here.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = 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(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.BlockResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.BlockResponse other = (com.google.showcase.v1beta1.BlockResponse) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.BlockResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.BlockResponse 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.showcase.v1beta1.BlockResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.BlockResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.BlockResponse 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.showcase.v1beta1.BlockResponse 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 response for Block method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.BlockResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.BlockResponse) + com.google.showcase.v1beta1.BlockResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.BlockResponse.class, com.google.showcase.v1beta1.BlockResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.BlockResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponse build() { + com.google.showcase.v1beta1.BlockResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponse buildPartial() { + com.google.showcase.v1beta1.BlockResponse result = new com.google.showcase.v1beta1.BlockResponse(this); + result.content_ = content_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.BlockResponse) { + return mergeFrom((com.google.showcase.v1beta1.BlockResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.BlockResponse other) { + if (other == com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.BlockResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.BlockResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + *
+     * This content can contain anything, the server will not depend on a value
+     * here.
+     * 
+ * + * string content = 1; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This content can contain anything, the server will not depend on a value
+     * here.
+     * 
+ * + * string content = 1; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This content can contain anything, the server will not depend on a value
+     * here.
+     * 
+ * + * string content = 1; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * This content can contain anything, the server will not depend on a value
+     * here.
+     * 
+ * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + *
+     * This content can contain anything, the server will not depend on a value
+     * here.
+     * 
+ * + * string content = 1; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.BlockResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.BlockResponse) + private static final com.google.showcase.v1beta1.BlockResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.BlockResponse(); + } + + public static com.google.showcase.v1beta1.BlockResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.BlockResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java new file mode 100644 index 0000000000..4730394a4f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface BlockResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.BlockResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This content can contain anything, the server will not depend on a value
+   * here.
+   * 
+ * + * string content = 1; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * This content can contain anything, the server will not depend on a value
+   * here.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java new file mode 100644 index 0000000000..8417d72fde --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java @@ -0,0 +1,2177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * This protocol buffer message represents a blurb sent to a chat room or
+ * posted on a user profile.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Blurb} + */ +public final class Blurb extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Blurb) + BlurbOrBuilder { +private static final long serialVersionUID = 0L; + // Use Blurb.newBuilder() to construct. + private Blurb(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Blurb() { + name_ = ""; + user_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Blurb(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blurb( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + user_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 3; + content_ = s; + break; + } + case 34: { + content_ = input.readBytes(); + contentCase_ = 4; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + legacyIdCase_ = 7; + legacyId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + legacyIdCase_ = 8; + legacyId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Blurb.class, com.google.showcase.v1beta1.Blurb.Builder.class); + } + + private int contentCase_ = 0; + private java.lang.Object content_; + public enum ContentCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(3), + IMAGE(4), + CONTENT_NOT_SET(0); + private final int value; + private ContentCase(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 ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 3: return TEXT; + case 4: return IMAGE; + case 0: return CONTENT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + private int legacyIdCase_ = 0; + private java.lang.Object legacyId_; + public enum LegacyIdCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LEGACY_ROOM_ID(7), + LEGACY_USER_ID(8), + LEGACYID_NOT_SET(0); + private final int value; + private LegacyIdCase(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 LegacyIdCase valueOf(int value) { + return forNumber(value); + } + + public static LegacyIdCase forNumber(int value) { + switch (value) { + case 7: return LEGACY_ROOM_ID; + case 8: return LEGACY_USER_ID; + case 0: return LEGACYID_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public LegacyIdCase + getLegacyIdCase() { + return LegacyIdCase.forNumber( + legacyIdCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 2; + private volatile java.lang.Object user_; + /** + *
+   * The resource name of the blurb's author.
+   * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @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; + } + } + /** + *
+   * The resource name of the blurb's author.
+   * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @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 TEXT_FIELD_NUMBER = 3; + /** + *
+   * The textual content of this blurb.
+   * 
+ * + * string text = 3; + * @return Whether the text field is set. + */ + public boolean hasText() { + return contentCase_ == 3; + } + /** + *
+   * The textual content of this blurb.
+   * 
+ * + * string text = 3; + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + 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(); + if (contentCase_ == 3) { + content_ = s; + } + return s; + } + } + /** + *
+   * The textual content of this blurb.
+   * 
+ * + * string text = 3; + * @return The bytes for text. + */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 3) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_FIELD_NUMBER = 4; + /** + *
+   * The image content of this blurb.
+   * 
+ * + * bytes image = 4; + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return contentCase_ == 4; + } + /** + *
+   * The image content of this blurb.
+   * 
+ * + * bytes image = 4; + * @return The image. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImage() { + if (contentCase_ == 4) { + return (com.google.protobuf.ByteString) content_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * The timestamp at which the blurb was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * The timestamp at which the blurb was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * The timestamp at which the blurb was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * The latest timestamp at which the blurb was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * The latest timestamp at which the blurb was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * The latest timestamp at which the blurb was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LEGACY_ROOM_ID_FIELD_NUMBER = 7; + /** + *
+   * The legacy id of the room. This field is used to signal
+   * the use of the compound resource pattern
+   * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+   * 
+ * + * string legacy_room_id = 7; + * @return Whether the legacyRoomId field is set. + */ + public boolean hasLegacyRoomId() { + return legacyIdCase_ == 7; + } + /** + *
+   * The legacy id of the room. This field is used to signal
+   * the use of the compound resource pattern
+   * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+   * 
+ * + * string legacy_room_id = 7; + * @return The legacyRoomId. + */ + public java.lang.String getLegacyRoomId() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 7) { + ref = legacyId_; + } + 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(); + if (legacyIdCase_ == 7) { + legacyId_ = s; + } + return s; + } + } + /** + *
+   * The legacy id of the room. This field is used to signal
+   * the use of the compound resource pattern
+   * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+   * 
+ * + * string legacy_room_id = 7; + * @return The bytes for legacyRoomId. + */ + public com.google.protobuf.ByteString + getLegacyRoomIdBytes() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 7) { + ref = legacyId_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (legacyIdCase_ == 7) { + legacyId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEGACY_USER_ID_FIELD_NUMBER = 8; + /** + *
+   * The legacy id of the user. This field is used to signal
+   * the use of the compound resource pattern
+   * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+   * 
+ * + * string legacy_user_id = 8; + * @return Whether the legacyUserId field is set. + */ + public boolean hasLegacyUserId() { + return legacyIdCase_ == 8; + } + /** + *
+   * The legacy id of the user. This field is used to signal
+   * the use of the compound resource pattern
+   * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+   * 
+ * + * string legacy_user_id = 8; + * @return The legacyUserId. + */ + public java.lang.String getLegacyUserId() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 8) { + ref = legacyId_; + } + 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(); + if (legacyIdCase_ == 8) { + legacyId_ = s; + } + return s; + } + } + /** + *
+   * The legacy id of the user. This field is used to signal
+   * the use of the compound resource pattern
+   * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+   * 
+ * + * string legacy_user_id = 8; + * @return The bytes for legacyUserId. + */ + public com.google.protobuf.ByteString + getLegacyUserIdBytes() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 8) { + ref = legacyId_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (legacyIdCase_ == 8) { + legacyId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, user_); + } + if (contentCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); + } + if (contentCase_ == 4) { + output.writeBytes( + 4, (com.google.protobuf.ByteString) content_); + } + if (createTime_ != null) { + output.writeMessage(5, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } + if (legacyIdCase_ == 7) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, legacyId_); + } + if (legacyIdCase_ == 8) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, legacyId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, user_); + } + if (contentCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); + } + if (contentCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 4, (com.google.protobuf.ByteString) content_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); + } + if (legacyIdCase_ == 7) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, legacyId_); + } + if (legacyIdCase_ == 8) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, legacyId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Blurb)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Blurb other = (com.google.showcase.v1beta1.Blurb) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUser() + .equals(other.getUser())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 3: + if (!getText() + .equals(other.getText())) return false; + break; + case 4: + if (!getImage() + .equals(other.getImage())) return false; + break; + case 0: + default: + } + if (!getLegacyIdCase().equals(other.getLegacyIdCase())) return false; + switch (legacyIdCase_) { + case 7: + if (!getLegacyRoomId() + .equals(other.getLegacyRoomId())) return false; + break; + case 8: + if (!getLegacyUserId() + .equals(other.getLegacyUserId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + switch (contentCase_) { + case 3: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 4: + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + break; + case 0: + default: + } + switch (legacyIdCase_) { + case 7: + hash = (37 * hash) + LEGACY_ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + getLegacyRoomId().hashCode(); + break; + case 8: + hash = (37 * hash) + LEGACY_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getLegacyUserId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Blurb parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Blurb parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Blurb parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Blurb parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Blurb parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Blurb parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Blurb parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Blurb 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.showcase.v1beta1.Blurb parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Blurb parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Blurb parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Blurb 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.showcase.v1beta1.Blurb 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; + } + /** + *
+   * This protocol buffer message represents a blurb sent to a chat room or
+   * posted on a user profile.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Blurb} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Blurb) + com.google.showcase.v1beta1.BlurbOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Blurb.class, com.google.showcase.v1beta1.Blurb.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Blurb.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + user_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + contentCase_ = 0; + content_ = null; + legacyIdCase_ = 0; + legacyId_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Blurb build() { + com.google.showcase.v1beta1.Blurb result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Blurb buildPartial() { + com.google.showcase.v1beta1.Blurb result = new com.google.showcase.v1beta1.Blurb(this); + result.name_ = name_; + result.user_ = user_; + if (contentCase_ == 3) { + result.content_ = content_; + } + if (contentCase_ == 4) { + result.content_ = content_; + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (legacyIdCase_ == 7) { + result.legacyId_ = legacyId_; + } + if (legacyIdCase_ == 8) { + result.legacyId_ = legacyId_; + } + result.contentCase_ = contentCase_; + result.legacyIdCase_ = legacyIdCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Blurb) { + return mergeFrom((com.google.showcase.v1beta1.Blurb)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Blurb other) { + if (other == com.google.showcase.v1beta1.Blurb.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getContentCase()) { + case TEXT: { + contentCase_ = 3; + content_ = other.content_; + onChanged(); + break; + } + case IMAGE: { + setImage(other.getImage()); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + switch (other.getLegacyIdCase()) { + case LEGACY_ROOM_ID: { + legacyIdCase_ = 7; + legacyId_ = other.legacyId_; + onChanged(); + break; + } + case LEGACY_USER_ID: { + legacyIdCase_ = 8; + legacyId_ = other.legacyId_; + onChanged(); + break; + } + case LEGACYID_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Blurb parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Blurb) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int contentCase_ = 0; + private java.lang.Object content_; + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + private int legacyIdCase_ = 0; + private java.lang.Object legacyId_; + public LegacyIdCase + getLegacyIdCase() { + return LegacyIdCase.forNumber( + legacyIdCase_); + } + + public Builder clearLegacyId() { + legacyIdCase_ = 0; + legacyId_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + *
+     * The resource name of the blurb's author.
+     * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @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; + } + } + /** + *
+     * The resource name of the blurb's author.
+     * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @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; + } + } + /** + *
+     * The resource name of the blurb's author.
+     * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the blurb's author.
+     * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearUser() { + + user_ = getDefaultInstance().getUser(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the blurb's author.
+     * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @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; + onChanged(); + return this; + } + + /** + *
+     * The textual content of this blurb.
+     * 
+ * + * string text = 3; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return contentCase_ == 3; + } + /** + *
+     * The textual content of this blurb.
+     * 
+ * + * string text = 3; + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 3) { + content_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The textual content of this blurb.
+     * 
+ * + * string text = 3; + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 3) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The textual content of this blurb.
+     * 
+ * + * string text = 3; + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentCase_ = 3; + content_ = value; + onChanged(); + return this; + } + /** + *
+     * The textual content of this blurb.
+     * 
+ * + * string text = 3; + * @return This builder for chaining. + */ + public Builder clearText() { + if (contentCase_ == 3) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The textual content of this blurb.
+     * 
+ * + * string text = 3; + * @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); + contentCase_ = 3; + content_ = value; + onChanged(); + return this; + } + + /** + *
+     * The image content of this blurb.
+     * 
+ * + * bytes image = 4; + * @return Whether the image field is set. + */ + public boolean hasImage() { + return contentCase_ == 4; + } + /** + *
+     * The image content of this blurb.
+     * 
+ * + * bytes image = 4; + * @return The image. + */ + public com.google.protobuf.ByteString getImage() { + if (contentCase_ == 4) { + return (com.google.protobuf.ByteString) content_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * The image content of this blurb.
+     * 
+ * + * bytes image = 4; + * @param value The image to set. + * @return This builder for chaining. + */ + public Builder setImage(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + contentCase_ = 4; + content_ = value; + onChanged(); + return this; + } + /** + *
+     * The image content of this blurb.
+     * 
+ * + * bytes image = 4; + * @return This builder for chaining. + */ + public Builder clearImage() { + if (contentCase_ == 4) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * The timestamp at which the blurb was created.
+     * 
+ * + * .google.protobuf.Timestamp create_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> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * The latest timestamp at which the blurb was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_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> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + /** + *
+     * The legacy id of the room. This field is used to signal
+     * the use of the compound resource pattern
+     * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+     * 
+ * + * string legacy_room_id = 7; + * @return Whether the legacyRoomId field is set. + */ + @java.lang.Override + public boolean hasLegacyRoomId() { + return legacyIdCase_ == 7; + } + /** + *
+     * The legacy id of the room. This field is used to signal
+     * the use of the compound resource pattern
+     * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+     * 
+ * + * string legacy_room_id = 7; + * @return The legacyRoomId. + */ + @java.lang.Override + public java.lang.String getLegacyRoomId() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 7) { + ref = legacyId_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (legacyIdCase_ == 7) { + legacyId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The legacy id of the room. This field is used to signal
+     * the use of the compound resource pattern
+     * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+     * 
+ * + * string legacy_room_id = 7; + * @return The bytes for legacyRoomId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLegacyRoomIdBytes() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 7) { + ref = legacyId_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (legacyIdCase_ == 7) { + legacyId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The legacy id of the room. This field is used to signal
+     * the use of the compound resource pattern
+     * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+     * 
+ * + * string legacy_room_id = 7; + * @param value The legacyRoomId to set. + * @return This builder for chaining. + */ + public Builder setLegacyRoomId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + legacyIdCase_ = 7; + legacyId_ = value; + onChanged(); + return this; + } + /** + *
+     * The legacy id of the room. This field is used to signal
+     * the use of the compound resource pattern
+     * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+     * 
+ * + * string legacy_room_id = 7; + * @return This builder for chaining. + */ + public Builder clearLegacyRoomId() { + if (legacyIdCase_ == 7) { + legacyIdCase_ = 0; + legacyId_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The legacy id of the room. This field is used to signal
+     * the use of the compound resource pattern
+     * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+     * 
+ * + * string legacy_room_id = 7; + * @param value The bytes for legacyRoomId to set. + * @return This builder for chaining. + */ + public Builder setLegacyRoomIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + legacyIdCase_ = 7; + legacyId_ = value; + onChanged(); + return this; + } + + /** + *
+     * The legacy id of the user. This field is used to signal
+     * the use of the compound resource pattern
+     * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+     * 
+ * + * string legacy_user_id = 8; + * @return Whether the legacyUserId field is set. + */ + @java.lang.Override + public boolean hasLegacyUserId() { + return legacyIdCase_ == 8; + } + /** + *
+     * The legacy id of the user. This field is used to signal
+     * the use of the compound resource pattern
+     * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+     * 
+ * + * string legacy_user_id = 8; + * @return The legacyUserId. + */ + @java.lang.Override + public java.lang.String getLegacyUserId() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 8) { + ref = legacyId_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (legacyIdCase_ == 8) { + legacyId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The legacy id of the user. This field is used to signal
+     * the use of the compound resource pattern
+     * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+     * 
+ * + * string legacy_user_id = 8; + * @return The bytes for legacyUserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLegacyUserIdBytes() { + java.lang.Object ref = ""; + if (legacyIdCase_ == 8) { + ref = legacyId_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (legacyIdCase_ == 8) { + legacyId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The legacy id of the user. This field is used to signal
+     * the use of the compound resource pattern
+     * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+     * 
+ * + * string legacy_user_id = 8; + * @param value The legacyUserId to set. + * @return This builder for chaining. + */ + public Builder setLegacyUserId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + legacyIdCase_ = 8; + legacyId_ = value; + onChanged(); + return this; + } + /** + *
+     * The legacy id of the user. This field is used to signal
+     * the use of the compound resource pattern
+     * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+     * 
+ * + * string legacy_user_id = 8; + * @return This builder for chaining. + */ + public Builder clearLegacyUserId() { + if (legacyIdCase_ == 8) { + legacyIdCase_ = 0; + legacyId_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The legacy id of the user. This field is used to signal
+     * the use of the compound resource pattern
+     * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+     * 
+ * + * string legacy_user_id = 8; + * @param value The bytes for legacyUserId to set. + * @return This builder for chaining. + */ + public Builder setLegacyUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + legacyIdCase_ = 8; + legacyId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Blurb) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Blurb) + private static final com.google.showcase.v1beta1.Blurb DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Blurb(); + } + + public static com.google.showcase.v1beta1.Blurb getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blurb parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blurb(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java new file mode 100644 index 0000000000..32f3ed2380 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java @@ -0,0 +1,473 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 BlurbName implements ResourceName { + private static final PathTemplate USER_LEGACY_USER_BLURB = + PathTemplate.createWithoutUrlEncoding( + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}"); + private static final PathTemplate USER_BLURB = + PathTemplate.createWithoutUrlEncoding("users/{user}/profile/blurbs/{blurb}"); + private static final PathTemplate ROOM_BLURB = + PathTemplate.createWithoutUrlEncoding("rooms/{room}/blurbs/{blurb}"); + private static final PathTemplate ROOM_LEGACY_ROOM_BLURB = + PathTemplate.createWithoutUrlEncoding("rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String user; + private final String legacyUser; + private final String blurb; + private final String room; + private final String legacyRoom; + + @Deprecated + protected BlurbName() { + user = null; + legacyUser = null; + blurb = null; + room = null; + legacyRoom = null; + } + + private BlurbName(Builder builder) { + user = Preconditions.checkNotNull(builder.getUser()); + legacyUser = Preconditions.checkNotNull(builder.getLegacyUser()); + blurb = Preconditions.checkNotNull(builder.getBlurb()); + room = null; + legacyRoom = null; + pathTemplate = USER_LEGACY_USER_BLURB; + } + + private BlurbName(UserBlurbBuilder builder) { + user = Preconditions.checkNotNull(builder.getUser()); + blurb = Preconditions.checkNotNull(builder.getBlurb()); + legacyUser = null; + room = null; + legacyRoom = null; + pathTemplate = USER_BLURB; + } + + private BlurbName(RoomBlurbBuilder builder) { + room = Preconditions.checkNotNull(builder.getRoom()); + blurb = Preconditions.checkNotNull(builder.getBlurb()); + user = null; + legacyUser = null; + legacyRoom = null; + pathTemplate = ROOM_BLURB; + } + + private BlurbName(RoomLegacyRoomBlurbBuilder builder) { + room = Preconditions.checkNotNull(builder.getRoom()); + legacyRoom = Preconditions.checkNotNull(builder.getLegacyRoom()); + blurb = Preconditions.checkNotNull(builder.getBlurb()); + user = null; + legacyUser = null; + pathTemplate = ROOM_LEGACY_ROOM_BLURB; + } + + public String getUser() { + return user; + } + + public String getLegacyUser() { + return legacyUser; + } + + public String getBlurb() { + return blurb; + } + + public String getRoom() { + return room; + } + + public String getLegacyRoom() { + return legacyRoom; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newUserLegacyUserBlurbBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static UserBlurbBuilder newUserBlurbBuilder() { + return new UserBlurbBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static RoomBlurbBuilder newRoomBlurbBuilder() { + return new RoomBlurbBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static RoomLegacyRoomBlurbBuilder newRoomLegacyRoomBlurbBuilder() { + return new RoomLegacyRoomBlurbBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BlurbName of(String user, String legacyUser, String blurb) { + return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BlurbName ofUserLegacyUserBlurbName(String user, String legacyUser, String blurb) { + return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BlurbName ofUserBlurbName(String user, String blurb) { + return newUserBlurbBuilder().setUser(user).setBlurb(blurb).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BlurbName ofRoomBlurbName(String room, String blurb) { + return newRoomBlurbBuilder().setRoom(room).setBlurb(blurb).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BlurbName ofRoomLegacyRoomBlurbName(String room, String legacyRoom, String blurb) { + return newRoomLegacyRoomBlurbBuilder() + .setRoom(room) + .setLegacyRoom(legacyRoom) + .setBlurb(blurb) + .build(); + } + + public static String format(String user, String legacyUser, String blurb) { + return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatUserLegacyUserBlurbName(String user, String legacyUser, String blurb) { + return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatUserBlurbName(String user, String blurb) { + return newUserBlurbBuilder().setUser(user).setBlurb(blurb).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatRoomBlurbName(String room, String blurb) { + return newRoomBlurbBuilder().setRoom(room).setBlurb(blurb).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatRoomLegacyRoomBlurbName(String room, String legacyRoom, String blurb) { + return newRoomLegacyRoomBlurbBuilder() + .setRoom(room) + .setLegacyRoom(legacyRoom) + .setBlurb(blurb) + .build() + .toString(); + } + + public static BlurbName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (USER_LEGACY_USER_BLURB.matches(formattedString)) { + Map matchMap = USER_LEGACY_USER_BLURB.match(formattedString); + return ofUserLegacyUserBlurbName( + matchMap.get("user"), matchMap.get("legacy_user"), matchMap.get("blurb")); + } else if (USER_BLURB.matches(formattedString)) { + Map matchMap = USER_BLURB.match(formattedString); + return ofUserBlurbName(matchMap.get("user"), matchMap.get("blurb")); + } else if (ROOM_BLURB.matches(formattedString)) { + Map matchMap = ROOM_BLURB.match(formattedString); + return ofRoomBlurbName(matchMap.get("room"), matchMap.get("blurb")); + } else if (ROOM_LEGACY_ROOM_BLURB.matches(formattedString)) { + Map matchMap = ROOM_LEGACY_ROOM_BLURB.match(formattedString); + return ofRoomLegacyRoomBlurbName( + matchMap.get("room"), matchMap.get("legacy_room"), matchMap.get("blurb")); + } + throw new ValidationException("BlurbName.parse: formattedString not in valid format"); + } + + 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 (BlurbName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return USER_LEGACY_USER_BLURB.matches(formattedString) + || USER_BLURB.matches(formattedString) + || ROOM_BLURB.matches(formattedString) + || ROOM_LEGACY_ROOM_BLURB.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (user != null) { + fieldMapBuilder.put("user", user); + } + if (legacyUser != null) { + fieldMapBuilder.put("legacy_user", legacyUser); + } + if (blurb != null) { + fieldMapBuilder.put("blurb", blurb); + } + if (room != null) { + fieldMapBuilder.put("room", room); + } + if (legacyRoom != null) { + fieldMapBuilder.put("legacy_room", legacyRoom); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + BlurbName that = ((BlurbName) o); + return Objects.equals(this.user, that.user) + && Objects.equals(this.legacyUser, that.legacyUser) + && Objects.equals(this.blurb, that.blurb) + && Objects.equals(this.room, that.room) + && Objects.equals(this.legacyRoom, that.legacyRoom); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(user); + h *= 1000003; + h ^= Objects.hashCode(legacyUser); + h *= 1000003; + h ^= Objects.hashCode(blurb); + h *= 1000003; + h ^= Objects.hashCode(room); + h *= 1000003; + h ^= Objects.hashCode(legacyRoom); + return h; + } + + /** Builder for users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}. */ + public static class Builder { + private String user; + private String legacyUser; + private String blurb; + + protected Builder() {} + + public String getUser() { + return user; + } + + public String getLegacyUser() { + return legacyUser; + } + + public String getBlurb() { + return blurb; + } + + public Builder setUser(String user) { + this.user = user; + return this; + } + + public Builder setLegacyUser(String legacyUser) { + this.legacyUser = legacyUser; + return this; + } + + public Builder setBlurb(String blurb) { + this.blurb = blurb; + return this; + } + + private Builder(BlurbName blurbName) { + Preconditions.checkArgument( + Objects.equals(blurbName.pathTemplate, USER_LEGACY_USER_BLURB), + "toBuilder is only supported when BlurbName has the pattern of users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}"); + this.user = blurbName.user; + this.legacyUser = blurbName.legacyUser; + this.blurb = blurbName.blurb; + } + + public BlurbName build() { + return new BlurbName(this); + } + } + + /** Builder for users/{user}/profile/blurbs/{blurb}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class UserBlurbBuilder { + private String user; + private String blurb; + + protected UserBlurbBuilder() {} + + public String getUser() { + return user; + } + + public String getBlurb() { + return blurb; + } + + public UserBlurbBuilder setUser(String user) { + this.user = user; + return this; + } + + public UserBlurbBuilder setBlurb(String blurb) { + this.blurb = blurb; + return this; + } + + public BlurbName build() { + return new BlurbName(this); + } + } + + /** Builder for rooms/{room}/blurbs/{blurb}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class RoomBlurbBuilder { + private String room; + private String blurb; + + protected RoomBlurbBuilder() {} + + public String getRoom() { + return room; + } + + public String getBlurb() { + return blurb; + } + + public RoomBlurbBuilder setRoom(String room) { + this.room = room; + return this; + } + + public RoomBlurbBuilder setBlurb(String blurb) { + this.blurb = blurb; + return this; + } + + public BlurbName build() { + return new BlurbName(this); + } + } + + /** Builder for rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class RoomLegacyRoomBlurbBuilder { + private String room; + private String legacyRoom; + private String blurb; + + protected RoomLegacyRoomBlurbBuilder() {} + + public String getRoom() { + return room; + } + + public String getLegacyRoom() { + return legacyRoom; + } + + public String getBlurb() { + return blurb; + } + + public RoomLegacyRoomBlurbBuilder setRoom(String room) { + this.room = room; + return this; + } + + public RoomLegacyRoomBlurbBuilder setLegacyRoom(String legacyRoom) { + this.legacyRoom = legacyRoom; + return this; + } + + public RoomLegacyRoomBlurbBuilder setBlurb(String blurb) { + this.blurb = blurb; + return this; + } + + public BlurbName build() { + return new BlurbName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java new file mode 100644 index 0000000000..08af31258d --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java @@ -0,0 +1,225 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface BlurbOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Blurb) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The resource name of the blurb's author.
+   * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The user. + */ + java.lang.String getUser(); + /** + *
+   * The resource name of the blurb's author.
+   * 
+ * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for user. + */ + com.google.protobuf.ByteString + getUserBytes(); + + /** + *
+   * The textual content of this blurb.
+   * 
+ * + * string text = 3; + * @return Whether the text field is set. + */ + boolean hasText(); + /** + *
+   * The textual content of this blurb.
+   * 
+ * + * string text = 3; + * @return The text. + */ + java.lang.String getText(); + /** + *
+   * The textual content of this blurb.
+   * 
+ * + * string text = 3; + * @return The bytes for text. + */ + com.google.protobuf.ByteString + getTextBytes(); + + /** + *
+   * The image content of this blurb.
+   * 
+ * + * bytes image = 4; + * @return Whether the image field is set. + */ + boolean hasImage(); + /** + *
+   * The image content of this blurb.
+   * 
+ * + * bytes image = 4; + * @return The image. + */ + com.google.protobuf.ByteString getImage(); + + /** + *
+   * The timestamp at which the blurb was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * The timestamp at which the blurb was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * The timestamp at which the blurb was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * The latest timestamp at which the blurb was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * The latest timestamp at which the blurb was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * The latest timestamp at which the blurb was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * The legacy id of the room. This field is used to signal
+   * the use of the compound resource pattern
+   * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+   * 
+ * + * string legacy_room_id = 7; + * @return Whether the legacyRoomId field is set. + */ + boolean hasLegacyRoomId(); + /** + *
+   * The legacy id of the room. This field is used to signal
+   * the use of the compound resource pattern
+   * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+   * 
+ * + * string legacy_room_id = 7; + * @return The legacyRoomId. + */ + java.lang.String getLegacyRoomId(); + /** + *
+   * The legacy id of the room. This field is used to signal
+   * the use of the compound resource pattern
+   * `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`
+   * 
+ * + * string legacy_room_id = 7; + * @return The bytes for legacyRoomId. + */ + com.google.protobuf.ByteString + getLegacyRoomIdBytes(); + + /** + *
+   * The legacy id of the user. This field is used to signal
+   * the use of the compound resource pattern
+   * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+   * 
+ * + * string legacy_user_id = 8; + * @return Whether the legacyUserId field is set. + */ + boolean hasLegacyUserId(); + /** + *
+   * The legacy id of the user. This field is used to signal
+   * the use of the compound resource pattern
+   * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+   * 
+ * + * string legacy_user_id = 8; + * @return The legacyUserId. + */ + java.lang.String getLegacyUserId(); + /** + *
+   * The legacy id of the user. This field is used to signal
+   * the use of the compound resource pattern
+   * `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`
+   * 
+ * + * string legacy_user_id = 8; + * @return The bytes for legacyUserId. + */ + com.google.protobuf.ByteString + getLegacyUserIdBytes(); + + public com.google.showcase.v1beta1.Blurb.ContentCase getContentCase(); + + public com.google.showcase.v1beta1.Blurb.LegacyIdCase getLegacyIdCase(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java new file mode 100644 index 0000000000..3d5de37762 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java @@ -0,0 +1,2662 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * ComplianceData is a message used for testing REST transcoding of
+ * different data types.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ComplianceData} + */ +public final class ComplianceData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceData) + ComplianceDataOrBuilder { +private static final long serialVersionUID = 0L; + // Use ComplianceData.newBuilder() to construct. + private ComplianceData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComplianceData() { + fString_ = ""; + fBytes_ = com.google.protobuf.ByteString.EMPTY; + fKingdom_ = 0; + pString_ = ""; + pKingdom_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ComplianceData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComplianceData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + fString_ = s; + break; + } + case 16: { + + fInt32_ = input.readInt32(); + break; + } + case 24: { + + fSint32_ = input.readSInt32(); + break; + } + case 37: { + + fSfixed32_ = input.readSFixed32(); + break; + } + case 40: { + + fUint32_ = input.readUInt32(); + break; + } + case 53: { + + fFixed32_ = input.readFixed32(); + break; + } + case 56: { + + fInt64_ = input.readInt64(); + break; + } + case 64: { + + fSint64_ = input.readSInt64(); + break; + } + case 73: { + + fSfixed64_ = input.readSFixed64(); + break; + } + case 80: { + + fUint64_ = input.readUInt64(); + break; + } + case 89: { + + fFixed64_ = input.readFixed64(); + break; + } + case 97: { + + fDouble_ = input.readDouble(); + break; + } + case 109: { + + fFloat_ = input.readFloat(); + break; + } + case 112: { + + fBool_ = input.readBool(); + break; + } + case 122: { + + fBytes_ = input.readBytes(); + break; + } + case 130: { + com.google.showcase.v1beta1.ComplianceDataChild.Builder subBuilder = null; + if (fChild_ != null) { + subBuilder = fChild_.toBuilder(); + } + fChild_ = input.readMessage(com.google.showcase.v1beta1.ComplianceDataChild.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fChild_); + fChild_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + pString_ = s; + break; + } + case 144: { + bitField0_ |= 0x00000002; + pInt32_ = input.readInt32(); + break; + } + case 153: { + bitField0_ |= 0x00000004; + pDouble_ = input.readDouble(); + break; + } + case 160: { + bitField0_ |= 0x00000008; + pBool_ = input.readBool(); + break; + } + case 170: { + com.google.showcase.v1beta1.ComplianceDataChild.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) != 0)) { + subBuilder = pChild_.toBuilder(); + } + pChild_ = input.readMessage(com.google.showcase.v1beta1.ComplianceDataChild.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pChild_); + pChild_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + case 176: { + int rawValue = input.readEnum(); + + fKingdom_ = rawValue; + break; + } + case 184: { + int rawValue = input.readEnum(); + bitField0_ |= 0x00000010; + pKingdom_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceData.class, com.google.showcase.v1beta1.ComplianceData.Builder.class); + } + + /** + * Protobuf enum {@code google.showcase.v1beta1.ComplianceData.LifeKingdom} + */ + public enum LifeKingdom + implements com.google.protobuf.ProtocolMessageEnum { + /** + * LIFE_KINGDOM_UNSPECIFIED = 0; + */ + LIFE_KINGDOM_UNSPECIFIED(0), + /** + * ARCHAEBACTERIA = 1; + */ + ARCHAEBACTERIA(1), + /** + * EUBACTERIA = 2; + */ + EUBACTERIA(2), + /** + * PROTISTA = 3; + */ + PROTISTA(3), + /** + * FUNGI = 4; + */ + FUNGI(4), + /** + * PLANTAE = 5; + */ + PLANTAE(5), + /** + * ANIMALIA = 6; + */ + ANIMALIA(6), + UNRECOGNIZED(-1), + ; + + /** + * LIFE_KINGDOM_UNSPECIFIED = 0; + */ + public static final int LIFE_KINGDOM_UNSPECIFIED_VALUE = 0; + /** + * ARCHAEBACTERIA = 1; + */ + public static final int ARCHAEBACTERIA_VALUE = 1; + /** + * EUBACTERIA = 2; + */ + public static final int EUBACTERIA_VALUE = 2; + /** + * PROTISTA = 3; + */ + public static final int PROTISTA_VALUE = 3; + /** + * FUNGI = 4; + */ + public static final int FUNGI_VALUE = 4; + /** + * PLANTAE = 5; + */ + public static final int PLANTAE_VALUE = 5; + /** + * ANIMALIA = 6; + */ + public static final int ANIMALIA_VALUE = 6; + + + 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 LifeKingdom 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 LifeKingdom forNumber(int value) { + switch (value) { + case 0: return LIFE_KINGDOM_UNSPECIFIED; + case 1: return ARCHAEBACTERIA; + case 2: return EUBACTERIA; + case 3: return PROTISTA; + case 4: return FUNGI; + case 5: return PLANTAE; + case 6: return ANIMALIA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LifeKingdom> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LifeKingdom findValueByNumber(int number) { + return LifeKingdom.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.showcase.v1beta1.ComplianceData.getDescriptor().getEnumTypes().get(0); + } + + private static final LifeKingdom[] VALUES = values(); + + public static LifeKingdom 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 LifeKingdom(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.ComplianceData.LifeKingdom) + } + + private int bitField0_; + public static final int F_STRING_FIELD_NUMBER = 1; + private volatile java.lang.Object fString_; + /** + * string f_string = 1; + * @return The fString. + */ + @java.lang.Override + public java.lang.String getFString() { + java.lang.Object ref = fString_; + 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(); + fString_ = s; + return s; + } + } + /** + * string f_string = 1; + * @return The bytes for fString. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFStringBytes() { + java.lang.Object ref = fString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int F_INT32_FIELD_NUMBER = 2; + private int fInt32_; + /** + * int32 f_int32 = 2; + * @return The fInt32. + */ + @java.lang.Override + public int getFInt32() { + return fInt32_; + } + + public static final int F_SINT32_FIELD_NUMBER = 3; + private int fSint32_; + /** + * sint32 f_sint32 = 3; + * @return The fSint32. + */ + @java.lang.Override + public int getFSint32() { + return fSint32_; + } + + public static final int F_SFIXED32_FIELD_NUMBER = 4; + private int fSfixed32_; + /** + * sfixed32 f_sfixed32 = 4; + * @return The fSfixed32. + */ + @java.lang.Override + public int getFSfixed32() { + return fSfixed32_; + } + + public static final int F_UINT32_FIELD_NUMBER = 5; + private int fUint32_; + /** + * uint32 f_uint32 = 5; + * @return The fUint32. + */ + @java.lang.Override + public int getFUint32() { + return fUint32_; + } + + public static final int F_FIXED32_FIELD_NUMBER = 6; + private int fFixed32_; + /** + * fixed32 f_fixed32 = 6; + * @return The fFixed32. + */ + @java.lang.Override + public int getFFixed32() { + return fFixed32_; + } + + public static final int F_INT64_FIELD_NUMBER = 7; + private long fInt64_; + /** + * int64 f_int64 = 7; + * @return The fInt64. + */ + @java.lang.Override + public long getFInt64() { + return fInt64_; + } + + public static final int F_SINT64_FIELD_NUMBER = 8; + private long fSint64_; + /** + * sint64 f_sint64 = 8; + * @return The fSint64. + */ + @java.lang.Override + public long getFSint64() { + return fSint64_; + } + + public static final int F_SFIXED64_FIELD_NUMBER = 9; + private long fSfixed64_; + /** + * sfixed64 f_sfixed64 = 9; + * @return The fSfixed64. + */ + @java.lang.Override + public long getFSfixed64() { + return fSfixed64_; + } + + public static final int F_UINT64_FIELD_NUMBER = 10; + private long fUint64_; + /** + * uint64 f_uint64 = 10; + * @return The fUint64. + */ + @java.lang.Override + public long getFUint64() { + return fUint64_; + } + + public static final int F_FIXED64_FIELD_NUMBER = 11; + private long fFixed64_; + /** + * fixed64 f_fixed64 = 11; + * @return The fFixed64. + */ + @java.lang.Override + public long getFFixed64() { + return fFixed64_; + } + + public static final int F_DOUBLE_FIELD_NUMBER = 12; + private double fDouble_; + /** + * double f_double = 12; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + + public static final int F_FLOAT_FIELD_NUMBER = 13; + private float fFloat_; + /** + * float f_float = 13; + * @return The fFloat. + */ + @java.lang.Override + public float getFFloat() { + return fFloat_; + } + + public static final int F_BOOL_FIELD_NUMBER = 14; + private boolean fBool_; + /** + * bool f_bool = 14; + * @return The fBool. + */ + @java.lang.Override + public boolean getFBool() { + return fBool_; + } + + public static final int F_BYTES_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString fBytes_; + /** + * bytes f_bytes = 15; + * @return The fBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFBytes() { + return fBytes_; + } + + public static final int F_KINGDOM_FIELD_NUMBER = 22; + private int fKingdom_; + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return The enum numeric value on the wire for fKingdom. + */ + @java.lang.Override public int getFKingdomValue() { + return fKingdom_; + } + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return The fKingdom. + */ + @java.lang.Override public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.valueOf(fKingdom_); + return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result; + } + + public static final int F_CHILD_FIELD_NUMBER = 16; + private com.google.showcase.v1beta1.ComplianceDataChild fChild_; + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + * @return Whether the fChild field is set. + */ + @java.lang.Override + public boolean hasFChild() { + return fChild_ != null; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + * @return The fChild. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChild getFChild() { + return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuilder() { + return getFChild(); + } + + public static final int P_STRING_FIELD_NUMBER = 17; + private volatile java.lang.Object pString_; + /** + * optional string p_string = 17; + * @return Whether the pString field is set. + */ + @java.lang.Override + public boolean hasPString() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string p_string = 17; + * @return The pString. + */ + @java.lang.Override + public java.lang.String getPString() { + java.lang.Object ref = pString_; + 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(); + pString_ = s; + return s; + } + } + /** + * optional string p_string = 17; + * @return The bytes for pString. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPStringBytes() { + java.lang.Object ref = pString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int P_INT32_FIELD_NUMBER = 18; + private int pInt32_; + /** + * optional int32 p_int32 = 18; + * @return Whether the pInt32 field is set. + */ + @java.lang.Override + public boolean hasPInt32() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 p_int32 = 18; + * @return The pInt32. + */ + @java.lang.Override + public int getPInt32() { + return pInt32_; + } + + public static final int P_DOUBLE_FIELD_NUMBER = 19; + private double pDouble_; + /** + * optional double p_double = 19; + * @return Whether the pDouble field is set. + */ + @java.lang.Override + public boolean hasPDouble() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double p_double = 19; + * @return The pDouble. + */ + @java.lang.Override + public double getPDouble() { + return pDouble_; + } + + public static final int P_BOOL_FIELD_NUMBER = 20; + private boolean pBool_; + /** + * optional bool p_bool = 20; + * @return Whether the pBool field is set. + */ + @java.lang.Override + public boolean hasPBool() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional bool p_bool = 20; + * @return The pBool. + */ + @java.lang.Override + public boolean getPBool() { + return pBool_; + } + + public static final int P_KINGDOM_FIELD_NUMBER = 23; + private int pKingdom_; + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return Whether the pKingdom field is set. + */ + @java.lang.Override public boolean hasPKingdom() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return The enum numeric value on the wire for pKingdom. + */ + @java.lang.Override public int getPKingdomValue() { + return pKingdom_; + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return The pKingdom. + */ + @java.lang.Override public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.valueOf(pKingdom_); + return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result; + } + + public static final int P_CHILD_FIELD_NUMBER = 21; + private com.google.showcase.v1beta1.ComplianceDataChild pChild_; + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + * @return Whether the pChild field is set. + */ + @java.lang.Override + public boolean hasPChild() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + * @return The pChild. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChild getPChild() { + return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getPChildOrBuilder() { + return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_; + } + + 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(fString_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fString_); + } + if (fInt32_ != 0) { + output.writeInt32(2, fInt32_); + } + if (fSint32_ != 0) { + output.writeSInt32(3, fSint32_); + } + if (fSfixed32_ != 0) { + output.writeSFixed32(4, fSfixed32_); + } + if (fUint32_ != 0) { + output.writeUInt32(5, fUint32_); + } + if (fFixed32_ != 0) { + output.writeFixed32(6, fFixed32_); + } + if (fInt64_ != 0L) { + output.writeInt64(7, fInt64_); + } + if (fSint64_ != 0L) { + output.writeSInt64(8, fSint64_); + } + if (fSfixed64_ != 0L) { + output.writeSFixed64(9, fSfixed64_); + } + if (fUint64_ != 0L) { + output.writeUInt64(10, fUint64_); + } + if (fFixed64_ != 0L) { + output.writeFixed64(11, fFixed64_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + output.writeDouble(12, fDouble_); + } + if (java.lang.Float.floatToRawIntBits(fFloat_) != 0) { + output.writeFloat(13, fFloat_); + } + if (fBool_ != false) { + output.writeBool(14, fBool_); + } + if (!fBytes_.isEmpty()) { + output.writeBytes(15, fBytes_); + } + if (fChild_ != null) { + output.writeMessage(16, getFChild()); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, pString_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(18, pInt32_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(19, pDouble_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(20, pBool_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(21, getPChild()); + } + if (fKingdom_ != com.google.showcase.v1beta1.ComplianceData.LifeKingdom.LIFE_KINGDOM_UNSPECIFIED.getNumber()) { + output.writeEnum(22, fKingdom_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(23, pKingdom_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fString_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fString_); + } + if (fInt32_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, fInt32_); + } + if (fSint32_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(3, fSint32_); + } + if (fSfixed32_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeSFixed32Size(4, fSfixed32_); + } + if (fUint32_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, fUint32_); + } + if (fFixed32_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFixed32Size(6, fFixed32_); + } + if (fInt64_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, fInt64_); + } + if (fSint64_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeSInt64Size(8, fSint64_); + } + if (fSfixed64_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeSFixed64Size(9, fSfixed64_); + } + if (fUint64_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, fUint64_); + } + if (fFixed64_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeFixed64Size(11, fFixed64_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, fDouble_); + } + if (java.lang.Float.floatToRawIntBits(fFloat_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(13, fFloat_); + } + if (fBool_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, fBool_); + } + if (!fBytes_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, fBytes_); + } + if (fChild_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getFChild()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, pString_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, pInt32_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(19, pDouble_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, pBool_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getPChild()); + } + if (fKingdom_ != com.google.showcase.v1beta1.ComplianceData.LifeKingdom.LIFE_KINGDOM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(22, fKingdom_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(23, pKingdom_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ComplianceData)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ComplianceData other = (com.google.showcase.v1beta1.ComplianceData) obj; + + if (!getFString() + .equals(other.getFString())) return false; + if (getFInt32() + != other.getFInt32()) return false; + if (getFSint32() + != other.getFSint32()) return false; + if (getFSfixed32() + != other.getFSfixed32()) return false; + if (getFUint32() + != other.getFUint32()) return false; + if (getFFixed32() + != other.getFFixed32()) return false; + if (getFInt64() + != other.getFInt64()) return false; + if (getFSint64() + != other.getFSint64()) return false; + if (getFSfixed64() + != other.getFSfixed64()) return false; + if (getFUint64() + != other.getFUint64()) return false; + if (getFFixed64() + != other.getFFixed64()) return false; + if (java.lang.Double.doubleToLongBits(getFDouble()) + != java.lang.Double.doubleToLongBits( + other.getFDouble())) return false; + if (java.lang.Float.floatToIntBits(getFFloat()) + != java.lang.Float.floatToIntBits( + other.getFFloat())) return false; + if (getFBool() + != other.getFBool()) return false; + if (!getFBytes() + .equals(other.getFBytes())) return false; + if (fKingdom_ != other.fKingdom_) return false; + if (hasFChild() != other.hasFChild()) return false; + if (hasFChild()) { + if (!getFChild() + .equals(other.getFChild())) return false; + } + if (hasPString() != other.hasPString()) return false; + if (hasPString()) { + if (!getPString() + .equals(other.getPString())) return false; + } + if (hasPInt32() != other.hasPInt32()) return false; + if (hasPInt32()) { + if (getPInt32() + != other.getPInt32()) return false; + } + if (hasPDouble() != other.hasPDouble()) return false; + if (hasPDouble()) { + if (java.lang.Double.doubleToLongBits(getPDouble()) + != java.lang.Double.doubleToLongBits( + other.getPDouble())) return false; + } + if (hasPBool() != other.hasPBool()) return false; + if (hasPBool()) { + if (getPBool() + != other.getPBool()) return false; + } + if (hasPKingdom() != other.hasPKingdom()) return false; + if (hasPKingdom()) { + if (pKingdom_ != other.pKingdom_) return false; + } + if (hasPChild() != other.hasPChild()) return false; + if (hasPChild()) { + if (!getPChild() + .equals(other.getPChild())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + F_STRING_FIELD_NUMBER; + hash = (53 * hash) + getFString().hashCode(); + hash = (37 * hash) + F_INT32_FIELD_NUMBER; + hash = (53 * hash) + getFInt32(); + hash = (37 * hash) + F_SINT32_FIELD_NUMBER; + hash = (53 * hash) + getFSint32(); + hash = (37 * hash) + F_SFIXED32_FIELD_NUMBER; + hash = (53 * hash) + getFSfixed32(); + hash = (37 * hash) + F_UINT32_FIELD_NUMBER; + hash = (53 * hash) + getFUint32(); + hash = (37 * hash) + F_FIXED32_FIELD_NUMBER; + hash = (53 * hash) + getFFixed32(); + hash = (37 * hash) + F_INT64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFInt64()); + hash = (37 * hash) + F_SINT64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFSint64()); + hash = (37 * hash) + F_SFIXED64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFSfixed64()); + hash = (37 * hash) + F_UINT64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFUint64()); + hash = (37 * hash) + F_FIXED64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFFixed64()); + hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFDouble())); + hash = (37 * hash) + F_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFFloat()); + hash = (37 * hash) + F_BOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFBool()); + hash = (37 * hash) + F_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getFBytes().hashCode(); + hash = (37 * hash) + F_KINGDOM_FIELD_NUMBER; + hash = (53 * hash) + fKingdom_; + if (hasFChild()) { + hash = (37 * hash) + F_CHILD_FIELD_NUMBER; + hash = (53 * hash) + getFChild().hashCode(); + } + if (hasPString()) { + hash = (37 * hash) + P_STRING_FIELD_NUMBER; + hash = (53 * hash) + getPString().hashCode(); + } + if (hasPInt32()) { + hash = (37 * hash) + P_INT32_FIELD_NUMBER; + hash = (53 * hash) + getPInt32(); + } + if (hasPDouble()) { + hash = (37 * hash) + P_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPDouble())); + } + if (hasPBool()) { + hash = (37 * hash) + P_BOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPBool()); + } + if (hasPKingdom()) { + hash = (37 * hash) + P_KINGDOM_FIELD_NUMBER; + hash = (53 * hash) + pKingdom_; + } + if (hasPChild()) { + hash = (37 * hash) + P_CHILD_FIELD_NUMBER; + hash = (53 * hash) + getPChild().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ComplianceData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceData 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.showcase.v1beta1.ComplianceData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceData 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.showcase.v1beta1.ComplianceData 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; + } + /** + *
+   * ComplianceData is a message used for testing REST transcoding of
+   * different data types.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ComplianceData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceData) + com.google.showcase.v1beta1.ComplianceDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceData.class, com.google.showcase.v1beta1.ComplianceData.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ComplianceData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPChildFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fString_ = ""; + + fInt32_ = 0; + + fSint32_ = 0; + + fSfixed32_ = 0; + + fUint32_ = 0; + + fFixed32_ = 0; + + fInt64_ = 0L; + + fSint64_ = 0L; + + fSfixed64_ = 0L; + + fUint64_ = 0L; + + fFixed64_ = 0L; + + fDouble_ = 0D; + + fFloat_ = 0F; + + fBool_ = false; + + fBytes_ = com.google.protobuf.ByteString.EMPTY; + + fKingdom_ = 0; + + if (fChildBuilder_ == null) { + fChild_ = null; + } else { + fChild_ = null; + fChildBuilder_ = null; + } + pString_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + pInt32_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + pDouble_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + pBool_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + pKingdom_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + if (pChildBuilder_ == null) { + pChild_ = null; + } else { + pChildBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ComplianceData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData build() { + com.google.showcase.v1beta1.ComplianceData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData buildPartial() { + com.google.showcase.v1beta1.ComplianceData result = new com.google.showcase.v1beta1.ComplianceData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.fString_ = fString_; + result.fInt32_ = fInt32_; + result.fSint32_ = fSint32_; + result.fSfixed32_ = fSfixed32_; + result.fUint32_ = fUint32_; + result.fFixed32_ = fFixed32_; + result.fInt64_ = fInt64_; + result.fSint64_ = fSint64_; + result.fSfixed64_ = fSfixed64_; + result.fUint64_ = fUint64_; + result.fFixed64_ = fFixed64_; + result.fDouble_ = fDouble_; + result.fFloat_ = fFloat_; + result.fBool_ = fBool_; + result.fBytes_ = fBytes_; + result.fKingdom_ = fKingdom_; + if (fChildBuilder_ == null) { + result.fChild_ = fChild_; + } else { + result.fChild_ = fChildBuilder_.build(); + } + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.pString_ = pString_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pInt32_ = pInt32_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pDouble_ = pDouble_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pBool_ = pBool_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + to_bitField0_ |= 0x00000010; + } + result.pKingdom_ = pKingdom_; + if (((from_bitField0_ & 0x00000020) != 0)) { + if (pChildBuilder_ == null) { + result.pChild_ = pChild_; + } else { + result.pChild_ = pChildBuilder_.build(); + } + to_bitField0_ |= 0x00000020; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ComplianceData) { + return mergeFrom((com.google.showcase.v1beta1.ComplianceData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceData other) { + if (other == com.google.showcase.v1beta1.ComplianceData.getDefaultInstance()) return this; + if (!other.getFString().isEmpty()) { + fString_ = other.fString_; + onChanged(); + } + if (other.getFInt32() != 0) { + setFInt32(other.getFInt32()); + } + if (other.getFSint32() != 0) { + setFSint32(other.getFSint32()); + } + if (other.getFSfixed32() != 0) { + setFSfixed32(other.getFSfixed32()); + } + if (other.getFUint32() != 0) { + setFUint32(other.getFUint32()); + } + if (other.getFFixed32() != 0) { + setFFixed32(other.getFFixed32()); + } + if (other.getFInt64() != 0L) { + setFInt64(other.getFInt64()); + } + if (other.getFSint64() != 0L) { + setFSint64(other.getFSint64()); + } + if (other.getFSfixed64() != 0L) { + setFSfixed64(other.getFSfixed64()); + } + if (other.getFUint64() != 0L) { + setFUint64(other.getFUint64()); + } + if (other.getFFixed64() != 0L) { + setFFixed64(other.getFFixed64()); + } + if (other.getFDouble() != 0D) { + setFDouble(other.getFDouble()); + } + if (other.getFFloat() != 0F) { + setFFloat(other.getFFloat()); + } + if (other.getFBool() != false) { + setFBool(other.getFBool()); + } + if (other.getFBytes() != com.google.protobuf.ByteString.EMPTY) { + setFBytes(other.getFBytes()); + } + if (other.fKingdom_ != 0) { + setFKingdomValue(other.getFKingdomValue()); + } + if (other.hasFChild()) { + mergeFChild(other.getFChild()); + } + if (other.hasPString()) { + bitField0_ |= 0x00000001; + pString_ = other.pString_; + onChanged(); + } + if (other.hasPInt32()) { + setPInt32(other.getPInt32()); + } + if (other.hasPDouble()) { + setPDouble(other.getPDouble()); + } + if (other.hasPBool()) { + setPBool(other.getPBool()); + } + if (other.hasPKingdom()) { + setPKingdom(other.getPKingdom()); + } + if (other.hasPChild()) { + mergePChild(other.getPChild()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ComplianceData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ComplianceData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object fString_ = ""; + /** + * string f_string = 1; + * @return The fString. + */ + public java.lang.String getFString() { + java.lang.Object ref = fString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string f_string = 1; + * @return The bytes for fString. + */ + public com.google.protobuf.ByteString + getFStringBytes() { + java.lang.Object ref = fString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string f_string = 1; + * @param value The fString to set. + * @return This builder for chaining. + */ + public Builder setFString( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fString_ = value; + onChanged(); + return this; + } + /** + * string f_string = 1; + * @return This builder for chaining. + */ + public Builder clearFString() { + + fString_ = getDefaultInstance().getFString(); + onChanged(); + return this; + } + /** + * string f_string = 1; + * @param value The bytes for fString to set. + * @return This builder for chaining. + */ + public Builder setFStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fString_ = value; + onChanged(); + return this; + } + + private int fInt32_ ; + /** + * int32 f_int32 = 2; + * @return The fInt32. + */ + @java.lang.Override + public int getFInt32() { + return fInt32_; + } + /** + * int32 f_int32 = 2; + * @param value The fInt32 to set. + * @return This builder for chaining. + */ + public Builder setFInt32(int value) { + + fInt32_ = value; + onChanged(); + return this; + } + /** + * int32 f_int32 = 2; + * @return This builder for chaining. + */ + public Builder clearFInt32() { + + fInt32_ = 0; + onChanged(); + return this; + } + + private int fSint32_ ; + /** + * sint32 f_sint32 = 3; + * @return The fSint32. + */ + @java.lang.Override + public int getFSint32() { + return fSint32_; + } + /** + * sint32 f_sint32 = 3; + * @param value The fSint32 to set. + * @return This builder for chaining. + */ + public Builder setFSint32(int value) { + + fSint32_ = value; + onChanged(); + return this; + } + /** + * sint32 f_sint32 = 3; + * @return This builder for chaining. + */ + public Builder clearFSint32() { + + fSint32_ = 0; + onChanged(); + return this; + } + + private int fSfixed32_ ; + /** + * sfixed32 f_sfixed32 = 4; + * @return The fSfixed32. + */ + @java.lang.Override + public int getFSfixed32() { + return fSfixed32_; + } + /** + * sfixed32 f_sfixed32 = 4; + * @param value The fSfixed32 to set. + * @return This builder for chaining. + */ + public Builder setFSfixed32(int value) { + + fSfixed32_ = value; + onChanged(); + return this; + } + /** + * sfixed32 f_sfixed32 = 4; + * @return This builder for chaining. + */ + public Builder clearFSfixed32() { + + fSfixed32_ = 0; + onChanged(); + return this; + } + + private int fUint32_ ; + /** + * uint32 f_uint32 = 5; + * @return The fUint32. + */ + @java.lang.Override + public int getFUint32() { + return fUint32_; + } + /** + * uint32 f_uint32 = 5; + * @param value The fUint32 to set. + * @return This builder for chaining. + */ + public Builder setFUint32(int value) { + + fUint32_ = value; + onChanged(); + return this; + } + /** + * uint32 f_uint32 = 5; + * @return This builder for chaining. + */ + public Builder clearFUint32() { + + fUint32_ = 0; + onChanged(); + return this; + } + + private int fFixed32_ ; + /** + * fixed32 f_fixed32 = 6; + * @return The fFixed32. + */ + @java.lang.Override + public int getFFixed32() { + return fFixed32_; + } + /** + * fixed32 f_fixed32 = 6; + * @param value The fFixed32 to set. + * @return This builder for chaining. + */ + public Builder setFFixed32(int value) { + + fFixed32_ = value; + onChanged(); + return this; + } + /** + * fixed32 f_fixed32 = 6; + * @return This builder for chaining. + */ + public Builder clearFFixed32() { + + fFixed32_ = 0; + onChanged(); + return this; + } + + private long fInt64_ ; + /** + * int64 f_int64 = 7; + * @return The fInt64. + */ + @java.lang.Override + public long getFInt64() { + return fInt64_; + } + /** + * int64 f_int64 = 7; + * @param value The fInt64 to set. + * @return This builder for chaining. + */ + public Builder setFInt64(long value) { + + fInt64_ = value; + onChanged(); + return this; + } + /** + * int64 f_int64 = 7; + * @return This builder for chaining. + */ + public Builder clearFInt64() { + + fInt64_ = 0L; + onChanged(); + return this; + } + + private long fSint64_ ; + /** + * sint64 f_sint64 = 8; + * @return The fSint64. + */ + @java.lang.Override + public long getFSint64() { + return fSint64_; + } + /** + * sint64 f_sint64 = 8; + * @param value The fSint64 to set. + * @return This builder for chaining. + */ + public Builder setFSint64(long value) { + + fSint64_ = value; + onChanged(); + return this; + } + /** + * sint64 f_sint64 = 8; + * @return This builder for chaining. + */ + public Builder clearFSint64() { + + fSint64_ = 0L; + onChanged(); + return this; + } + + private long fSfixed64_ ; + /** + * sfixed64 f_sfixed64 = 9; + * @return The fSfixed64. + */ + @java.lang.Override + public long getFSfixed64() { + return fSfixed64_; + } + /** + * sfixed64 f_sfixed64 = 9; + * @param value The fSfixed64 to set. + * @return This builder for chaining. + */ + public Builder setFSfixed64(long value) { + + fSfixed64_ = value; + onChanged(); + return this; + } + /** + * sfixed64 f_sfixed64 = 9; + * @return This builder for chaining. + */ + public Builder clearFSfixed64() { + + fSfixed64_ = 0L; + onChanged(); + return this; + } + + private long fUint64_ ; + /** + * uint64 f_uint64 = 10; + * @return The fUint64. + */ + @java.lang.Override + public long getFUint64() { + return fUint64_; + } + /** + * uint64 f_uint64 = 10; + * @param value The fUint64 to set. + * @return This builder for chaining. + */ + public Builder setFUint64(long value) { + + fUint64_ = value; + onChanged(); + return this; + } + /** + * uint64 f_uint64 = 10; + * @return This builder for chaining. + */ + public Builder clearFUint64() { + + fUint64_ = 0L; + onChanged(); + return this; + } + + private long fFixed64_ ; + /** + * fixed64 f_fixed64 = 11; + * @return The fFixed64. + */ + @java.lang.Override + public long getFFixed64() { + return fFixed64_; + } + /** + * fixed64 f_fixed64 = 11; + * @param value The fFixed64 to set. + * @return This builder for chaining. + */ + public Builder setFFixed64(long value) { + + fFixed64_ = value; + onChanged(); + return this; + } + /** + * fixed64 f_fixed64 = 11; + * @return This builder for chaining. + */ + public Builder clearFFixed64() { + + fFixed64_ = 0L; + onChanged(); + return this; + } + + private double fDouble_ ; + /** + * double f_double = 12; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + /** + * double f_double = 12; + * @param value The fDouble to set. + * @return This builder for chaining. + */ + public Builder setFDouble(double value) { + + fDouble_ = value; + onChanged(); + return this; + } + /** + * double f_double = 12; + * @return This builder for chaining. + */ + public Builder clearFDouble() { + + fDouble_ = 0D; + onChanged(); + return this; + } + + private float fFloat_ ; + /** + * float f_float = 13; + * @return The fFloat. + */ + @java.lang.Override + public float getFFloat() { + return fFloat_; + } + /** + * float f_float = 13; + * @param value The fFloat to set. + * @return This builder for chaining. + */ + public Builder setFFloat(float value) { + + fFloat_ = value; + onChanged(); + return this; + } + /** + * float f_float = 13; + * @return This builder for chaining. + */ + public Builder clearFFloat() { + + fFloat_ = 0F; + onChanged(); + return this; + } + + private boolean fBool_ ; + /** + * bool f_bool = 14; + * @return The fBool. + */ + @java.lang.Override + public boolean getFBool() { + return fBool_; + } + /** + * bool f_bool = 14; + * @param value The fBool to set. + * @return This builder for chaining. + */ + public Builder setFBool(boolean value) { + + fBool_ = value; + onChanged(); + return this; + } + /** + * bool f_bool = 14; + * @return This builder for chaining. + */ + public Builder clearFBool() { + + fBool_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString fBytes_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes f_bytes = 15; + * @return The fBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFBytes() { + return fBytes_; + } + /** + * bytes f_bytes = 15; + * @param value The fBytes to set. + * @return This builder for chaining. + */ + public Builder setFBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + fBytes_ = value; + onChanged(); + return this; + } + /** + * bytes f_bytes = 15; + * @return This builder for chaining. + */ + public Builder clearFBytes() { + + fBytes_ = getDefaultInstance().getFBytes(); + onChanged(); + return this; + } + + private int fKingdom_ = 0; + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return The enum numeric value on the wire for fKingdom. + */ + @java.lang.Override public int getFKingdomValue() { + return fKingdom_; + } + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @param value The enum numeric value on the wire for fKingdom to set. + * @return This builder for chaining. + */ + public Builder setFKingdomValue(int value) { + + fKingdom_ = value; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return The fKingdom. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.valueOf(fKingdom_); + return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result; + } + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @param value The fKingdom to set. + * @return This builder for chaining. + */ + public Builder setFKingdom(com.google.showcase.v1beta1.ComplianceData.LifeKingdom value) { + if (value == null) { + throw new NullPointerException(); + } + + fKingdom_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return This builder for chaining. + */ + public Builder clearFKingdom() { + + fKingdom_ = 0; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.ComplianceDataChild fChild_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> fChildBuilder_; + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + * @return Whether the fChild field is set. + */ + public boolean hasFChild() { + return fChildBuilder_ != null || fChild_ != null; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + * @return The fChild. + */ + public com.google.showcase.v1beta1.ComplianceDataChild getFChild() { + if (fChildBuilder_ == null) { + return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_; + } else { + return fChildBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + public Builder setFChild(com.google.showcase.v1beta1.ComplianceDataChild value) { + if (fChildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fChild_ = value; + onChanged(); + } else { + fChildBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + public Builder setFChild( + com.google.showcase.v1beta1.ComplianceDataChild.Builder builderForValue) { + if (fChildBuilder_ == null) { + fChild_ = builderForValue.build(); + onChanged(); + } else { + fChildBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + public Builder mergeFChild(com.google.showcase.v1beta1.ComplianceDataChild value) { + if (fChildBuilder_ == null) { + if (fChild_ != null) { + fChild_ = + com.google.showcase.v1beta1.ComplianceDataChild.newBuilder(fChild_).mergeFrom(value).buildPartial(); + } else { + fChild_ = value; + } + onChanged(); + } else { + fChildBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + public Builder clearFChild() { + if (fChildBuilder_ == null) { + fChild_ = null; + onChanged(); + } else { + fChild_ = null; + fChildBuilder_ = null; + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + public com.google.showcase.v1beta1.ComplianceDataChild.Builder getFChildBuilder() { + + onChanged(); + return getFChildFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuilder() { + if (fChildBuilder_ != null) { + return fChildBuilder_.getMessageOrBuilder(); + } else { + return fChild_ == null ? + com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_; + } + } + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> + getFChildFieldBuilder() { + if (fChildBuilder_ == null) { + fChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>( + getFChild(), + getParentForChildren(), + isClean()); + fChild_ = null; + } + return fChildBuilder_; + } + + private java.lang.Object pString_ = ""; + /** + * optional string p_string = 17; + * @return Whether the pString field is set. + */ + public boolean hasPString() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string p_string = 17; + * @return The pString. + */ + public java.lang.String getPString() { + java.lang.Object ref = pString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string p_string = 17; + * @return The bytes for pString. + */ + public com.google.protobuf.ByteString + getPStringBytes() { + java.lang.Object ref = pString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string p_string = 17; + * @param value The pString to set. + * @return This builder for chaining. + */ + public Builder setPString( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + pString_ = value; + onChanged(); + return this; + } + /** + * optional string p_string = 17; + * @return This builder for chaining. + */ + public Builder clearPString() { + bitField0_ = (bitField0_ & ~0x00000001); + pString_ = getDefaultInstance().getPString(); + onChanged(); + return this; + } + /** + * optional string p_string = 17; + * @param value The bytes for pString to set. + * @return This builder for chaining. + */ + public Builder setPStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; + pString_ = value; + onChanged(); + return this; + } + + private int pInt32_ ; + /** + * optional int32 p_int32 = 18; + * @return Whether the pInt32 field is set. + */ + @java.lang.Override + public boolean hasPInt32() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 p_int32 = 18; + * @return The pInt32. + */ + @java.lang.Override + public int getPInt32() { + return pInt32_; + } + /** + * optional int32 p_int32 = 18; + * @param value The pInt32 to set. + * @return This builder for chaining. + */ + public Builder setPInt32(int value) { + bitField0_ |= 0x00000002; + pInt32_ = value; + onChanged(); + return this; + } + /** + * optional int32 p_int32 = 18; + * @return This builder for chaining. + */ + public Builder clearPInt32() { + bitField0_ = (bitField0_ & ~0x00000002); + pInt32_ = 0; + onChanged(); + return this; + } + + private double pDouble_ ; + /** + * optional double p_double = 19; + * @return Whether the pDouble field is set. + */ + @java.lang.Override + public boolean hasPDouble() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double p_double = 19; + * @return The pDouble. + */ + @java.lang.Override + public double getPDouble() { + return pDouble_; + } + /** + * optional double p_double = 19; + * @param value The pDouble to set. + * @return This builder for chaining. + */ + public Builder setPDouble(double value) { + bitField0_ |= 0x00000004; + pDouble_ = value; + onChanged(); + return this; + } + /** + * optional double p_double = 19; + * @return This builder for chaining. + */ + public Builder clearPDouble() { + bitField0_ = (bitField0_ & ~0x00000004); + pDouble_ = 0D; + onChanged(); + return this; + } + + private boolean pBool_ ; + /** + * optional bool p_bool = 20; + * @return Whether the pBool field is set. + */ + @java.lang.Override + public boolean hasPBool() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional bool p_bool = 20; + * @return The pBool. + */ + @java.lang.Override + public boolean getPBool() { + return pBool_; + } + /** + * optional bool p_bool = 20; + * @param value The pBool to set. + * @return This builder for chaining. + */ + public Builder setPBool(boolean value) { + bitField0_ |= 0x00000008; + pBool_ = value; + onChanged(); + return this; + } + /** + * optional bool p_bool = 20; + * @return This builder for chaining. + */ + public Builder clearPBool() { + bitField0_ = (bitField0_ & ~0x00000008); + pBool_ = false; + onChanged(); + return this; + } + + private int pKingdom_ = 0; + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return Whether the pKingdom field is set. + */ + @java.lang.Override public boolean hasPKingdom() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return The enum numeric value on the wire for pKingdom. + */ + @java.lang.Override public int getPKingdomValue() { + return pKingdom_; + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @param value The enum numeric value on the wire for pKingdom to set. + * @return This builder for chaining. + */ + public Builder setPKingdomValue(int value) { + bitField0_ |= 0x00000010; + pKingdom_ = value; + onChanged(); + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return The pKingdom. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.valueOf(pKingdom_); + return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result; + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @param value The pKingdom to set. + * @return This builder for chaining. + */ + public Builder setPKingdom(com.google.showcase.v1beta1.ComplianceData.LifeKingdom value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + pKingdom_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return This builder for chaining. + */ + public Builder clearPKingdom() { + bitField0_ = (bitField0_ & ~0x00000010); + pKingdom_ = 0; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.ComplianceDataChild pChild_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> pChildBuilder_; + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + * @return Whether the pChild field is set. + */ + public boolean hasPChild() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + * @return The pChild. + */ + public com.google.showcase.v1beta1.ComplianceDataChild getPChild() { + if (pChildBuilder_ == null) { + return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_; + } else { + return pChildBuilder_.getMessage(); + } + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + public Builder setPChild(com.google.showcase.v1beta1.ComplianceDataChild value) { + if (pChildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pChild_ = value; + onChanged(); + } else { + pChildBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + public Builder setPChild( + com.google.showcase.v1beta1.ComplianceDataChild.Builder builderForValue) { + if (pChildBuilder_ == null) { + pChild_ = builderForValue.build(); + onChanged(); + } else { + pChildBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + public Builder mergePChild(com.google.showcase.v1beta1.ComplianceDataChild value) { + if (pChildBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + pChild_ != null && + pChild_ != com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) { + pChild_ = + com.google.showcase.v1beta1.ComplianceDataChild.newBuilder(pChild_).mergeFrom(value).buildPartial(); + } else { + pChild_ = value; + } + onChanged(); + } else { + pChildBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + public Builder clearPChild() { + if (pChildBuilder_ == null) { + pChild_ = null; + onChanged(); + } else { + pChildBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + public com.google.showcase.v1beta1.ComplianceDataChild.Builder getPChildBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPChildFieldBuilder().getBuilder(); + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getPChildOrBuilder() { + if (pChildBuilder_ != null) { + return pChildBuilder_.getMessageOrBuilder(); + } else { + return pChild_ == null ? + com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_; + } + } + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> + getPChildFieldBuilder() { + if (pChildBuilder_ == null) { + pChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>( + getPChild(), + getParentForChildren(), + isClean()); + pChild_ = null; + } + return pChildBuilder_; + } + @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.showcase.v1beta1.ComplianceData) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceData) + private static final com.google.showcase.v1beta1.ComplianceData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceData(); + } + + public static com.google.showcase.v1beta1.ComplianceData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComplianceData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java new file mode 100644 index 0000000000..0533611a6a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java @@ -0,0 +1,1766 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.ComplianceDataChild} + */ +public final class ComplianceDataChild extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceDataChild) + ComplianceDataChildOrBuilder { +private static final long serialVersionUID = 0L; + // Use ComplianceDataChild.newBuilder() to construct. + private ComplianceDataChild(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComplianceDataChild() { + fString_ = ""; + fContinent_ = 0; + pString_ = ""; + pContinent_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ComplianceDataChild(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComplianceDataChild( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + fString_ = s; + break; + } + case 21: { + + fFloat_ = input.readFloat(); + break; + } + case 25: { + + fDouble_ = input.readDouble(); + break; + } + case 32: { + + fBool_ = input.readBool(); + break; + } + case 42: { + com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder subBuilder = null; + if (fChild_ != null) { + subBuilder = fChild_.toBuilder(); + } + fChild_ = input.readMessage(com.google.showcase.v1beta1.ComplianceDataGrandchild.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fChild_); + fChild_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + pString_ = s; + break; + } + case 61: { + bitField0_ |= 0x00000002; + pFloat_ = input.readFloat(); + break; + } + case 65: { + bitField0_ |= 0x00000004; + pDouble_ = input.readDouble(); + break; + } + case 72: { + bitField0_ |= 0x00000008; + pBool_ = input.readBool(); + break; + } + case 82: { + com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) != 0)) { + subBuilder = pChild_.toBuilder(); + } + pChild_ = input.readMessage(com.google.showcase.v1beta1.ComplianceDataGrandchild.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pChild_); + pChild_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 88: { + int rawValue = input.readEnum(); + + fContinent_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + pContinent_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceDataChild.class, com.google.showcase.v1beta1.ComplianceDataChild.Builder.class); + } + + private int bitField0_; + public static final int F_STRING_FIELD_NUMBER = 1; + private volatile java.lang.Object fString_; + /** + * string f_string = 1; + * @return The fString. + */ + @java.lang.Override + public java.lang.String getFString() { + java.lang.Object ref = fString_; + 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(); + fString_ = s; + return s; + } + } + /** + * string f_string = 1; + * @return The bytes for fString. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFStringBytes() { + java.lang.Object ref = fString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int F_FLOAT_FIELD_NUMBER = 2; + private float fFloat_; + /** + * float f_float = 2; + * @return The fFloat. + */ + @java.lang.Override + public float getFFloat() { + return fFloat_; + } + + public static final int F_DOUBLE_FIELD_NUMBER = 3; + private double fDouble_; + /** + * double f_double = 3; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + + public static final int F_BOOL_FIELD_NUMBER = 4; + private boolean fBool_; + /** + * bool f_bool = 4; + * @return The fBool. + */ + @java.lang.Override + public boolean getFBool() { + return fBool_; + } + + public static final int F_CONTINENT_FIELD_NUMBER = 11; + private int fContinent_; + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return The enum numeric value on the wire for fContinent. + */ + @java.lang.Override public int getFContinentValue() { + return fContinent_; + } + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return The fContinent. + */ + @java.lang.Override public com.google.showcase.v1beta1.Continent getFContinent() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.valueOf(fContinent_); + return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; + } + + public static final int F_CHILD_FIELD_NUMBER = 5; + private com.google.showcase.v1beta1.ComplianceDataGrandchild fChild_; + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + * @return Whether the fChild field is set. + */ + @java.lang.Override + public boolean hasFChild() { + return fChild_ != null; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + * @return The fChild. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchild getFChild() { + return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOrBuilder() { + return getFChild(); + } + + public static final int P_STRING_FIELD_NUMBER = 6; + private volatile java.lang.Object pString_; + /** + * optional string p_string = 6; + * @return Whether the pString field is set. + */ + @java.lang.Override + public boolean hasPString() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string p_string = 6; + * @return The pString. + */ + @java.lang.Override + public java.lang.String getPString() { + java.lang.Object ref = pString_; + 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(); + pString_ = s; + return s; + } + } + /** + * optional string p_string = 6; + * @return The bytes for pString. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPStringBytes() { + java.lang.Object ref = pString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int P_FLOAT_FIELD_NUMBER = 7; + private float pFloat_; + /** + * optional float p_float = 7; + * @return Whether the pFloat field is set. + */ + @java.lang.Override + public boolean hasPFloat() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional float p_float = 7; + * @return The pFloat. + */ + @java.lang.Override + public float getPFloat() { + return pFloat_; + } + + public static final int P_DOUBLE_FIELD_NUMBER = 8; + private double pDouble_; + /** + * optional double p_double = 8; + * @return Whether the pDouble field is set. + */ + @java.lang.Override + public boolean hasPDouble() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double p_double = 8; + * @return The pDouble. + */ + @java.lang.Override + public double getPDouble() { + return pDouble_; + } + + public static final int P_BOOL_FIELD_NUMBER = 9; + private boolean pBool_; + /** + * optional bool p_bool = 9; + * @return Whether the pBool field is set. + */ + @java.lang.Override + public boolean hasPBool() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional bool p_bool = 9; + * @return The pBool. + */ + @java.lang.Override + public boolean getPBool() { + return pBool_; + } + + public static final int P_CONTINENT_FIELD_NUMBER = 12; + private int pContinent_; + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return The enum numeric value on the wire for pContinent. + */ + @java.lang.Override public int getPContinentValue() { + return pContinent_; + } + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return The pContinent. + */ + @java.lang.Override public com.google.showcase.v1beta1.Continent getPContinent() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.valueOf(pContinent_); + return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; + } + + public static final int P_CHILD_FIELD_NUMBER = 10; + private com.google.showcase.v1beta1.ComplianceDataGrandchild pChild_; + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + * @return Whether the pChild field is set. + */ + @java.lang.Override + public boolean hasPChild() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + * @return The pChild. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchild getPChild() { + return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getPChildOrBuilder() { + return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_; + } + + 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(fString_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fString_); + } + if (java.lang.Float.floatToRawIntBits(fFloat_) != 0) { + output.writeFloat(2, fFloat_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + output.writeDouble(3, fDouble_); + } + if (fBool_ != false) { + output.writeBool(4, fBool_); + } + if (fChild_ != null) { + output.writeMessage(5, getFChild()); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pString_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(7, pFloat_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(8, pDouble_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(9, pBool_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getPChild()); + } + if (fContinent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { + output.writeEnum(11, fContinent_); + } + if (pContinent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { + output.writeEnum(12, pContinent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fString_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fString_); + } + if (java.lang.Float.floatToRawIntBits(fFloat_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, fFloat_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, fDouble_); + } + if (fBool_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, fBool_); + } + if (fChild_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getFChild()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pString_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, pFloat_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, pDouble_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, pBool_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getPChild()); + } + if (fContinent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, fContinent_); + } + if (pContinent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, pContinent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ComplianceDataChild)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ComplianceDataChild other = (com.google.showcase.v1beta1.ComplianceDataChild) obj; + + if (!getFString() + .equals(other.getFString())) return false; + if (java.lang.Float.floatToIntBits(getFFloat()) + != java.lang.Float.floatToIntBits( + other.getFFloat())) return false; + if (java.lang.Double.doubleToLongBits(getFDouble()) + != java.lang.Double.doubleToLongBits( + other.getFDouble())) return false; + if (getFBool() + != other.getFBool()) return false; + if (fContinent_ != other.fContinent_) return false; + if (hasFChild() != other.hasFChild()) return false; + if (hasFChild()) { + if (!getFChild() + .equals(other.getFChild())) return false; + } + if (hasPString() != other.hasPString()) return false; + if (hasPString()) { + if (!getPString() + .equals(other.getPString())) return false; + } + if (hasPFloat() != other.hasPFloat()) return false; + if (hasPFloat()) { + if (java.lang.Float.floatToIntBits(getPFloat()) + != java.lang.Float.floatToIntBits( + other.getPFloat())) return false; + } + if (hasPDouble() != other.hasPDouble()) return false; + if (hasPDouble()) { + if (java.lang.Double.doubleToLongBits(getPDouble()) + != java.lang.Double.doubleToLongBits( + other.getPDouble())) return false; + } + if (hasPBool() != other.hasPBool()) return false; + if (hasPBool()) { + if (getPBool() + != other.getPBool()) return false; + } + if (pContinent_ != other.pContinent_) return false; + if (hasPChild() != other.hasPChild()) return false; + if (hasPChild()) { + if (!getPChild() + .equals(other.getPChild())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + F_STRING_FIELD_NUMBER; + hash = (53 * hash) + getFString().hashCode(); + hash = (37 * hash) + F_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFFloat()); + hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFDouble())); + hash = (37 * hash) + F_BOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFBool()); + hash = (37 * hash) + F_CONTINENT_FIELD_NUMBER; + hash = (53 * hash) + fContinent_; + if (hasFChild()) { + hash = (37 * hash) + F_CHILD_FIELD_NUMBER; + hash = (53 * hash) + getFChild().hashCode(); + } + if (hasPString()) { + hash = (37 * hash) + P_STRING_FIELD_NUMBER; + hash = (53 * hash) + getPString().hashCode(); + } + if (hasPFloat()) { + hash = (37 * hash) + P_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPFloat()); + } + if (hasPDouble()) { + hash = (37 * hash) + P_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPDouble())); + } + if (hasPBool()) { + hash = (37 * hash) + P_BOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPBool()); + } + hash = (37 * hash) + P_CONTINENT_FIELD_NUMBER; + hash = (53 * hash) + pContinent_; + if (hasPChild()) { + hash = (37 * hash) + P_CHILD_FIELD_NUMBER; + hash = (53 * hash) + getPChild().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceDataChild 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.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceDataChild 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.showcase.v1beta1.ComplianceDataChild 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.ComplianceDataChild} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceDataChild) + com.google.showcase.v1beta1.ComplianceDataChildOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceDataChild.class, com.google.showcase.v1beta1.ComplianceDataChild.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ComplianceDataChild.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPChildFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fString_ = ""; + + fFloat_ = 0F; + + fDouble_ = 0D; + + fBool_ = false; + + fContinent_ = 0; + + if (fChildBuilder_ == null) { + fChild_ = null; + } else { + fChild_ = null; + fChildBuilder_ = null; + } + pString_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + pFloat_ = 0F; + bitField0_ = (bitField0_ & ~0x00000002); + pDouble_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + pBool_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + pContinent_ = 0; + + if (pChildBuilder_ == null) { + pChild_ = null; + } else { + pChildBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChild getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChild build() { + com.google.showcase.v1beta1.ComplianceDataChild result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChild buildPartial() { + com.google.showcase.v1beta1.ComplianceDataChild result = new com.google.showcase.v1beta1.ComplianceDataChild(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.fString_ = fString_; + result.fFloat_ = fFloat_; + result.fDouble_ = fDouble_; + result.fBool_ = fBool_; + result.fContinent_ = fContinent_; + if (fChildBuilder_ == null) { + result.fChild_ = fChild_; + } else { + result.fChild_ = fChildBuilder_.build(); + } + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.pString_ = pString_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pFloat_ = pFloat_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pDouble_ = pDouble_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pBool_ = pBool_; + to_bitField0_ |= 0x00000008; + } + result.pContinent_ = pContinent_; + if (((from_bitField0_ & 0x00000010) != 0)) { + if (pChildBuilder_ == null) { + result.pChild_ = pChild_; + } else { + result.pChild_ = pChildBuilder_.build(); + } + to_bitField0_ |= 0x00000010; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ComplianceDataChild) { + return mergeFrom((com.google.showcase.v1beta1.ComplianceDataChild)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceDataChild other) { + if (other == com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) return this; + if (!other.getFString().isEmpty()) { + fString_ = other.fString_; + onChanged(); + } + if (other.getFFloat() != 0F) { + setFFloat(other.getFFloat()); + } + if (other.getFDouble() != 0D) { + setFDouble(other.getFDouble()); + } + if (other.getFBool() != false) { + setFBool(other.getFBool()); + } + if (other.fContinent_ != 0) { + setFContinentValue(other.getFContinentValue()); + } + if (other.hasFChild()) { + mergeFChild(other.getFChild()); + } + if (other.hasPString()) { + bitField0_ |= 0x00000001; + pString_ = other.pString_; + onChanged(); + } + if (other.hasPFloat()) { + setPFloat(other.getPFloat()); + } + if (other.hasPDouble()) { + setPDouble(other.getPDouble()); + } + if (other.hasPBool()) { + setPBool(other.getPBool()); + } + if (other.pContinent_ != 0) { + setPContinentValue(other.getPContinentValue()); + } + if (other.hasPChild()) { + mergePChild(other.getPChild()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ComplianceDataChild parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ComplianceDataChild) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object fString_ = ""; + /** + * string f_string = 1; + * @return The fString. + */ + public java.lang.String getFString() { + java.lang.Object ref = fString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string f_string = 1; + * @return The bytes for fString. + */ + public com.google.protobuf.ByteString + getFStringBytes() { + java.lang.Object ref = fString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string f_string = 1; + * @param value The fString to set. + * @return This builder for chaining. + */ + public Builder setFString( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fString_ = value; + onChanged(); + return this; + } + /** + * string f_string = 1; + * @return This builder for chaining. + */ + public Builder clearFString() { + + fString_ = getDefaultInstance().getFString(); + onChanged(); + return this; + } + /** + * string f_string = 1; + * @param value The bytes for fString to set. + * @return This builder for chaining. + */ + public Builder setFStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fString_ = value; + onChanged(); + return this; + } + + private float fFloat_ ; + /** + * float f_float = 2; + * @return The fFloat. + */ + @java.lang.Override + public float getFFloat() { + return fFloat_; + } + /** + * float f_float = 2; + * @param value The fFloat to set. + * @return This builder for chaining. + */ + public Builder setFFloat(float value) { + + fFloat_ = value; + onChanged(); + return this; + } + /** + * float f_float = 2; + * @return This builder for chaining. + */ + public Builder clearFFloat() { + + fFloat_ = 0F; + onChanged(); + return this; + } + + private double fDouble_ ; + /** + * double f_double = 3; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + /** + * double f_double = 3; + * @param value The fDouble to set. + * @return This builder for chaining. + */ + public Builder setFDouble(double value) { + + fDouble_ = value; + onChanged(); + return this; + } + /** + * double f_double = 3; + * @return This builder for chaining. + */ + public Builder clearFDouble() { + + fDouble_ = 0D; + onChanged(); + return this; + } + + private boolean fBool_ ; + /** + * bool f_bool = 4; + * @return The fBool. + */ + @java.lang.Override + public boolean getFBool() { + return fBool_; + } + /** + * bool f_bool = 4; + * @param value The fBool to set. + * @return This builder for chaining. + */ + public Builder setFBool(boolean value) { + + fBool_ = value; + onChanged(); + return this; + } + /** + * bool f_bool = 4; + * @return This builder for chaining. + */ + public Builder clearFBool() { + + fBool_ = false; + onChanged(); + return this; + } + + private int fContinent_ = 0; + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return The enum numeric value on the wire for fContinent. + */ + @java.lang.Override public int getFContinentValue() { + return fContinent_; + } + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @param value The enum numeric value on the wire for fContinent to set. + * @return This builder for chaining. + */ + public Builder setFContinentValue(int value) { + + fContinent_ = value; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return The fContinent. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Continent getFContinent() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.valueOf(fContinent_); + return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; + } + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @param value The fContinent to set. + * @return This builder for chaining. + */ + public Builder setFContinent(com.google.showcase.v1beta1.Continent value) { + if (value == null) { + throw new NullPointerException(); + } + + fContinent_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return This builder for chaining. + */ + public Builder clearFContinent() { + + fContinent_ = 0; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.ComplianceDataGrandchild fChild_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> fChildBuilder_; + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + * @return Whether the fChild field is set. + */ + public boolean hasFChild() { + return fChildBuilder_ != null || fChild_ != null; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + * @return The fChild. + */ + public com.google.showcase.v1beta1.ComplianceDataGrandchild getFChild() { + if (fChildBuilder_ == null) { + return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_; + } else { + return fChildBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + public Builder setFChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) { + if (fChildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fChild_ = value; + onChanged(); + } else { + fChildBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + public Builder setFChild( + com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder builderForValue) { + if (fChildBuilder_ == null) { + fChild_ = builderForValue.build(); + onChanged(); + } else { + fChildBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + public Builder mergeFChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) { + if (fChildBuilder_ == null) { + if (fChild_ != null) { + fChild_ = + com.google.showcase.v1beta1.ComplianceDataGrandchild.newBuilder(fChild_).mergeFrom(value).buildPartial(); + } else { + fChild_ = value; + } + onChanged(); + } else { + fChildBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + public Builder clearFChild() { + if (fChildBuilder_ == null) { + fChild_ = null; + onChanged(); + } else { + fChild_ = null; + fChildBuilder_ = null; + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + public com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder getFChildBuilder() { + + onChanged(); + return getFChildFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOrBuilder() { + if (fChildBuilder_ != null) { + return fChildBuilder_.getMessageOrBuilder(); + } else { + return fChild_ == null ? + com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_; + } + } + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> + getFChildFieldBuilder() { + if (fChildBuilder_ == null) { + fChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>( + getFChild(), + getParentForChildren(), + isClean()); + fChild_ = null; + } + return fChildBuilder_; + } + + private java.lang.Object pString_ = ""; + /** + * optional string p_string = 6; + * @return Whether the pString field is set. + */ + public boolean hasPString() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string p_string = 6; + * @return The pString. + */ + public java.lang.String getPString() { + java.lang.Object ref = pString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string p_string = 6; + * @return The bytes for pString. + */ + public com.google.protobuf.ByteString + getPStringBytes() { + java.lang.Object ref = pString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string p_string = 6; + * @param value The pString to set. + * @return This builder for chaining. + */ + public Builder setPString( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + pString_ = value; + onChanged(); + return this; + } + /** + * optional string p_string = 6; + * @return This builder for chaining. + */ + public Builder clearPString() { + bitField0_ = (bitField0_ & ~0x00000001); + pString_ = getDefaultInstance().getPString(); + onChanged(); + return this; + } + /** + * optional string p_string = 6; + * @param value The bytes for pString to set. + * @return This builder for chaining. + */ + public Builder setPStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; + pString_ = value; + onChanged(); + return this; + } + + private float pFloat_ ; + /** + * optional float p_float = 7; + * @return Whether the pFloat field is set. + */ + @java.lang.Override + public boolean hasPFloat() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional float p_float = 7; + * @return The pFloat. + */ + @java.lang.Override + public float getPFloat() { + return pFloat_; + } + /** + * optional float p_float = 7; + * @param value The pFloat to set. + * @return This builder for chaining. + */ + public Builder setPFloat(float value) { + bitField0_ |= 0x00000002; + pFloat_ = value; + onChanged(); + return this; + } + /** + * optional float p_float = 7; + * @return This builder for chaining. + */ + public Builder clearPFloat() { + bitField0_ = (bitField0_ & ~0x00000002); + pFloat_ = 0F; + onChanged(); + return this; + } + + private double pDouble_ ; + /** + * optional double p_double = 8; + * @return Whether the pDouble field is set. + */ + @java.lang.Override + public boolean hasPDouble() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double p_double = 8; + * @return The pDouble. + */ + @java.lang.Override + public double getPDouble() { + return pDouble_; + } + /** + * optional double p_double = 8; + * @param value The pDouble to set. + * @return This builder for chaining. + */ + public Builder setPDouble(double value) { + bitField0_ |= 0x00000004; + pDouble_ = value; + onChanged(); + return this; + } + /** + * optional double p_double = 8; + * @return This builder for chaining. + */ + public Builder clearPDouble() { + bitField0_ = (bitField0_ & ~0x00000004); + pDouble_ = 0D; + onChanged(); + return this; + } + + private boolean pBool_ ; + /** + * optional bool p_bool = 9; + * @return Whether the pBool field is set. + */ + @java.lang.Override + public boolean hasPBool() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional bool p_bool = 9; + * @return The pBool. + */ + @java.lang.Override + public boolean getPBool() { + return pBool_; + } + /** + * optional bool p_bool = 9; + * @param value The pBool to set. + * @return This builder for chaining. + */ + public Builder setPBool(boolean value) { + bitField0_ |= 0x00000008; + pBool_ = value; + onChanged(); + return this; + } + /** + * optional bool p_bool = 9; + * @return This builder for chaining. + */ + public Builder clearPBool() { + bitField0_ = (bitField0_ & ~0x00000008); + pBool_ = false; + onChanged(); + return this; + } + + private int pContinent_ = 0; + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return The enum numeric value on the wire for pContinent. + */ + @java.lang.Override public int getPContinentValue() { + return pContinent_; + } + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @param value The enum numeric value on the wire for pContinent to set. + * @return This builder for chaining. + */ + public Builder setPContinentValue(int value) { + + pContinent_ = value; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return The pContinent. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Continent getPContinent() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.valueOf(pContinent_); + return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; + } + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @param value The pContinent to set. + * @return This builder for chaining. + */ + public Builder setPContinent(com.google.showcase.v1beta1.Continent value) { + if (value == null) { + throw new NullPointerException(); + } + + pContinent_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return This builder for chaining. + */ + public Builder clearPContinent() { + + pContinent_ = 0; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.ComplianceDataGrandchild pChild_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> pChildBuilder_; + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + * @return Whether the pChild field is set. + */ + public boolean hasPChild() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + * @return The pChild. + */ + public com.google.showcase.v1beta1.ComplianceDataGrandchild getPChild() { + if (pChildBuilder_ == null) { + return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_; + } else { + return pChildBuilder_.getMessage(); + } + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + public Builder setPChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) { + if (pChildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pChild_ = value; + onChanged(); + } else { + pChildBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + public Builder setPChild( + com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder builderForValue) { + if (pChildBuilder_ == null) { + pChild_ = builderForValue.build(); + onChanged(); + } else { + pChildBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + public Builder mergePChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) { + if (pChildBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + pChild_ != null && + pChild_ != com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) { + pChild_ = + com.google.showcase.v1beta1.ComplianceDataGrandchild.newBuilder(pChild_).mergeFrom(value).buildPartial(); + } else { + pChild_ = value; + } + onChanged(); + } else { + pChildBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + public Builder clearPChild() { + if (pChildBuilder_ == null) { + pChild_ = null; + onChanged(); + } else { + pChildBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + public com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder getPChildBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPChildFieldBuilder().getBuilder(); + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getPChildOrBuilder() { + if (pChildBuilder_ != null) { + return pChildBuilder_.getMessageOrBuilder(); + } else { + return pChild_ == null ? + com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_; + } + } + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> + getPChildFieldBuilder() { + if (pChildBuilder_ == null) { + pChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>( + getPChild(), + getParentForChildren(), + isClean()); + pChild_ = null; + } + return pChildBuilder_; + } + @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.showcase.v1beta1.ComplianceDataChild) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceDataChild) + private static final com.google.showcase.v1beta1.ComplianceDataChild DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceDataChild(); + } + + public static com.google.showcase.v1beta1.ComplianceDataChild getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceDataChild parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComplianceDataChild(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataChild getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java new file mode 100644 index 0000000000..d5b30a7ccc --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java @@ -0,0 +1,141 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface ComplianceDataChildOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceDataChild) + com.google.protobuf.MessageOrBuilder { + + /** + * string f_string = 1; + * @return The fString. + */ + java.lang.String getFString(); + /** + * string f_string = 1; + * @return The bytes for fString. + */ + com.google.protobuf.ByteString + getFStringBytes(); + + /** + * float f_float = 2; + * @return The fFloat. + */ + float getFFloat(); + + /** + * double f_double = 3; + * @return The fDouble. + */ + double getFDouble(); + + /** + * bool f_bool = 4; + * @return The fBool. + */ + boolean getFBool(); + + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return The enum numeric value on the wire for fContinent. + */ + int getFContinentValue(); + /** + * .google.showcase.v1beta1.Continent f_continent = 11; + * @return The fContinent. + */ + com.google.showcase.v1beta1.Continent getFContinent(); + + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + * @return Whether the fChild field is set. + */ + boolean hasFChild(); + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + * @return The fChild. + */ + com.google.showcase.v1beta1.ComplianceDataGrandchild getFChild(); + /** + * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; + */ + com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOrBuilder(); + + /** + * optional string p_string = 6; + * @return Whether the pString field is set. + */ + boolean hasPString(); + /** + * optional string p_string = 6; + * @return The pString. + */ + java.lang.String getPString(); + /** + * optional string p_string = 6; + * @return The bytes for pString. + */ + com.google.protobuf.ByteString + getPStringBytes(); + + /** + * optional float p_float = 7; + * @return Whether the pFloat field is set. + */ + boolean hasPFloat(); + /** + * optional float p_float = 7; + * @return The pFloat. + */ + float getPFloat(); + + /** + * optional double p_double = 8; + * @return Whether the pDouble field is set. + */ + boolean hasPDouble(); + /** + * optional double p_double = 8; + * @return The pDouble. + */ + double getPDouble(); + + /** + * optional bool p_bool = 9; + * @return Whether the pBool field is set. + */ + boolean hasPBool(); + /** + * optional bool p_bool = 9; + * @return The pBool. + */ + boolean getPBool(); + + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return The enum numeric value on the wire for pContinent. + */ + int getPContinentValue(); + /** + * .google.showcase.v1beta1.Continent p_continent = 12; + * @return The pContinent. + */ + com.google.showcase.v1beta1.Continent getPContinent(); + + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + * @return Whether the pChild field is set. + */ + boolean hasPChild(); + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + * @return The pChild. + */ + com.google.showcase.v1beta1.ComplianceDataGrandchild getPChild(); + /** + * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; + */ + com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getPChildOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java new file mode 100644 index 0000000000..87d2d1ab6c --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java @@ -0,0 +1,690 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.ComplianceDataGrandchild} + */ +public final class ComplianceDataGrandchild extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceDataGrandchild) + ComplianceDataGrandchildOrBuilder { +private static final long serialVersionUID = 0L; + // Use ComplianceDataGrandchild.newBuilder() to construct. + private ComplianceDataGrandchild(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComplianceDataGrandchild() { + fString_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ComplianceDataGrandchild(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComplianceDataGrandchild( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + fString_ = s; + break; + } + case 17: { + + fDouble_ = input.readDouble(); + break; + } + case 24: { + + fBool_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceDataGrandchild.class, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder.class); + } + + public static final int F_STRING_FIELD_NUMBER = 1; + private volatile java.lang.Object fString_; + /** + * string f_string = 1; + * @return The fString. + */ + @java.lang.Override + public java.lang.String getFString() { + java.lang.Object ref = fString_; + 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(); + fString_ = s; + return s; + } + } + /** + * string f_string = 1; + * @return The bytes for fString. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFStringBytes() { + java.lang.Object ref = fString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int F_DOUBLE_FIELD_NUMBER = 2; + private double fDouble_; + /** + * double f_double = 2; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + + public static final int F_BOOL_FIELD_NUMBER = 3; + private boolean fBool_; + /** + * bool f_bool = 3; + * @return The fBool. + */ + @java.lang.Override + public boolean getFBool() { + return fBool_; + } + + 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(fString_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fString_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + output.writeDouble(2, fDouble_); + } + if (fBool_ != false) { + output.writeBool(3, fBool_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fString_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fString_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, fDouble_); + } + if (fBool_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, fBool_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ComplianceDataGrandchild)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ComplianceDataGrandchild other = (com.google.showcase.v1beta1.ComplianceDataGrandchild) obj; + + if (!getFString() + .equals(other.getFString())) return false; + if (java.lang.Double.doubleToLongBits(getFDouble()) + != java.lang.Double.doubleToLongBits( + other.getFDouble())) return false; + if (getFBool() + != other.getFBool()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + F_STRING_FIELD_NUMBER; + hash = (53 * hash) + getFString().hashCode(); + hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFDouble())); + hash = (37 * hash) + F_BOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFBool()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild 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.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceDataGrandchild 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.showcase.v1beta1.ComplianceDataGrandchild 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.ComplianceDataGrandchild} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceDataGrandchild) + com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceDataGrandchild.class, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ComplianceDataGrandchild.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + fString_ = ""; + + fDouble_ = 0D; + + fBool_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchild getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchild build() { + com.google.showcase.v1beta1.ComplianceDataGrandchild result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchild buildPartial() { + com.google.showcase.v1beta1.ComplianceDataGrandchild result = new com.google.showcase.v1beta1.ComplianceDataGrandchild(this); + result.fString_ = fString_; + result.fDouble_ = fDouble_; + result.fBool_ = fBool_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ComplianceDataGrandchild) { + return mergeFrom((com.google.showcase.v1beta1.ComplianceDataGrandchild)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceDataGrandchild other) { + if (other == com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) return this; + if (!other.getFString().isEmpty()) { + fString_ = other.fString_; + onChanged(); + } + if (other.getFDouble() != 0D) { + setFDouble(other.getFDouble()); + } + if (other.getFBool() != false) { + setFBool(other.getFBool()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ComplianceDataGrandchild parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ComplianceDataGrandchild) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object fString_ = ""; + /** + * string f_string = 1; + * @return The fString. + */ + public java.lang.String getFString() { + java.lang.Object ref = fString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string f_string = 1; + * @return The bytes for fString. + */ + public com.google.protobuf.ByteString + getFStringBytes() { + java.lang.Object ref = fString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string f_string = 1; + * @param value The fString to set. + * @return This builder for chaining. + */ + public Builder setFString( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fString_ = value; + onChanged(); + return this; + } + /** + * string f_string = 1; + * @return This builder for chaining. + */ + public Builder clearFString() { + + fString_ = getDefaultInstance().getFString(); + onChanged(); + return this; + } + /** + * string f_string = 1; + * @param value The bytes for fString to set. + * @return This builder for chaining. + */ + public Builder setFStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fString_ = value; + onChanged(); + return this; + } + + private double fDouble_ ; + /** + * double f_double = 2; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + /** + * double f_double = 2; + * @param value The fDouble to set. + * @return This builder for chaining. + */ + public Builder setFDouble(double value) { + + fDouble_ = value; + onChanged(); + return this; + } + /** + * double f_double = 2; + * @return This builder for chaining. + */ + public Builder clearFDouble() { + + fDouble_ = 0D; + onChanged(); + return this; + } + + private boolean fBool_ ; + /** + * bool f_bool = 3; + * @return The fBool. + */ + @java.lang.Override + public boolean getFBool() { + return fBool_; + } + /** + * bool f_bool = 3; + * @param value The fBool to set. + * @return This builder for chaining. + */ + public Builder setFBool(boolean value) { + + fBool_ = value; + onChanged(); + return this; + } + /** + * bool f_bool = 3; + * @return This builder for chaining. + */ + public Builder clearFBool() { + + fBool_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ComplianceDataGrandchild) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceDataGrandchild) + private static final com.google.showcase.v1beta1.ComplianceDataGrandchild DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceDataGrandchild(); + } + + public static com.google.showcase.v1beta1.ComplianceDataGrandchild getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceDataGrandchild parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComplianceDataGrandchild(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataGrandchild getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java new file mode 100644 index 0000000000..a18fa786f0 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface ComplianceDataGrandchildOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceDataGrandchild) + com.google.protobuf.MessageOrBuilder { + + /** + * string f_string = 1; + * @return The fString. + */ + java.lang.String getFString(); + /** + * string f_string = 1; + * @return The bytes for fString. + */ + com.google.protobuf.ByteString + getFStringBytes(); + + /** + * double f_double = 2; + * @return The fDouble. + */ + double getFDouble(); + + /** + * bool f_bool = 3; + * @return The fBool. + */ + boolean getFBool(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java new file mode 100644 index 0000000000..82dfdf52ab --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java @@ -0,0 +1,212 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface ComplianceDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceData) + com.google.protobuf.MessageOrBuilder { + + /** + * string f_string = 1; + * @return The fString. + */ + java.lang.String getFString(); + /** + * string f_string = 1; + * @return The bytes for fString. + */ + com.google.protobuf.ByteString + getFStringBytes(); + + /** + * int32 f_int32 = 2; + * @return The fInt32. + */ + int getFInt32(); + + /** + * sint32 f_sint32 = 3; + * @return The fSint32. + */ + int getFSint32(); + + /** + * sfixed32 f_sfixed32 = 4; + * @return The fSfixed32. + */ + int getFSfixed32(); + + /** + * uint32 f_uint32 = 5; + * @return The fUint32. + */ + int getFUint32(); + + /** + * fixed32 f_fixed32 = 6; + * @return The fFixed32. + */ + int getFFixed32(); + + /** + * int64 f_int64 = 7; + * @return The fInt64. + */ + long getFInt64(); + + /** + * sint64 f_sint64 = 8; + * @return The fSint64. + */ + long getFSint64(); + + /** + * sfixed64 f_sfixed64 = 9; + * @return The fSfixed64. + */ + long getFSfixed64(); + + /** + * uint64 f_uint64 = 10; + * @return The fUint64. + */ + long getFUint64(); + + /** + * fixed64 f_fixed64 = 11; + * @return The fFixed64. + */ + long getFFixed64(); + + /** + * double f_double = 12; + * @return The fDouble. + */ + double getFDouble(); + + /** + * float f_float = 13; + * @return The fFloat. + */ + float getFFloat(); + + /** + * bool f_bool = 14; + * @return The fBool. + */ + boolean getFBool(); + + /** + * bytes f_bytes = 15; + * @return The fBytes. + */ + com.google.protobuf.ByteString getFBytes(); + + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return The enum numeric value on the wire for fKingdom. + */ + int getFKingdomValue(); + /** + * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22; + * @return The fKingdom. + */ + com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom(); + + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + * @return Whether the fChild field is set. + */ + boolean hasFChild(); + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + * @return The fChild. + */ + com.google.showcase.v1beta1.ComplianceDataChild getFChild(); + /** + * .google.showcase.v1beta1.ComplianceDataChild f_child = 16; + */ + com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuilder(); + + /** + * optional string p_string = 17; + * @return Whether the pString field is set. + */ + boolean hasPString(); + /** + * optional string p_string = 17; + * @return The pString. + */ + java.lang.String getPString(); + /** + * optional string p_string = 17; + * @return The bytes for pString. + */ + com.google.protobuf.ByteString + getPStringBytes(); + + /** + * optional int32 p_int32 = 18; + * @return Whether the pInt32 field is set. + */ + boolean hasPInt32(); + /** + * optional int32 p_int32 = 18; + * @return The pInt32. + */ + int getPInt32(); + + /** + * optional double p_double = 19; + * @return Whether the pDouble field is set. + */ + boolean hasPDouble(); + /** + * optional double p_double = 19; + * @return The pDouble. + */ + double getPDouble(); + + /** + * optional bool p_bool = 20; + * @return Whether the pBool field is set. + */ + boolean hasPBool(); + /** + * optional bool p_bool = 20; + * @return The pBool. + */ + boolean getPBool(); + + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return Whether the pKingdom field is set. + */ + boolean hasPKingdom(); + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return The enum numeric value on the wire for pKingdom. + */ + int getPKingdomValue(); + /** + * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23; + * @return The pKingdom. + */ + com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom(); + + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + * @return Whether the pChild field is set. + */ + boolean hasPChild(); + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + * @return The pChild. + */ + com.google.showcase.v1beta1.ComplianceDataChild getPChild(); + /** + * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; + */ + com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getPChildOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java new file mode 100644 index 0000000000..05bf124570 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java @@ -0,0 +1,1114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * ComplianceGroups encapsulates a group of RPC requests to the Compliance
+ * server: one request for each combination of elements of `rpcs` and of
+ * `requests`.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ComplianceGroup} + */ +public final class ComplianceGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceGroup) + ComplianceGroupOrBuilder { +private static final long serialVersionUID = 0L; + // Use ComplianceGroup.newBuilder() to construct. + private ComplianceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComplianceGroup() { + name_ = ""; + rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ComplianceGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComplianceGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rpcs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rpcs_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + requests_.add( + input.readMessage(com.google.showcase.v1beta1.RepeatRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rpcs_ = rpcs_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceGroup.class, com.google.showcase.v1beta1.ComplianceGroup.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RPCS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList rpcs_; + /** + * repeated string rpcs = 2; + * @return A list containing the rpcs. + */ + public com.google.protobuf.ProtocolStringList + getRpcsList() { + return rpcs_; + } + /** + * repeated string rpcs = 2; + * @return The count of rpcs. + */ + public int getRpcsCount() { + return rpcs_.size(); + } + /** + * repeated string rpcs = 2; + * @param index The index of the element to return. + * @return The rpcs at the given index. + */ + public java.lang.String getRpcs(int index) { + return rpcs_.get(index); + } + /** + * repeated string rpcs = 2; + * @param index The index of the value to return. + * @return The bytes of the rpcs at the given index. + */ + public com.google.protobuf.ByteString + getRpcsBytes(int index) { + return rpcs_.getByteString(index); + } + + public static final int REQUESTS_FIELD_NUMBER = 3; + private java.util.List requests_; + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequest getRequests(int index) { + return requests_.get(index); + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < rpcs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rpcs_.getRaw(i)); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(3, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < rpcs_.size(); i++) { + dataSize += computeStringSizeNoTag(rpcs_.getRaw(i)); + } + size += dataSize; + size += 1 * getRpcsList().size(); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, requests_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ComplianceGroup)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ComplianceGroup other = (com.google.showcase.v1beta1.ComplianceGroup) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRpcsList() + .equals(other.getRpcsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRpcsCount() > 0) { + hash = (37 * hash) + RPCS_FIELD_NUMBER; + hash = (53 * hash) + getRpcsList().hashCode(); + } + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceGroup 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.showcase.v1beta1.ComplianceGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceGroup parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceGroup 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.showcase.v1beta1.ComplianceGroup 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; + } + /** + *
+   * ComplianceGroups encapsulates a group of RPC requests to the Compliance
+   * server: one request for each combination of elements of `rpcs` and of
+   * `requests`.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ComplianceGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceGroup) + com.google.showcase.v1beta1.ComplianceGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceGroup.class, com.google.showcase.v1beta1.ComplianceGroup.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ComplianceGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + requestsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceGroup getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceGroup build() { + com.google.showcase.v1beta1.ComplianceGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceGroup buildPartial() { + com.google.showcase.v1beta1.ComplianceGroup result = new com.google.showcase.v1beta1.ComplianceGroup(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + rpcs_ = rpcs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rpcs_ = rpcs_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ComplianceGroup) { + return mergeFrom((com.google.showcase.v1beta1.ComplianceGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceGroup other) { + if (other == com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.rpcs_.isEmpty()) { + if (rpcs_.isEmpty()) { + rpcs_ = other.rpcs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRpcsIsMutable(); + rpcs_.addAll(other.rpcs_); + } + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ComplianceGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ComplianceGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRpcsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rpcs_ = new com.google.protobuf.LazyStringArrayList(rpcs_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string rpcs = 2; + * @return A list containing the rpcs. + */ + public com.google.protobuf.ProtocolStringList + getRpcsList() { + return rpcs_.getUnmodifiableView(); + } + /** + * repeated string rpcs = 2; + * @return The count of rpcs. + */ + public int getRpcsCount() { + return rpcs_.size(); + } + /** + * repeated string rpcs = 2; + * @param index The index of the element to return. + * @return The rpcs at the given index. + */ + public java.lang.String getRpcs(int index) { + return rpcs_.get(index); + } + /** + * repeated string rpcs = 2; + * @param index The index of the value to return. + * @return The bytes of the rpcs at the given index. + */ + public com.google.protobuf.ByteString + getRpcsBytes(int index) { + return rpcs_.getByteString(index); + } + /** + * repeated string rpcs = 2; + * @param index The index to set the value at. + * @param value The rpcs to set. + * @return This builder for chaining. + */ + public Builder setRpcs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRpcsIsMutable(); + rpcs_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string rpcs = 2; + * @param value The rpcs to add. + * @return This builder for chaining. + */ + public Builder addRpcs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRpcsIsMutable(); + rpcs_.add(value); + onChanged(); + return this; + } + /** + * repeated string rpcs = 2; + * @param values The rpcs to add. + * @return This builder for chaining. + */ + public Builder addAllRpcs( + java.lang.Iterable values) { + ensureRpcsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rpcs_); + onChanged(); + return this; + } + /** + * repeated string rpcs = 2; + * @return This builder for chaining. + */ + public Builder clearRpcs() { + rpcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string rpcs = 2; + * @param value The bytes of the rpcs to add. + * @return This builder for chaining. + */ + public Builder addRpcsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRpcsIsMutable(); + rpcs_.add(value); + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> requestsBuilder_; + + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public com.google.showcase.v1beta1.RepeatRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder setRequests( + int index, com.google.showcase.v1beta1.RepeatRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder setRequests( + int index, com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder addRequests(com.google.showcase.v1beta1.RepeatRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder addRequests( + int index, com.google.showcase.v1beta1.RepeatRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder addRequests( + com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder addRequests( + int index, com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public com.google.showcase.v1beta1.RepeatRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public com.google.showcase.v1beta1.RepeatRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()); + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public com.google.showcase.v1beta1.RepeatRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()); + } + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + @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.showcase.v1beta1.ComplianceGroup) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceGroup) + private static final com.google.showcase.v1beta1.ComplianceGroup DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceGroup(); + } + + public static com.google.showcase.v1beta1.ComplianceGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComplianceGroup(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java new file mode 100644 index 0000000000..71970f5bda --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface ComplianceGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated string rpcs = 2; + * @return A list containing the rpcs. + */ + java.util.List + getRpcsList(); + /** + * repeated string rpcs = 2; + * @return The count of rpcs. + */ + int getRpcsCount(); + /** + * repeated string rpcs = 2; + * @param index The index of the element to return. + * @return The rpcs at the given index. + */ + java.lang.String getRpcs(int index); + /** + * repeated string rpcs = 2; + * @param index The index of the value to return. + * @return The bytes of the rpcs at the given index. + */ + com.google.protobuf.ByteString + getRpcsBytes(int index); + + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + java.util.List + getRequestsList(); + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + com.google.showcase.v1beta1.RepeatRequest getRequests(int index); + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + int getRequestsCount(); + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; + */ + com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java new file mode 100644 index 0000000000..a1cb63ee80 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java @@ -0,0 +1,252 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public final class ComplianceOuterClass { + private ComplianceOuterClass() {} + 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_showcase_v1beta1_RepeatRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ComplianceData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EnumResponse_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/schema/google/showcase/v1beta1/complia" + + "nce.proto\022\027google.showcase.v1beta1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\"\303\002\n\rRepeatRequest\022\014\n\004name\030\001 \001(" + + "\t\0225\n\004info\030\002 \001(\0132\'.google.showcase.v1beta" + + "1.ComplianceData\022\025\n\rserver_verify\030\003 \001(\010\022" + + "!\n\024intended_binding_uri\030\n \001(\tH\000\210\001\001\022\017\n\007f_" + + "int32\030\004 \001(\005\022\017\n\007f_int64\030\005 \001(\003\022\020\n\010f_double" + + "\030\006 \001(\001\022\024\n\007p_int32\030\007 \001(\005H\001\210\001\001\022\024\n\007p_int64\030" + + "\010 \001(\003H\002\210\001\001\022\025\n\010p_double\030\t \001(\001H\003\210\001\001B\027\n\025_in" + + "tended_binding_uriB\n\n\010_p_int32B\n\n\010_p_int" + + "64B\013\n\t_p_double\"^\n\016RepeatResponse\0227\n\007req" + + "uest\030\001 \001(\0132&.google.showcase.v1beta1.Rep" + + "eatRequest\022\023\n\013binding_uri\030\002 \001(\t\"J\n\017Compl" + + "ianceSuite\0227\n\005group\030\001 \003(\0132(.google.showc" + + "ase.v1beta1.ComplianceGroup\"g\n\017Complianc" + + "eGroup\022\014\n\004name\030\001 \001(\t\022\014\n\004rpcs\030\002 \003(\t\0228\n\010re" + + "quests\030\003 \003(\0132&.google.showcase.v1beta1.R" + + "epeatRequest\"\340\006\n\016ComplianceData\022\020\n\010f_str" + + "ing\030\001 \001(\t\022\017\n\007f_int32\030\002 \001(\005\022\020\n\010f_sint32\030\003" + + " \001(\021\022\022\n\nf_sfixed32\030\004 \001(\017\022\020\n\010f_uint32\030\005 \001" + + "(\r\022\021\n\tf_fixed32\030\006 \001(\007\022\017\n\007f_int64\030\007 \001(\003\022\020" + + "\n\010f_sint64\030\010 \001(\022\022\022\n\nf_sfixed64\030\t \001(\020\022\020\n\010" + + "f_uint64\030\n \001(\004\022\021\n\tf_fixed64\030\013 \001(\006\022\020\n\010f_d" + + "ouble\030\014 \001(\001\022\017\n\007f_float\030\r \001(\002\022\016\n\006f_bool\030\016" + + " \001(\010\022\017\n\007f_bytes\030\017 \001(\014\022F\n\tf_kingdom\030\026 \001(\016" + + "23.google.showcase.v1beta1.ComplianceDat" + + "a.LifeKingdom\022=\n\007f_child\030\020 \001(\0132,.google." + + "showcase.v1beta1.ComplianceDataChild\022\025\n\010" + + "p_string\030\021 \001(\tH\000\210\001\001\022\024\n\007p_int32\030\022 \001(\005H\001\210\001" + + "\001\022\025\n\010p_double\030\023 \001(\001H\002\210\001\001\022\023\n\006p_bool\030\024 \001(\010" + + "H\003\210\001\001\022K\n\tp_kingdom\030\027 \001(\01623.google.showca" + + "se.v1beta1.ComplianceData.LifeKingdomH\004\210" + + "\001\001\022B\n\007p_child\030\025 \001(\0132,.google.showcase.v1" + + "beta1.ComplianceDataChildH\005\210\001\001\"\203\001\n\013LifeK" + + "ingdom\022\034\n\030LIFE_KINGDOM_UNSPECIFIED\020\000\022\022\n\016" + + "ARCHAEBACTERIA\020\001\022\016\n\nEUBACTERIA\020\002\022\014\n\010PROT" + + "ISTA\020\003\022\t\n\005FUNGI\020\004\022\013\n\007PLANTAE\020\005\022\014\n\010ANIMAL" + + "IA\020\006B\013\n\t_p_stringB\n\n\010_p_int32B\013\n\t_p_doub" + + "leB\t\n\007_p_boolB\014\n\n_p_kingdomB\n\n\010_p_child\"" + + "\357\003\n\023ComplianceDataChild\022\020\n\010f_string\030\001 \001(" + + "\t\022\017\n\007f_float\030\002 \001(\002\022\020\n\010f_double\030\003 \001(\001\022\016\n\006" + + "f_bool\030\004 \001(\010\0227\n\013f_continent\030\013 \001(\0162\".goog" + + "le.showcase.v1beta1.Continent\022B\n\007f_child" + + "\030\005 \001(\01321.google.showcase.v1beta1.Complia" + + "nceDataGrandchild\022\025\n\010p_string\030\006 \001(\tH\000\210\001\001" + + "\022\024\n\007p_float\030\007 \001(\002H\001\210\001\001\022\025\n\010p_double\030\010 \001(\001" + + "H\002\210\001\001\022\023\n\006p_bool\030\t \001(\010H\003\210\001\001\0227\n\013p_continen" + + "t\030\014 \001(\0162\".google.showcase.v1beta1.Contin" + + "ent\022G\n\007p_child\030\n \001(\01321.google.showcase.v" + + "1beta1.ComplianceDataGrandchildH\004\210\001\001B\013\n\t" + + "_p_stringB\n\n\010_p_floatB\013\n\t_p_doubleB\t\n\007_p" + + "_boolB\n\n\010_p_child\"N\n\030ComplianceDataGrand" + + "child\022\020\n\010f_string\030\001 \001(\t\022\020\n\010f_double\030\002 \001(" + + "\001\022\016\n\006f_bool\030\003 \001(\010\"#\n\013EnumRequest\022\024\n\014unkn" + + "own_enum\030\001 \001(\010\"|\n\014EnumResponse\0225\n\007reques" + + "t\030\001 \001(\0132$.google.showcase.v1beta1.EnumRe" + + "quest\0225\n\tcontinent\030\002 \001(\0162\".google.showca" + + "se.v1beta1.Continent*i\n\tContinent\022\031\n\025CON" + + "TINENT_UNSPECIFIED\020\000\022\n\n\006AFRICA\020\001\022\013\n\007AMER" + + "ICA\020\002\022\r\n\tANTARTICA\020\003\022\r\n\tAUSTRALIA\020\004\022\n\n\006E" + + "UROPE\020\0052\330\r\n\nCompliance\022\202\001\n\016RepeatDataBod" + + "y\022&.google.showcase.v1beta1.RepeatReques" + + "t\032\'.google.showcase.v1beta1.RepeatRespon" + + "se\"\037\202\323\344\223\002\031\"\024/v1beta1/repeat:body:\001*\022\215\001\n\022" + + "RepeatDataBodyInfo\022&.google.showcase.v1b" + + "eta1.RepeatRequest\032\'.google.showcase.v1b" + + "eta1.RepeatResponse\"&\202\323\344\223\002 \"\030/v1beta1/re" + + "peat:bodyinfo:\004info\022\201\001\n\017RepeatDataQuery\022" + + "&.google.showcase.v1beta1.RepeatRequest\032" + + "\'.google.showcase.v1beta1.RepeatResponse" + + "\"\035\202\323\344\223\002\027\022\025/v1beta1/repeat:query\022\331\001\n\024Repe" + + "atDataSimplePath\022&.google.showcase.v1bet" + + "a1.RepeatRequest\032\'.google.showcase.v1bet" + + "a1.RepeatResponse\"p\202\323\344\223\002j\022h/v1beta1/repe" + + "at/{info.f_string}/{info.f_int32}/{info." + + "f_double}/{info.f_bool}/{info.f_kingdom}" + + ":simplepath\022\323\002\n\026RepeatDataPathResource\022&" + + ".google.showcase.v1beta1.RepeatRequest\032\'" + + ".google.showcase.v1beta1.RepeatResponse\"" + + "\347\001\202\323\344\223\002\340\001\022h/v1beta1/repeat/{info.f_strin" + + "g=first/*}/{info.f_child.f_string=second" + + "/*}/bool/{info.f_bool}:pathresourceZt\022r/" + + "v1beta1/repeat/{info.f_child.f_string=fi" + + "rst/*}/{info.f_string=second/*}/bool/{in" + + "fo.f_bool}:childfirstpathresource\022\331\001\n\036Re" + + "peatDataPathTrailingResource\022&.google.sh" + + "owcase.v1beta1.RepeatRequest\032\'.google.sh" + + "owcase.v1beta1.RepeatResponse\"f\202\323\344\223\002`\022^/" + + "v1beta1/repeat/{info.f_string=first/*}/{" + + "info.f_child.f_string=second/**}:pathtra" + + "ilingresource\022\210\001\n\021RepeatDataBodyPut\022&.go" + + "ogle.showcase.v1beta1.RepeatRequest\032\'.go" + + "ogle.showcase.v1beta1.RepeatResponse\"\"\202\323" + + "\344\223\002\034\032\027/v1beta1/repeat:bodyput:\001*\022\214\001\n\023Rep" + + "eatDataBodyPatch\022&.google.showcase.v1bet" + + "a1.RepeatRequest\032\'.google.showcase.v1bet" + + "a1.RepeatResponse\"$\202\323\344\223\002\0362\031/v1beta1/repe" + + "at:bodypatch:\001*\022x\n\007GetEnum\022$.google.show" + + "case.v1beta1.EnumRequest\032%.google.showca" + + "se.v1beta1.EnumResponse\" \202\323\344\223\002\032\022\030/v1beta" + + "1/compliance/enum\022|\n\nVerifyEnum\022%.google" + + ".showcase.v1beta1.EnumResponse\032%.google." + + "showcase.v1beta1.EnumResponse\" \202\323\344\223\002\032\"\030/" + + "v1beta1/compliance/enum\032\021\312A\016localhost:74" + + "69Bq\n\033com.google.showcase.v1beta1P\001Z4git" + + "hub.com/googleapis/gapic-showcase/server" + + "/genproto\352\002\031Google::Showcase::V1beta1b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_RepeatRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_RepeatRequest_descriptor, + new java.lang.String[] { "Name", "Info", "ServerVerify", "IntendedBindingUri", "FInt32", "FInt64", "FDouble", "PInt32", "PInt64", "PDouble", "IntendedBindingUri", "PInt32", "PInt64", "PDouble", }); + internal_static_google_showcase_v1beta1_RepeatResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_RepeatResponse_descriptor, + new java.lang.String[] { "Request", "BindingUri", }); + internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor, + new java.lang.String[] { "Group", }); + internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor, + new java.lang.String[] { "Name", "Rpcs", "Requests", }); + internal_static_google_showcase_v1beta1_ComplianceData_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ComplianceData_descriptor, + new java.lang.String[] { "FString", "FInt32", "FSint32", "FSfixed32", "FUint32", "FFixed32", "FInt64", "FSint64", "FSfixed64", "FUint64", "FFixed64", "FDouble", "FFloat", "FBool", "FBytes", "FKingdom", "FChild", "PString", "PInt32", "PDouble", "PBool", "PKingdom", "PChild", "PString", "PInt32", "PDouble", "PBool", "PKingdom", "PChild", }); + internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor, + new java.lang.String[] { "FString", "FFloat", "FDouble", "FBool", "FContinent", "FChild", "PString", "PFloat", "PDouble", "PBool", "PContinent", "PChild", "PString", "PFloat", "PDouble", "PBool", "PChild", }); + internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor, + new java.lang.String[] { "FString", "FDouble", "FBool", }); + internal_static_google_showcase_v1beta1_EnumRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EnumRequest_descriptor, + new java.lang.String[] { "UnknownEnum", }); + internal_static_google_showcase_v1beta1_EnumResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EnumResponse_descriptor, + new java.lang.String[] { "Request", "Continent", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java new file mode 100644 index 0000000000..e87565b059 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java @@ -0,0 +1,784 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * ComplianceSuite contains a set of requests that microgenerators should issue
+ * over REST to the Compliance service to test their gRPC-to-REST transcoding
+ * implementation.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ComplianceSuite} + */ +public final class ComplianceSuite extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceSuite) + ComplianceSuiteOrBuilder { +private static final long serialVersionUID = 0L; + // Use ComplianceSuite.newBuilder() to construct. + private ComplianceSuite(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComplianceSuite() { + group_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ComplianceSuite(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComplianceSuite( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + group_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + group_.add( + input.readMessage(com.google.showcase.v1beta1.ComplianceGroup.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + group_ = java.util.Collections.unmodifiableList(group_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceSuite.class, com.google.showcase.v1beta1.ComplianceSuite.Builder.class); + } + + public static final int GROUP_FIELD_NUMBER = 1; + private java.util.List group_; + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + @java.lang.Override + public java.util.List getGroupList() { + return group_; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + @java.lang.Override + public java.util.List + getGroupOrBuilderList() { + return group_; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + @java.lang.Override + public int getGroupCount() { + return group_.size(); + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceGroup getGroup(int index) { + return group_.get(index); + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder( + int index) { + return group_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < group_.size(); i++) { + output.writeMessage(1, group_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < group_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, group_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ComplianceSuite)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ComplianceSuite other = (com.google.showcase.v1beta1.ComplianceSuite) obj; + + if (!getGroupList() + .equals(other.getGroupList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGroupCount() > 0) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroupList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceSuite 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.showcase.v1beta1.ComplianceSuite parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ComplianceSuite parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ComplianceSuite 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.showcase.v1beta1.ComplianceSuite 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; + } + /** + *
+   * ComplianceSuite contains a set of requests that microgenerators should issue
+   * over REST to the Compliance service to test their gRPC-to-REST transcoding
+   * implementation.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ComplianceSuite} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceSuite) + com.google.showcase.v1beta1.ComplianceSuiteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ComplianceSuite.class, com.google.showcase.v1beta1.ComplianceSuite.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ComplianceSuite.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGroupFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (groupBuilder_ == null) { + group_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + groupBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceSuite getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ComplianceSuite.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceSuite build() { + com.google.showcase.v1beta1.ComplianceSuite result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceSuite buildPartial() { + com.google.showcase.v1beta1.ComplianceSuite result = new com.google.showcase.v1beta1.ComplianceSuite(this); + int from_bitField0_ = bitField0_; + if (groupBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + group_ = java.util.Collections.unmodifiableList(group_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.group_ = group_; + } else { + result.group_ = groupBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ComplianceSuite) { + return mergeFrom((com.google.showcase.v1beta1.ComplianceSuite)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceSuite other) { + if (other == com.google.showcase.v1beta1.ComplianceSuite.getDefaultInstance()) return this; + if (groupBuilder_ == null) { + if (!other.group_.isEmpty()) { + if (group_.isEmpty()) { + group_ = other.group_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroupIsMutable(); + group_.addAll(other.group_); + } + onChanged(); + } + } else { + if (!other.group_.isEmpty()) { + if (groupBuilder_.isEmpty()) { + groupBuilder_.dispose(); + groupBuilder_ = null; + group_ = other.group_; + bitField0_ = (bitField0_ & ~0x00000001); + groupBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupFieldBuilder() : null; + } else { + groupBuilder_.addAllMessages(other.group_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ComplianceSuite parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ComplianceSuite) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List group_ = + java.util.Collections.emptyList(); + private void ensureGroupIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + group_ = new java.util.ArrayList(group_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceGroup, com.google.showcase.v1beta1.ComplianceGroup.Builder, com.google.showcase.v1beta1.ComplianceGroupOrBuilder> groupBuilder_; + + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public java.util.List getGroupList() { + if (groupBuilder_ == null) { + return java.util.Collections.unmodifiableList(group_); + } else { + return groupBuilder_.getMessageList(); + } + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public int getGroupCount() { + if (groupBuilder_ == null) { + return group_.size(); + } else { + return groupBuilder_.getCount(); + } + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public com.google.showcase.v1beta1.ComplianceGroup getGroup(int index) { + if (groupBuilder_ == null) { + return group_.get(index); + } else { + return groupBuilder_.getMessage(index); + } + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder setGroup( + int index, com.google.showcase.v1beta1.ComplianceGroup value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.set(index, value); + onChanged(); + } else { + groupBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder setGroup( + int index, com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.set(index, builderForValue.build()); + onChanged(); + } else { + groupBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder addGroup(com.google.showcase.v1beta1.ComplianceGroup value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.add(value); + onChanged(); + } else { + groupBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder addGroup( + int index, com.google.showcase.v1beta1.ComplianceGroup value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.add(index, value); + onChanged(); + } else { + groupBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder addGroup( + com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(builderForValue.build()); + onChanged(); + } else { + groupBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder addGroup( + int index, com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(index, builderForValue.build()); + onChanged(); + } else { + groupBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder addAllGroup( + java.lang.Iterable values) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, group_); + onChanged(); + } else { + groupBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder clearGroup() { + if (groupBuilder_ == null) { + group_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groupBuilder_.clear(); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public Builder removeGroup(int index) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.remove(index); + onChanged(); + } else { + groupBuilder_.remove(index); + } + return this; + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public com.google.showcase.v1beta1.ComplianceGroup.Builder getGroupBuilder( + int index) { + return getGroupFieldBuilder().getBuilder(index); + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder( + int index) { + if (groupBuilder_ == null) { + return group_.get(index); } else { + return groupBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public java.util.List + getGroupOrBuilderList() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(group_); + } + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public com.google.showcase.v1beta1.ComplianceGroup.Builder addGroupBuilder() { + return getGroupFieldBuilder().addBuilder( + com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance()); + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public com.google.showcase.v1beta1.ComplianceGroup.Builder addGroupBuilder( + int index) { + return getGroupFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance()); + } + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + public java.util.List + getGroupBuilderList() { + return getGroupFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceGroup, com.google.showcase.v1beta1.ComplianceGroup.Builder, com.google.showcase.v1beta1.ComplianceGroupOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceGroup, com.google.showcase.v1beta1.ComplianceGroup.Builder, com.google.showcase.v1beta1.ComplianceGroupOrBuilder>( + group_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + group_ = null; + } + return groupBuilder_; + } + @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.showcase.v1beta1.ComplianceSuite) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceSuite) + private static final com.google.showcase.v1beta1.ComplianceSuite DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceSuite(); + } + + public static com.google.showcase.v1beta1.ComplianceSuite getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceSuite parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComplianceSuite(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceSuite getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java new file mode 100644 index 0000000000..01f718e845 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface ComplianceSuiteOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceSuite) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + java.util.List + getGroupList(); + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + com.google.showcase.v1beta1.ComplianceGroup getGroup(int index); + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + int getGroupCount(); + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + java.util.List + getGroupOrBuilderList(); + /** + * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; + */ + com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java new file mode 100644 index 0000000000..ee58d0f26a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java @@ -0,0 +1,1644 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\Connect
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ConnectRequest} + */ +public final class ConnectRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ConnectRequest) + ConnectRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConnectRequest.newBuilder() to construct. + private ConnectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder subBuilder = null; + if (requestCase_ == 1) { + subBuilder = ((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_).toBuilder(); + } + request_ = + input.readMessage(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 1; + break; + } + case 18: { + com.google.showcase.v1beta1.Blurb.Builder subBuilder = null; + if (requestCase_ == 2) { + subBuilder = ((com.google.showcase.v1beta1.Blurb) request_).toBuilder(); + } + request_ = + input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.showcase.v1beta1.Blurb) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ConnectRequest.class, com.google.showcase.v1beta1.ConnectRequest.Builder.class); + } + + public interface ConnectConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ConnectRequest.ConnectConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The room or profile to follow and create messages for.
+     * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+     * The room or profile to follow and create messages for.
+     * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + } + /** + * Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} + */ + public static final class ConnectConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ConnectRequest.ConnectConfig) + ConnectConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectConfig.newBuilder() to construct. + private ConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectConfig() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+     * The room or profile to follow and create messages for.
+     * 
+ * + * string parent = 1 [(.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; + } + } + /** + *
+     * The room or profile to follow and create messages for.
+     * 
+ * + * string parent = 1 [(.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; + } + } + + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ConnectRequest.ConnectConfig)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other = (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig 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.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig 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.showcase.v1beta1.ConnectRequest.ConnectConfig 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ConnectRequest.ConnectConfig) + com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig build() { + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig buildPartial() { + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig result = new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) { + return mergeFrom((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other) { + if (other == com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+       * The room or profile to follow and create messages for.
+       * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The room or profile to follow and create messages for.
+       * 
+ * + * string parent = 1 [(.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; + } + } + /** + *
+       * The room or profile to follow and create messages for.
+       * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+       * The room or profile to follow and create messages for.
+       * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+       * The room or profile to follow and create messages for.
+       * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ConnectRequest.ConnectConfig) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ConnectRequest.ConnectConfig) + private static final com.google.showcase.v1beta1.ConnectRequest.ConnectConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig(); + } + + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int requestCase_ = 0; + private java.lang.Object request_; + public enum RequestCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONFIG(1), + BLURB(2), + REQUEST_NOT_SET(0); + private final int value; + private RequestCase(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 RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 1: return CONFIG; + case 2: return BLURB; + case 0: return REQUEST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + public static final int CONFIG_FIELD_NUMBER = 1; + /** + *
+   * Provides information that specifies how to process subsequent requests.
+   * The first `ConnectRequest` message must contain a `config`  message.
+   * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return requestCase_ == 1; + } + /** + *
+   * Provides information that specifies how to process subsequent requests.
+   * The first `ConnectRequest` message must contain a `config`  message.
+   * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * @return The config. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() { + if (requestCase_ == 1) { + return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_; + } + return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } + /** + *
+   * Provides information that specifies how to process subsequent requests.
+   * The first `ConnectRequest` message must contain a `config`  message.
+   * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder() { + if (requestCase_ == 1) { + return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_; + } + return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } + + public static final int BLURB_FIELD_NUMBER = 2; + /** + *
+   * The blurb to be created.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return Whether the blurb field is set. + */ + @java.lang.Override + public boolean hasBlurb() { + return requestCase_ == 2; + } + /** + *
+   * The blurb to be created.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return The blurb. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurb() { + if (requestCase_ == 2) { + return (com.google.showcase.v1beta1.Blurb) request_; + } + return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } + /** + *
+   * The blurb to be created.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + if (requestCase_ == 2) { + return (com.google.showcase.v1beta1.Blurb) request_; + } + return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (requestCase_ == 1) { + output.writeMessage(1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_); + } + if (requestCase_ == 2) { + output.writeMessage(2, (com.google.showcase.v1beta1.Blurb) request_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (requestCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_); + } + if (requestCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.showcase.v1beta1.Blurb) request_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ConnectRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ConnectRequest other = (com.google.showcase.v1beta1.ConnectRequest) obj; + + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 1: + if (!getConfig() + .equals(other.getConfig())) return false; + break; + case 2: + if (!getBlurb() + .equals(other.getBlurb())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (requestCase_) { + case 1: + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + BLURB_FIELD_NUMBER; + hash = (53 * hash) + getBlurb().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ConnectRequest 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.showcase.v1beta1.ConnectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ConnectRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ConnectRequest 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.showcase.v1beta1.ConnectRequest 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 request message for the google.showcase.v1beta1.Messaging\Connect
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ConnectRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ConnectRequest) + com.google.showcase.v1beta1.ConnectRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ConnectRequest.class, com.google.showcase.v1beta1.ConnectRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ConnectRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest build() { + com.google.showcase.v1beta1.ConnectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest buildPartial() { + com.google.showcase.v1beta1.ConnectRequest result = new com.google.showcase.v1beta1.ConnectRequest(this); + if (requestCase_ == 1) { + if (configBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = configBuilder_.build(); + } + } + if (requestCase_ == 2) { + if (blurbBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = blurbBuilder_.build(); + } + } + result.requestCase_ = requestCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ConnectRequest) { + return mergeFrom((com.google.showcase.v1beta1.ConnectRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ConnectRequest other) { + if (other == com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance()) return this; + switch (other.getRequestCase()) { + case CONFIG: { + mergeConfig(other.getConfig()); + break; + } + case BLURB: { + mergeBlurb(other.getBlurb()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ConnectRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ConnectRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int requestCase_ = 0; + private java.lang.Object request_; + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder, com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder> configBuilder_; + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return requestCase_ == 1; + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * @return The config. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() { + if (configBuilder_ == null) { + if (requestCase_ == 1) { + return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_; + } + return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } else { + if (requestCase_ == 1) { + return configBuilder_.getMessage(); + } + return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + public Builder setConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + requestCase_ = 1; + return this; + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + public Builder setConfig( + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder builderForValue) { + if (configBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 1; + return this; + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + public Builder mergeConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig value) { + if (configBuilder_ == null) { + if (requestCase_ == 1 && + request_ != com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) { + request_ = com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 1) { + configBuilder_.mergeFrom(value); + } else { + configBuilder_.setMessage(value); + } + } + requestCase_ = 1; + return this; + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + if (requestCase_ == 1) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 1) { + requestCase_ = 0; + request_ = null; + } + configBuilder_.clear(); + } + return this; + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder getConfigBuilder() { + return getConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder() { + if ((requestCase_ == 1) && (configBuilder_ != null)) { + return configBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 1) { + return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_; + } + return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } + } + /** + *
+     * Provides information that specifies how to process subsequent requests.
+     * The first `ConnectRequest` message must contain a `config`  message.
+     * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder, com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + if (!(requestCase_ == 1)) { + request_ = com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); + } + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder, com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>( + (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 1; + onChanged();; + return configBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_; + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return Whether the blurb field is set. + */ + @java.lang.Override + public boolean hasBlurb() { + return requestCase_ == 2; + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return The blurb. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurb() { + if (blurbBuilder_ == null) { + if (requestCase_ == 2) { + return (com.google.showcase.v1beta1.Blurb) request_; + } + return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } else { + if (requestCase_ == 2) { + return blurbBuilder_.getMessage(); + } + return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + blurbBuilder_.setMessage(value); + } + requestCase_ = 2; + return this; + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder setBlurb( + com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + blurbBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 2; + return this; + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (requestCase_ == 2 && + request_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { + request_ = com.google.showcase.v1beta1.Blurb.newBuilder((com.google.showcase.v1beta1.Blurb) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 2) { + blurbBuilder_.mergeFrom(value); + } else { + blurbBuilder_.setMessage(value); + } + } + requestCase_ = 2; + return this; + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder clearBlurb() { + if (blurbBuilder_ == null) { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + } + blurbBuilder_.clear(); + } + return this; + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { + return getBlurbFieldBuilder().getBuilder(); + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + if ((requestCase_ == 2) && (blurbBuilder_ != null)) { + return blurbBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 2) { + return (com.google.showcase.v1beta1.Blurb) request_; + } + return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } + } + /** + *
+     * The blurb to be created.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + getBlurbFieldBuilder() { + if (blurbBuilder_ == null) { + if (!(requestCase_ == 2)) { + request_ = com.google.showcase.v1beta1.Blurb.getDefaultInstance(); + } + blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( + (com.google.showcase.v1beta1.Blurb) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 2; + onChanged();; + return blurbBuilder_; + } + @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.showcase.v1beta1.ConnectRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ConnectRequest) + private static final com.google.showcase.v1beta1.ConnectRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ConnectRequest(); + } + + public static com.google.showcase.v1beta1.ConnectRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ConnectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java new file mode 100644 index 0000000000..69ed6fc296 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface ConnectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ConnectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Provides information that specifies how to process subsequent requests.
+   * The first `ConnectRequest` message must contain a `config`  message.
+   * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+   * Provides information that specifies how to process subsequent requests.
+   * The first `ConnectRequest` message must contain a `config`  message.
+   * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * @return The config. + */ + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig(); + /** + *
+   * Provides information that specifies how to process subsequent requests.
+   * The first `ConnectRequest` message must contain a `config`  message.
+   * 
+ * + * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + */ + com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * The blurb to be created.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return Whether the blurb field is set. + */ + boolean hasBlurb(); + /** + *
+   * The blurb to be created.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return The blurb. + */ + com.google.showcase.v1beta1.Blurb getBlurb(); + /** + *
+   * The blurb to be created.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); + + public com.google.showcase.v1beta1.ConnectRequest.RequestCase getRequestCase(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java new file mode 100644 index 0000000000..3d6c3396ca --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java @@ -0,0 +1,149 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf enum {@code google.showcase.v1beta1.Continent} + */ +public enum Continent + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CONTINENT_UNSPECIFIED = 0; + */ + CONTINENT_UNSPECIFIED(0), + /** + * AFRICA = 1; + */ + AFRICA(1), + /** + * AMERICA = 2; + */ + AMERICA(2), + /** + * ANTARTICA = 3; + */ + ANTARTICA(3), + /** + * AUSTRALIA = 4; + */ + AUSTRALIA(4), + /** + * EUROPE = 5; + */ + EUROPE(5), + UNRECOGNIZED(-1), + ; + + /** + * CONTINENT_UNSPECIFIED = 0; + */ + public static final int CONTINENT_UNSPECIFIED_VALUE = 0; + /** + * AFRICA = 1; + */ + public static final int AFRICA_VALUE = 1; + /** + * AMERICA = 2; + */ + public static final int AMERICA_VALUE = 2; + /** + * ANTARTICA = 3; + */ + public static final int ANTARTICA_VALUE = 3; + /** + * AUSTRALIA = 4; + */ + public static final int AUSTRALIA_VALUE = 4; + /** + * EUROPE = 5; + */ + public static final int EUROPE_VALUE = 5; + + + 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 Continent 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 Continent forNumber(int value) { + switch (value) { + case 0: return CONTINENT_UNSPECIFIED; + case 1: return AFRICA; + case 2: return AMERICA; + case 3: return ANTARTICA; + case 4: return AUSTRALIA; + case 5: return EUROPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Continent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Continent findValueByNumber(int number) { + return Continent.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.showcase.v1beta1.ComplianceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final Continent[] VALUES = values(); + + public static Continent 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 Continent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Continent) +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java new file mode 100644 index 0000000000..1fed27c664 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java @@ -0,0 +1,840 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\CreateBlurb
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateBlurbRequest} + */ +public final class CreateBlurbRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateBlurbRequest) + CreateBlurbRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateBlurbRequest.newBuilder() to construct. + private CreateBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateBlurbRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateBlurbRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateBlurbRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + com.google.showcase.v1beta1.Blurb.Builder subBuilder = null; + if (blurb_ != null) { + subBuilder = blurb_.toBuilder(); + } + blurb_ = input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blurb_); + blurb_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateBlurbRequest.class, com.google.showcase.v1beta1.CreateBlurbRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * The resource name of the chat room or user profile that this blurb will
+   * be tied to.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the chat room or user profile that this blurb will
+   * be tied to.
+   * 
+ * + * 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 BLURB_FIELD_NUMBER = 2; + private com.google.showcase.v1beta1.Blurb blurb_; + /** + *
+   * The blurb to create.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return Whether the blurb field is set. + */ + @java.lang.Override + public boolean hasBlurb() { + return blurb_ != null; + } + /** + *
+   * The blurb to create.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return The blurb. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurb() { + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } + /** + *
+   * The blurb to create.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + return getBlurb(); + } + + 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 (blurb_ != null) { + output.writeMessage(2, getBlurb()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (blurb_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBlurb()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.CreateBlurbRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.CreateBlurbRequest other = (com.google.showcase.v1beta1.CreateBlurbRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasBlurb() != other.hasBlurb()) return false; + if (hasBlurb()) { + if (!getBlurb() + .equals(other.getBlurb())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasBlurb()) { + hash = (37 * hash) + BLURB_FIELD_NUMBER; + hash = (53 * hash) + getBlurb().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest 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.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateBlurbRequest 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.showcase.v1beta1.CreateBlurbRequest 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 request message for the google.showcase.v1beta1.Messaging\CreateBlurb
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateBlurbRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateBlurbRequest) + com.google.showcase.v1beta1.CreateBlurbRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateBlurbRequest.class, com.google.showcase.v1beta1.CreateBlurbRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.CreateBlurbRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (blurbBuilder_ == null) { + blurb_ = null; + } else { + blurb_ = null; + blurbBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateBlurbRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateBlurbRequest build() { + com.google.showcase.v1beta1.CreateBlurbRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateBlurbRequest buildPartial() { + com.google.showcase.v1beta1.CreateBlurbRequest result = new com.google.showcase.v1beta1.CreateBlurbRequest(this); + result.parent_ = parent_; + if (blurbBuilder_ == null) { + result.blurb_ = blurb_; + } else { + result.blurb_ = blurbBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.CreateBlurbRequest) { + return mergeFrom((com.google.showcase.v1beta1.CreateBlurbRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.CreateBlurbRequest other) { + if (other == com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasBlurb()) { + mergeBlurb(other.getBlurb()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.CreateBlurbRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.CreateBlurbRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The resource name of the chat room or user profile that this blurb will
+     * be tied to.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the chat room or user profile that this blurb will
+     * be tied to.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the chat room or user profile that this blurb will
+     * be tied to.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the chat room or user profile that this blurb will
+     * be tied to.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the chat room or user profile that this blurb will
+     * be tied to.
+     * 
+ * + * 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; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.Blurb blurb_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_; + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return Whether the blurb field is set. + */ + public boolean hasBlurb() { + return blurbBuilder_ != null || blurb_ != null; + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return The blurb. + */ + public com.google.showcase.v1beta1.Blurb getBlurb() { + if (blurbBuilder_ == null) { + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } else { + return blurbBuilder_.getMessage(); + } + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blurb_ = value; + onChanged(); + } else { + blurbBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder setBlurb( + com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbBuilder_ == null) { + blurb_ = builderForValue.build(); + onChanged(); + } else { + blurbBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (blurb_ != null) { + blurb_ = + com.google.showcase.v1beta1.Blurb.newBuilder(blurb_).mergeFrom(value).buildPartial(); + } else { + blurb_ = value; + } + onChanged(); + } else { + blurbBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public Builder clearBlurb() { + if (blurbBuilder_ == null) { + blurb_ = null; + onChanged(); + } else { + blurb_ = null; + blurbBuilder_ = null; + } + + return this; + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { + + onChanged(); + return getBlurbFieldBuilder().getBuilder(); + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + if (blurbBuilder_ != null) { + return blurbBuilder_.getMessageOrBuilder(); + } else { + return blurb_ == null ? + com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } + } + /** + *
+     * The blurb to create.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + getBlurbFieldBuilder() { + if (blurbBuilder_ == null) { + blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( + getBlurb(), + getParentForChildren(), + isClean()); + blurb_ = null; + } + return blurbBuilder_; + } + @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.showcase.v1beta1.CreateBlurbRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateBlurbRequest) + private static final com.google.showcase.v1beta1.CreateBlurbRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateBlurbRequest(); + } + + public static com.google.showcase.v1beta1.CreateBlurbRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBlurbRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateBlurbRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java new file mode 100644 index 0000000000..53ed164793 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface CreateBlurbRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateBlurbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the chat room or user profile that this blurb will
+   * be tied to.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * The resource name of the chat room or user profile that this blurb will
+   * be tied to.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The blurb to create.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return Whether the blurb field is set. + */ + boolean hasBlurb(); + /** + *
+   * The blurb to create.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + * @return The blurb. + */ + com.google.showcase.v1beta1.Blurb getBlurb(); + /** + *
+   * The blurb to create.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 2; + */ + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java new file mode 100644 index 0000000000..5982b2f59c --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java @@ -0,0 +1,667 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\CreateRoom
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateRoomRequest} + */ +public final class CreateRoomRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateRoomRequest) + CreateRoomRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateRoomRequest.newBuilder() to construct. + private CreateRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateRoomRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateRoomRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateRoomRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(com.google.showcase.v1beta1.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateRoomRequest.class, com.google.showcase.v1beta1.CreateRoomRequest.Builder.class); + } + + public static final int ROOM_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Room room_; + /** + *
+   * The room to create.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return Whether the room field is set. + */ + @java.lang.Override + public boolean hasRoom() { + return room_ != null; + } + /** + *
+   * The room to create.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return The room. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Room getRoom() { + return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + } + /** + *
+   * The room to create.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); + } + + 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 (room_ != null) { + output.writeMessage(1, getRoom()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (room_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRoom()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.CreateRoomRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.CreateRoomRequest other = (com.google.showcase.v1beta1.CreateRoomRequest) obj; + + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateRoomRequest 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.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateRoomRequest 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.showcase.v1beta1.CreateRoomRequest 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 request message for the google.showcase.v1beta1.Messaging\CreateRoom
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateRoomRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateRoomRequest) + com.google.showcase.v1beta1.CreateRoomRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateRoomRequest.class, com.google.showcase.v1beta1.CreateRoomRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.CreateRoomRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateRoomRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.CreateRoomRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateRoomRequest build() { + com.google.showcase.v1beta1.CreateRoomRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateRoomRequest buildPartial() { + com.google.showcase.v1beta1.CreateRoomRequest result = new com.google.showcase.v1beta1.CreateRoomRequest(this); + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.CreateRoomRequest) { + return mergeFrom((com.google.showcase.v1beta1.CreateRoomRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.CreateRoomRequest other) { + if (other == com.google.showcase.v1beta1.CreateRoomRequest.getDefaultInstance()) return this; + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.CreateRoomRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.CreateRoomRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> roomBuilder_; + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return Whether the room field is set. + */ + public boolean hasRoom() { + return roomBuilder_ != null || room_ != null; + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return The room. + */ + public com.google.showcase.v1beta1.Room getRoom() { + if (roomBuilder_ == null) { + return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder setRoom(com.google.showcase.v1beta1.Room value) { + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder setRoom( + com.google.showcase.v1beta1.Room.Builder builderForValue) { + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder mergeRoom(com.google.showcase.v1beta1.Room value) { + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + com.google.showcase.v1beta1.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + + return this; + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public com.google.showcase.v1beta1.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + } + } + /** + *
+     * The room to create.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; + } + return roomBuilder_; + } + @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.showcase.v1beta1.CreateRoomRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateRoomRequest) + private static final com.google.showcase.v1beta1.CreateRoomRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateRoomRequest(); + } + + public static com.google.showcase.v1beta1.CreateRoomRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRoomRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateRoomRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java new file mode 100644 index 0000000000..c912301453 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface CreateRoomRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateRoomRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The room to create.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return Whether the room field is set. + */ + boolean hasRoom(); + /** + *
+   * The room to create.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return The room. + */ + com.google.showcase.v1beta1.Room getRoom(); + /** + *
+   * The room to create.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java new file mode 100644 index 0000000000..2f8b0a890f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java @@ -0,0 +1,609 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.CreateSequenceRequest} + */ +public final class CreateSequenceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateSequenceRequest) + CreateSequenceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSequenceRequest.newBuilder() to construct. + private CreateSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSequenceRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSequenceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateSequenceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Sequence.Builder subBuilder = null; + if (sequence_ != null) { + subBuilder = sequence_.toBuilder(); + } + sequence_ = input.readMessage(com.google.showcase.v1beta1.Sequence.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sequence_); + sequence_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateSequenceRequest.class, com.google.showcase.v1beta1.CreateSequenceRequest.Builder.class); + } + + public static final int SEQUENCE_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Sequence sequence_; + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * @return Whether the sequence field is set. + */ + @java.lang.Override + public boolean hasSequence() { + return sequence_ != null; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * @return The sequence. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Sequence getSequence() { + return sequence_ == null ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder() { + return getSequence(); + } + + 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 (sequence_ != null) { + output.writeMessage(1, getSequence()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sequence_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSequence()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.CreateSequenceRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.CreateSequenceRequest other = (com.google.showcase.v1beta1.CreateSequenceRequest) obj; + + if (hasSequence() != other.hasSequence()) return false; + if (hasSequence()) { + if (!getSequence() + .equals(other.getSequence())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSequence()) { + hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getSequence().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest 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.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateSequenceRequest 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.showcase.v1beta1.CreateSequenceRequest 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.CreateSequenceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateSequenceRequest) + com.google.showcase.v1beta1.CreateSequenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateSequenceRequest.class, com.google.showcase.v1beta1.CreateSequenceRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.CreateSequenceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (sequenceBuilder_ == null) { + sequence_ = null; + } else { + sequence_ = null; + sequenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSequenceRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.CreateSequenceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSequenceRequest build() { + com.google.showcase.v1beta1.CreateSequenceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSequenceRequest buildPartial() { + com.google.showcase.v1beta1.CreateSequenceRequest result = new com.google.showcase.v1beta1.CreateSequenceRequest(this); + if (sequenceBuilder_ == null) { + result.sequence_ = sequence_; + } else { + result.sequence_ = sequenceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.CreateSequenceRequest) { + return mergeFrom((com.google.showcase.v1beta1.CreateSequenceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.CreateSequenceRequest other) { + if (other == com.google.showcase.v1beta1.CreateSequenceRequest.getDefaultInstance()) return this; + if (other.hasSequence()) { + mergeSequence(other.getSequence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.CreateSequenceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.CreateSequenceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Sequence sequence_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Sequence, com.google.showcase.v1beta1.Sequence.Builder, com.google.showcase.v1beta1.SequenceOrBuilder> sequenceBuilder_; + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * @return Whether the sequence field is set. + */ + public boolean hasSequence() { + return sequenceBuilder_ != null || sequence_ != null; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * @return The sequence. + */ + public com.google.showcase.v1beta1.Sequence getSequence() { + if (sequenceBuilder_ == null) { + return sequence_ == null ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + } else { + return sequenceBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + public Builder setSequence(com.google.showcase.v1beta1.Sequence value) { + if (sequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sequence_ = value; + onChanged(); + } else { + sequenceBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + public Builder setSequence( + com.google.showcase.v1beta1.Sequence.Builder builderForValue) { + if (sequenceBuilder_ == null) { + sequence_ = builderForValue.build(); + onChanged(); + } else { + sequenceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + public Builder mergeSequence(com.google.showcase.v1beta1.Sequence value) { + if (sequenceBuilder_ == null) { + if (sequence_ != null) { + sequence_ = + com.google.showcase.v1beta1.Sequence.newBuilder(sequence_).mergeFrom(value).buildPartial(); + } else { + sequence_ = value; + } + onChanged(); + } else { + sequenceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + public Builder clearSequence() { + if (sequenceBuilder_ == null) { + sequence_ = null; + onChanged(); + } else { + sequence_ = null; + sequenceBuilder_ = null; + } + + return this; + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + public com.google.showcase.v1beta1.Sequence.Builder getSequenceBuilder() { + + onChanged(); + return getSequenceFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + public com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder() { + if (sequenceBuilder_ != null) { + return sequenceBuilder_.getMessageOrBuilder(); + } else { + return sequence_ == null ? + com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + } + } + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Sequence, com.google.showcase.v1beta1.Sequence.Builder, com.google.showcase.v1beta1.SequenceOrBuilder> + getSequenceFieldBuilder() { + if (sequenceBuilder_ == null) { + sequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Sequence, com.google.showcase.v1beta1.Sequence.Builder, com.google.showcase.v1beta1.SequenceOrBuilder>( + getSequence(), + getParentForChildren(), + isClean()); + sequence_ = null; + } + return sequenceBuilder_; + } + @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.showcase.v1beta1.CreateSequenceRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateSequenceRequest) + private static final com.google.showcase.v1beta1.CreateSequenceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateSequenceRequest(); + } + + public static com.google.showcase.v1beta1.CreateSequenceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSequenceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSequenceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..5f99147ab5 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface CreateSequenceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * @return Whether the sequence field is set. + */ + boolean hasSequence(); + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * @return The sequence. + */ + com.google.showcase.v1beta1.Sequence getSequence(); + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + */ + com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java new file mode 100644 index 0000000000..2d2d8bfa81 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java @@ -0,0 +1,689 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for the CreateSession method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateSessionRequest} + */ +public final class CreateSessionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateSessionRequest) + CreateSessionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSessionRequest.newBuilder() to construct. + private CreateSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSessionRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSessionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateSessionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Session.Builder subBuilder = null; + if (session_ != null) { + subBuilder = session_.toBuilder(); + } + session_ = input.readMessage(com.google.showcase.v1beta1.Session.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(session_); + session_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateSessionRequest.class, com.google.showcase.v1beta1.CreateSessionRequest.Builder.class); + } + + public static final int SESSION_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Session session_; + /** + *
+   * The session to be created.
+   * Sessions are immutable once they are created (although they can
+   * be deleted).
+   * 
+ * + * .google.showcase.v1beta1.Session session = 1; + * @return Whether the session field is set. + */ + @java.lang.Override + public boolean hasSession() { + return session_ != null; + } + /** + *
+   * The session to be created.
+   * Sessions are immutable once they are created (although they can
+   * be deleted).
+   * 
+ * + * .google.showcase.v1beta1.Session session = 1; + * @return The session. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Session getSession() { + return session_ == null ? com.google.showcase.v1beta1.Session.getDefaultInstance() : session_; + } + /** + *
+   * The session to be created.
+   * Sessions are immutable once they are created (although they can
+   * be deleted).
+   * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.SessionOrBuilder getSessionOrBuilder() { + return getSession(); + } + + 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 (session_ != null) { + output.writeMessage(1, getSession()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (session_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSession()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.CreateSessionRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.CreateSessionRequest other = (com.google.showcase.v1beta1.CreateSessionRequest) obj; + + if (hasSession() != other.hasSession()) return false; + if (hasSession()) { + if (!getSession() + .equals(other.getSession())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSession()) { + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateSessionRequest 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.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateSessionRequest 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.showcase.v1beta1.CreateSessionRequest 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 request for the CreateSession method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateSessionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateSessionRequest) + com.google.showcase.v1beta1.CreateSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateSessionRequest.class, com.google.showcase.v1beta1.CreateSessionRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.CreateSessionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (sessionBuilder_ == null) { + session_ = null; + } else { + session_ = null; + sessionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSessionRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.CreateSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSessionRequest build() { + com.google.showcase.v1beta1.CreateSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSessionRequest buildPartial() { + com.google.showcase.v1beta1.CreateSessionRequest result = new com.google.showcase.v1beta1.CreateSessionRequest(this); + if (sessionBuilder_ == null) { + result.session_ = session_; + } else { + result.session_ = sessionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.CreateSessionRequest) { + return mergeFrom((com.google.showcase.v1beta1.CreateSessionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.CreateSessionRequest other) { + if (other == com.google.showcase.v1beta1.CreateSessionRequest.getDefaultInstance()) return this; + if (other.hasSession()) { + mergeSession(other.getSession()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.CreateSessionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.CreateSessionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Session session_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> sessionBuilder_; + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + * @return Whether the session field is set. + */ + public boolean hasSession() { + return sessionBuilder_ != null || session_ != null; + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + * @return The session. + */ + public com.google.showcase.v1beta1.Session getSession() { + if (sessionBuilder_ == null) { + return session_ == null ? com.google.showcase.v1beta1.Session.getDefaultInstance() : session_; + } else { + return sessionBuilder_.getMessage(); + } + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + public Builder setSession(com.google.showcase.v1beta1.Session value) { + if (sessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + onChanged(); + } else { + sessionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + public Builder setSession( + com.google.showcase.v1beta1.Session.Builder builderForValue) { + if (sessionBuilder_ == null) { + session_ = builderForValue.build(); + onChanged(); + } else { + sessionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + public Builder mergeSession(com.google.showcase.v1beta1.Session value) { + if (sessionBuilder_ == null) { + if (session_ != null) { + session_ = + com.google.showcase.v1beta1.Session.newBuilder(session_).mergeFrom(value).buildPartial(); + } else { + session_ = value; + } + onChanged(); + } else { + sessionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + public Builder clearSession() { + if (sessionBuilder_ == null) { + session_ = null; + onChanged(); + } else { + session_ = null; + sessionBuilder_ = null; + } + + return this; + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + public com.google.showcase.v1beta1.Session.Builder getSessionBuilder() { + + onChanged(); + return getSessionFieldBuilder().getBuilder(); + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + public com.google.showcase.v1beta1.SessionOrBuilder getSessionOrBuilder() { + if (sessionBuilder_ != null) { + return sessionBuilder_.getMessageOrBuilder(); + } else { + return session_ == null ? + com.google.showcase.v1beta1.Session.getDefaultInstance() : session_; + } + } + /** + *
+     * The session to be created.
+     * Sessions are immutable once they are created (although they can
+     * be deleted).
+     * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> + getSessionFieldBuilder() { + if (sessionBuilder_ == null) { + sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder>( + getSession(), + getParentForChildren(), + isClean()); + session_ = null; + } + return sessionBuilder_; + } + @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.showcase.v1beta1.CreateSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateSessionRequest) + private static final com.google.showcase.v1beta1.CreateSessionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateSessionRequest(); + } + + public static com.google.showcase.v1beta1.CreateSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSessionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java new file mode 100644 index 0000000000..b4c5eacda6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface CreateSessionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The session to be created.
+   * Sessions are immutable once they are created (although they can
+   * be deleted).
+   * 
+ * + * .google.showcase.v1beta1.Session session = 1; + * @return Whether the session field is set. + */ + boolean hasSession(); + /** + *
+   * The session to be created.
+   * Sessions are immutable once they are created (although they can
+   * be deleted).
+   * 
+ * + * .google.showcase.v1beta1.Session session = 1; + * @return The session. + */ + com.google.showcase.v1beta1.Session getSession(); + /** + *
+   * The session to be created.
+   * Sessions are immutable once they are created (although they can
+   * be deleted).
+   * 
+ * + * .google.showcase.v1beta1.Session session = 1; + */ + com.google.showcase.v1beta1.SessionOrBuilder getSessionOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java new file mode 100644 index 0000000000..46ab7f0be0 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java @@ -0,0 +1,667 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Identity\CreateUser
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateUserRequest} + */ +public final class CreateUserRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateUserRequest) + CreateUserRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateUserRequest.newBuilder() to construct. + private CreateUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateUserRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateUserRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateUserRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.User.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(com.google.showcase.v1beta1.User.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateUserRequest.class, com.google.showcase.v1beta1.CreateUserRequest.Builder.class); + } + + public static final int USER_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.User user_; + /** + *
+   * The user to create.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return user_ != null; + } + /** + *
+   * The user to create.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return The user. + */ + @java.lang.Override + public com.google.showcase.v1beta1.User getUser() { + return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + } + /** + *
+   * The user to create.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { + return getUser(); + } + + 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 (user_ != null) { + output.writeMessage(1, getUser()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (user_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.CreateUserRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.CreateUserRequest other = (com.google.showcase.v1beta1.CreateUserRequest) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateUserRequest 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.showcase.v1beta1.CreateUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.CreateUserRequest 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.showcase.v1beta1.CreateUserRequest 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 request message for the google.showcase.v1beta1.Identity\CreateUser
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.CreateUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateUserRequest) + com.google.showcase.v1beta1.CreateUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.CreateUserRequest.class, com.google.showcase.v1beta1.CreateUserRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.CreateUserRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateUserRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.CreateUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateUserRequest build() { + com.google.showcase.v1beta1.CreateUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateUserRequest buildPartial() { + com.google.showcase.v1beta1.CreateUserRequest result = new com.google.showcase.v1beta1.CreateUserRequest(this); + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.CreateUserRequest) { + return mergeFrom((com.google.showcase.v1beta1.CreateUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.CreateUserRequest other) { + if (other == com.google.showcase.v1beta1.CreateUserRequest.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.CreateUserRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.CreateUserRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.User user_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> userBuilder_; + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return userBuilder_ != null || user_ != null; + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return The user. + */ + public com.google.showcase.v1beta1.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder setUser(com.google.showcase.v1beta1.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder setUser( + com.google.showcase.v1beta1.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder mergeUser(com.google.showcase.v1beta1.User value) { + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + com.google.showcase.v1beta1.User.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + + return this; + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public com.google.showcase.v1beta1.User.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + } + } + /** + *
+     * The user to create.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + @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.showcase.v1beta1.CreateUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateUserRequest) + private static final com.google.showcase.v1beta1.CreateUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateUserRequest(); + } + + public static com.google.showcase.v1beta1.CreateUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateUserRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.CreateUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java new file mode 100644 index 0000000000..04a4c2ee57 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface CreateUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The user to create.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + *
+   * The user to create.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return The user. + */ + com.google.showcase.v1beta1.User getUser(); + /** + *
+   * The user to create.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java new file mode 100644 index 0000000000..5d3da97880 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\DeleteBlurb
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteBlurbRequest} + */ +public final class DeleteBlurbRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteBlurbRequest) + DeleteBlurbRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteBlurbRequest.newBuilder() to construct. + private DeleteBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteBlurbRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteBlurbRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteBlurbRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteBlurbRequest.class, com.google.showcase.v1beta1.DeleteBlurbRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.DeleteBlurbRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.DeleteBlurbRequest other = (com.google.showcase.v1beta1.DeleteBlurbRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest 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.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteBlurbRequest 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.showcase.v1beta1.DeleteBlurbRequest 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 request message for the google.showcase.v1beta1.Messaging\DeleteBlurb
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteBlurbRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteBlurbRequest) + com.google.showcase.v1beta1.DeleteBlurbRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteBlurbRequest.class, com.google.showcase.v1beta1.DeleteBlurbRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.DeleteBlurbRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteBlurbRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.DeleteBlurbRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteBlurbRequest build() { + com.google.showcase.v1beta1.DeleteBlurbRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteBlurbRequest buildPartial() { + com.google.showcase.v1beta1.DeleteBlurbRequest result = new com.google.showcase.v1beta1.DeleteBlurbRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.DeleteBlurbRequest) { + return mergeFrom((com.google.showcase.v1beta1.DeleteBlurbRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.DeleteBlurbRequest other) { + if (other == com.google.showcase.v1beta1.DeleteBlurbRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.DeleteBlurbRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.DeleteBlurbRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + 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.showcase.v1beta1.DeleteBlurbRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteBlurbRequest) + private static final com.google.showcase.v1beta1.DeleteBlurbRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteBlurbRequest(); + } + + public static com.google.showcase.v1beta1.DeleteBlurbRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBlurbRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteBlurbRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java new file mode 100644 index 0000000000..7a44659377 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface DeleteBlurbRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteBlurbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java new file mode 100644 index 0000000000..2195ae35ea --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\DeleteRoom
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteRoomRequest} + */ +public final class DeleteRoomRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteRoomRequest) + DeleteRoomRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteRoomRequest.newBuilder() to construct. + private DeleteRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteRoomRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRoomRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteRoomRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteRoomRequest.class, com.google.showcase.v1beta1.DeleteRoomRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.DeleteRoomRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.DeleteRoomRequest other = (com.google.showcase.v1beta1.DeleteRoomRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest 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.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteRoomRequest 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.showcase.v1beta1.DeleteRoomRequest 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 request message for the google.showcase.v1beta1.Messaging\DeleteRoom
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteRoomRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteRoomRequest) + com.google.showcase.v1beta1.DeleteRoomRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteRoomRequest.class, com.google.showcase.v1beta1.DeleteRoomRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.DeleteRoomRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteRoomRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.DeleteRoomRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteRoomRequest build() { + com.google.showcase.v1beta1.DeleteRoomRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteRoomRequest buildPartial() { + com.google.showcase.v1beta1.DeleteRoomRequest result = new com.google.showcase.v1beta1.DeleteRoomRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.DeleteRoomRequest) { + return mergeFrom((com.google.showcase.v1beta1.DeleteRoomRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.DeleteRoomRequest other) { + if (other == com.google.showcase.v1beta1.DeleteRoomRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.DeleteRoomRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.DeleteRoomRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + 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.showcase.v1beta1.DeleteRoomRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteRoomRequest) + private static final com.google.showcase.v1beta1.DeleteRoomRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteRoomRequest(); + } + + public static com.google.showcase.v1beta1.DeleteRoomRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRoomRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteRoomRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java new file mode 100644 index 0000000000..996f19d054 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface DeleteRoomRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteRoomRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java new file mode 100644 index 0000000000..c19f242654 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * Request for the DeleteSession method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteSessionRequest} + */ +public final class DeleteSessionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteSessionRequest) + DeleteSessionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSessionRequest.newBuilder() to construct. + private DeleteSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSessionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteSessionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteSessionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteSessionRequest.class, com.google.showcase.v1beta1.DeleteSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The session to be deleted.
+   * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+   * The session to be deleted.
+   * 
+ * + * string name = 1 [(.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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.DeleteSessionRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.DeleteSessionRequest other = (com.google.showcase.v1beta1.DeleteSessionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest 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.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteSessionRequest 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.showcase.v1beta1.DeleteSessionRequest 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 the DeleteSession method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteSessionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteSessionRequest) + com.google.showcase.v1beta1.DeleteSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteSessionRequest.class, com.google.showcase.v1beta1.DeleteSessionRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.DeleteSessionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteSessionRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.DeleteSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteSessionRequest build() { + com.google.showcase.v1beta1.DeleteSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteSessionRequest buildPartial() { + com.google.showcase.v1beta1.DeleteSessionRequest result = new com.google.showcase.v1beta1.DeleteSessionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.DeleteSessionRequest) { + return mergeFrom((com.google.showcase.v1beta1.DeleteSessionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.DeleteSessionRequest other) { + if (other == com.google.showcase.v1beta1.DeleteSessionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.DeleteSessionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.DeleteSessionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The session to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The session to be deleted.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+     * The session to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The session to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The session to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteSessionRequest) + private static final com.google.showcase.v1beta1.DeleteSessionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteSessionRequest(); + } + + public static com.google.showcase.v1beta1.DeleteSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSessionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java new file mode 100644 index 0000000000..a4df0df04a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface DeleteSessionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The session to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The session to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java new file mode 100644 index 0000000000..0375608a88 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * Request message for deleting a test.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteTestRequest} + */ +public final class DeleteTestRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteTestRequest) + DeleteTestRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteTestRequest.newBuilder() to construct. + private DeleteTestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteTestRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteTestRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteTestRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteTestRequest.class, com.google.showcase.v1beta1.DeleteTestRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The test to be deleted.
+   * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+   * The test to be deleted.
+   * 
+ * + * string name = 1 [(.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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.DeleteTestRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.DeleteTestRequest other = (com.google.showcase.v1beta1.DeleteTestRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteTestRequest 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.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteTestRequest 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.showcase.v1beta1.DeleteTestRequest 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 deleting a test.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteTestRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteTestRequest) + com.google.showcase.v1beta1.DeleteTestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteTestRequest.class, com.google.showcase.v1beta1.DeleteTestRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.DeleteTestRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteTestRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.DeleteTestRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteTestRequest build() { + com.google.showcase.v1beta1.DeleteTestRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteTestRequest buildPartial() { + com.google.showcase.v1beta1.DeleteTestRequest result = new com.google.showcase.v1beta1.DeleteTestRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.DeleteTestRequest) { + return mergeFrom((com.google.showcase.v1beta1.DeleteTestRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.DeleteTestRequest other) { + if (other == com.google.showcase.v1beta1.DeleteTestRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.DeleteTestRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.DeleteTestRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The test to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The test to be deleted.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+     * The test to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The test to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The test to be deleted.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteTestRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteTestRequest) + private static final com.google.showcase.v1beta1.DeleteTestRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteTestRequest(); + } + + public static com.google.showcase.v1beta1.DeleteTestRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTestRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteTestRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java new file mode 100644 index 0000000000..c50480e596 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface DeleteTestRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteTestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The test to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The test to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java new file mode 100644 index 0000000000..c1726da0cd --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Identity\DeleteUser
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteUserRequest} + */ +public final class DeleteUserRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteUserRequest) + DeleteUserRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteUserRequest.newBuilder() to construct. + private DeleteUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteUserRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteUserRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteUserRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteUserRequest.class, com.google.showcase.v1beta1.DeleteUserRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the user to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The resource name of the user to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.DeleteUserRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.DeleteUserRequest other = (com.google.showcase.v1beta1.DeleteUserRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteUserRequest 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.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.DeleteUserRequest 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.showcase.v1beta1.DeleteUserRequest 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 request message for the google.showcase.v1beta1.Identity\DeleteUser
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.DeleteUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteUserRequest) + com.google.showcase.v1beta1.DeleteUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.DeleteUserRequest.class, com.google.showcase.v1beta1.DeleteUserRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.DeleteUserRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteUserRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.DeleteUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteUserRequest build() { + com.google.showcase.v1beta1.DeleteUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteUserRequest buildPartial() { + com.google.showcase.v1beta1.DeleteUserRequest result = new com.google.showcase.v1beta1.DeleteUserRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.DeleteUserRequest) { + return mergeFrom((com.google.showcase.v1beta1.DeleteUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.DeleteUserRequest other) { + if (other == com.google.showcase.v1beta1.DeleteUserRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.DeleteUserRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.DeleteUserRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the user to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the user to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the user to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the user to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the user to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + 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.showcase.v1beta1.DeleteUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteUserRequest) + private static final com.google.showcase.v1beta1.DeleteUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteUserRequest(); + } + + public static com.google.showcase.v1beta1.DeleteUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteUserRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.DeleteUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java new file mode 100644 index 0000000000..8589132d61 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface DeleteUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the user to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the user to delete.
+   * 
+ * + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java new file mode 100644 index 0000000000..7f860781d4 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java @@ -0,0 +1,301 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public final class EchoOuterClass { + private EchoOuterClass() {} + 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_showcase_v1beta1_EchoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_BlockResponse_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)schema/google/showcase/v1beta1/echo.pr" + + "oto\022\027google.showcase.v1beta1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\030go" + + "ogle/api/routing.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032\037google/protobuf/timestamp.p" + + "roto\032\027google/rpc/status.proto\"\254\001\n\013EchoRe" + + "quest\022\021\n\007content\030\001 \001(\tH\000\022#\n\005error\030\002 \001(\0132" + + "\022.google.rpc.StatusH\000\0223\n\010severity\030\003 \001(\0162" + + "!.google.showcase.v1beta1.Severity\022\016\n\006he" + + "ader\030\004 \001(\t\022\024\n\014other_header\030\005 \001(\tB\n\n\010resp" + + "onse\"T\n\014EchoResponse\022\017\n\007content\030\001 \001(\t\0223\n" + + "\010severity\030\002 \001(\0162!.google.showcase.v1beta" + + "1.Severity\"C\n\rExpandRequest\022\017\n\007content\030\001" + + " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\"" + + "Q\n\022PagedExpandRequest\022\024\n\007content\030\001 \001(\tB\003" + + "\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"Y\n\030PagedExpandLegacyRequest\022\024\n\007conten" + + "t\030\001 \001(\tB\003\340A\002\022\023\n\013max_results\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"h\n\023PagedExpandResponse\0228\n\t" + + "responses\030\001 \003(\0132%.google.showcase.v1beta" + + "1.EchoResponse\022\027\n\017next_page_token\030\002 \001(\t\"" + + "(\n\027PagedExpandResponseList\022\r\n\005words\030\001 \003(" + + "\t\"\203\002\n\037PagedExpandLegacyMappedResponse\022`\n" + + "\014alphabetized\030\001 \003(\0132J.google.showcase.v1" + + "beta1.PagedExpandLegacyMappedResponse.Al" + + "phabetizedEntry\022\027\n\017next_page_token\030\002 \001(\t" + + "\032e\n\021AlphabetizedEntry\022\013\n\003key\030\001 \001(\t\022?\n\005va" + + "lue\030\002 \001(\01320.google.showcase.v1beta1.Page" + + "dExpandResponseList:\0028\001\"\331\001\n\013WaitRequest\022" + + ".\n\010end_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampH\000\022(\n\003ttl\030\004 \001(\0132\031.google.protobuf.D" + + "urationH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" + + "atusH\001\0228\n\007success\030\003 \001(\0132%.google.showcas" + + "e.v1beta1.WaitResponseH\001B\005\n\003endB\n\n\010respo" + + "nse\"\037\n\014WaitResponse\022\017\n\007content\030\001 \001(\t\"<\n\014" + + "WaitMetadata\022,\n\010end_time\030\001 \001(\0132\032.google." + + "protobuf.Timestamp\"\255\001\n\014BlockRequest\0221\n\016r" + + "esponse_delay\030\001 \001(\0132\031.google.protobuf.Du" + + "ration\022#\n\005error\030\002 \001(\0132\022.google.rpc.Statu" + + "sH\000\0229\n\007success\030\003 \001(\0132&.google.showcase.v" + + "1beta1.BlockResponseH\000B\n\n\010response\" \n\rBl" + + "ockResponse\022\017\n\007content\030\001 \001(\t*D\n\010Severity" + + "\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n\006URGE" + + "NT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Echo\022\224\003\n\004Echo\022$.g" + + "oogle.showcase.v1beta1.EchoRequest\032%.goo" + + "gle.showcase.v1beta1.EchoResponse\"\276\002\202\323\344\223" + + "\002\027\"\022/v1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n\006head" + + "er\022\031\n\006header\022\017{routing_id=**}\022+\n\006header\022" + + "!{table_name=regions/*/zones/*/**}\022\"\n\006he" + + "ader\022\030{super_id=projects/*}/**\0220\n\006header" + + "\022&{table_name=projects/*/instances/*/**}" + + "\0221\n\006header\022\'projects/*/{instance_id=inst" + + "ances/*}/**\022\030\n\014other_header\022\010{baz=**}\022#\n" + + "\014other_header\022\023{qux=projects/*}/**\022\212\001\n\006E" + + "xpand\022&.google.showcase.v1beta1.ExpandRe" + + "quest\032%.google.showcase.v1beta1.EchoResp" + + "onse\"/\202\323\344\223\002\031\"\024/v1beta1/echo:expand:\001*\332A\r" + + "content,error0\001\022z\n\007Collect\022$.google.show" + + "case.v1beta1.EchoRequest\032%.google.showca" + + "se.v1beta1.EchoResponse\" \202\323\344\223\002\032\"\025/v1beta" + + "1/echo:collect:\001*(\001\022W\n\004Chat\022$.google.sho" + + "wcase.v1beta1.EchoRequest\032%.google.showc" + + "ase.v1beta1.EchoResponse(\0010\001\022\216\001\n\013PagedEx" + + "pand\022+.google.showcase.v1beta1.PagedExpa" + + "ndRequest\032,.google.showcase.v1beta1.Page" + + "dExpandResponse\"$\202\323\344\223\002\036\"\031/v1beta1/echo:p" + + "agedExpand:\001*\022\240\001\n\021PagedExpandLegacy\0221.go" + + "ogle.showcase.v1beta1.PagedExpandLegacyR" + + "equest\032,.google.showcase.v1beta1.PagedEx" + + "pandResponse\"*\202\323\344\223\002$\"\037/v1beta1/echo:page" + + "dExpandLegacy:\001*\022\262\001\n\027PagedExpandLegacyMa" + + "pped\022+.google.showcase.v1beta1.PagedExpa" + + "ndRequest\0328.google.showcase.v1beta1.Page" + + "dExpandLegacyMappedResponse\"0\202\323\344\223\002*\"%/v1" + + "beta1/echo:pagedExpandLegacyMapped:\001*\022\211\001" + + "\n\004Wait\022$.google.showcase.v1beta1.WaitReq" + + "uest\032\035.google.longrunning.Operation\"<\202\323\344" + + "\223\002\027\"\022/v1beta1/echo:wait:\001*\312A\034\n\014WaitRespo" + + "nse\022\014WaitMetadata\022v\n\005Block\022%.google.show" + + "case.v1beta1.BlockRequest\032&.google.showc" + + "ase.v1beta1.BlockResponse\"\036\202\323\344\223\002\030\"\023/v1be" + + "ta1/echo:block:\001*\032\021\312A\016localhost:7469Bq\n\033" + + "com.google.showcase.v1beta1P\001Z4github.co" + + "m/googleapis/gapic-showcase/server/genpr" + + "oto\352\002\031Google::Showcase::V1beta1b\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.RoutingProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_EchoRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoRequest_descriptor, + new java.lang.String[] { "Content", "Error", "Severity", "Header", "OtherHeader", "Response", }); + internal_static_google_showcase_v1beta1_EchoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoResponse_descriptor, + new java.lang.String[] { "Content", "Severity", }); + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor, + new java.lang.String[] { "Content", "Error", }); + internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor, + new java.lang.String[] { "Content", "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor, + new java.lang.String[] { "Content", "MaxResults", "PageToken", }); + internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor, + new java.lang.String[] { "Responses", "NextPageToken", }); + internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor, + new java.lang.String[] { "Words", }); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor, + new java.lang.String[] { "Alphabetized", "NextPageToken", }); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor = + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_showcase_v1beta1_WaitRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_WaitRequest_descriptor, + new java.lang.String[] { "EndTime", "Ttl", "Error", "Success", "End", "Response", }); + internal_static_google_showcase_v1beta1_WaitResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_WaitResponse_descriptor, + new java.lang.String[] { "Content", }); + internal_static_google_showcase_v1beta1_WaitMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_WaitMetadata_descriptor, + new java.lang.String[] { "EndTime", }); + internal_static_google_showcase_v1beta1_BlockRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_BlockRequest_descriptor, + new java.lang.String[] { "ResponseDelay", "Error", "Success", "Response", }); + internal_static_google_showcase_v1beta1_BlockResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_BlockResponse_descriptor, + new java.lang.String[] { "Content", }); + 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.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java new file mode 100644 index 0000000000..7fb30c11fe --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java @@ -0,0 +1,1439 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message used for the Echo, Collect and Chat methods.
+ * If content or opt are set in this message then the request will succeed.
+ * If status is set in this message then the status will be returned as an
+ * error.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoRequest} + */ +public final class EchoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoRequest) + EchoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use EchoRequest.newBuilder() to construct. + private EchoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EchoRequest() { + severity_ = 0; + header_ = ""; + otherHeader_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EchoRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EchoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + responseCase_ = 1; + response_ = s; + break; + } + case 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (responseCase_ == 2) { + subBuilder = ((com.google.rpc.Status) response_).toBuilder(); + } + response_ = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.rpc.Status) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + severity_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + header_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + otherHeader_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoRequest.class, com.google.showcase.v1beta1.EchoRequest.Builder.class); + } + + private int responseCase_ = 0; + private java.lang.Object response_; + public enum ResponseCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENT(1), + ERROR(2), + RESPONSE_NOT_SET(0); + private final int value; + private ResponseCase(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 ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: return CONTENT; + case 2: return ERROR; + case 0: return RESPONSE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + /** + *
+   * The content to be echoed by the server.
+   * 
+ * + * string content = 1; + * @return Whether the content field is set. + */ + public boolean hasContent() { + return responseCase_ == 1; + } + /** + *
+   * The content to be echoed by the server.
+   * 
+ * + * string content = 1; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = ""; + if (responseCase_ == 1) { + ref = response_; + } + 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(); + if (responseCase_ == 1) { + response_ = s; + } + return s; + } + } + /** + *
+   * The content to be echoed by the server.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = ""; + if (responseCase_ == 1) { + ref = response_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (responseCase_ == 1) { + response_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+   * The error to be thrown by the server.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return responseCase_ == 2; + } + /** + *
+   * The error to be thrown by the server.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + *
+   * The error to be thrown by the server.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + public static final int SEVERITY_FIELD_NUMBER = 3; + private int severity_; + /** + *
+   * The severity to be echoed by the server.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
+   * The severity to be echoed by the server.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return The severity. + */ + @java.lang.Override public com.google.showcase.v1beta1.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.valueOf(severity_); + return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; + } + + public static final int HEADER_FIELD_NUMBER = 4; + private volatile java.lang.Object header_; + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string header = 4; + * @return The header. + */ + @java.lang.Override + public java.lang.String getHeader() { + java.lang.Object ref = header_; + 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(); + header_ = s; + return s; + } + } + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string header = 4; + * @return The bytes for header. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHeaderBytes() { + java.lang.Object ref = header_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + header_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OTHER_HEADER_FIELD_NUMBER = 5; + private volatile java.lang.Object otherHeader_; + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string other_header = 5; + * @return The otherHeader. + */ + @java.lang.Override + public java.lang.String getOtherHeader() { + java.lang.Object ref = otherHeader_; + 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(); + otherHeader_ = s; + return s; + } + } + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string other_header = 5; + * @return The bytes for otherHeader. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOtherHeaderBytes() { + java.lang.Object ref = otherHeader_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + otherHeader_ = 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 (responseCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, response_); + } + if (responseCase_ == 2) { + output.writeMessage(2, (com.google.rpc.Status) response_); + } + if (severity_ != com.google.showcase.v1beta1.Severity.UNNECESSARY.getNumber()) { + output.writeEnum(3, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(header_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, header_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(otherHeader_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, otherHeader_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, response_); + } + if (responseCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.rpc.Status) response_); + } + if (severity_ != com.google.showcase.v1beta1.Severity.UNNECESSARY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(header_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, header_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(otherHeader_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, otherHeader_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EchoRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EchoRequest other = (com.google.showcase.v1beta1.EchoRequest) obj; + + if (severity_ != other.severity_) return false; + if (!getHeader() + .equals(other.getHeader())) return false; + if (!getOtherHeader() + .equals(other.getOtherHeader())) return false; + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 1: + if (!getContent() + .equals(other.getContent())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + hash = (37 * hash) + OTHER_HEADER_FIELD_NUMBER; + hash = (53 * hash) + getOtherHeader().hashCode(); + switch (responseCase_) { + case 1: + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EchoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoRequest 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.showcase.v1beta1.EchoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoRequest 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.showcase.v1beta1.EchoRequest 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 request message used for the Echo, Collect and Chat methods.
+   * If content or opt are set in this message then the request will succeed.
+   * If status is set in this message then the status will be returned as an
+   * error.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoRequest) + com.google.showcase.v1beta1.EchoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoRequest.class, com.google.showcase.v1beta1.EchoRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EchoRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + severity_ = 0; + + header_ = ""; + + otherHeader_ = ""; + + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoRequest build() { + com.google.showcase.v1beta1.EchoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoRequest buildPartial() { + com.google.showcase.v1beta1.EchoRequest result = new com.google.showcase.v1beta1.EchoRequest(this); + if (responseCase_ == 1) { + result.response_ = response_; + } + if (responseCase_ == 2) { + if (errorBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = errorBuilder_.build(); + } + } + result.severity_ = severity_; + result.header_ = header_; + result.otherHeader_ = otherHeader_; + result.responseCase_ = responseCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.EchoRequest) { + return mergeFrom((com.google.showcase.v1beta1.EchoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EchoRequest other) { + if (other == com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()) return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (!other.getHeader().isEmpty()) { + header_ = other.header_; + onChanged(); + } + if (!other.getOtherHeader().isEmpty()) { + otherHeader_ = other.otherHeader_; + onChanged(); + } + switch (other.getResponseCase()) { + case CONTENT: { + responseCase_ = 1; + response_ = other.response_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.EchoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.EchoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int responseCase_ = 0; + private java.lang.Object response_; + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + + /** + *
+     * The content to be echoed by the server.
+     * 
+ * + * string content = 1; + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return responseCase_ == 1; + } + /** + *
+     * The content to be echoed by the server.
+     * 
+ * + * string content = 1; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = ""; + if (responseCase_ == 1) { + ref = response_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (responseCase_ == 1) { + response_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The content to be echoed by the server.
+     * 
+ * + * string content = 1; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = ""; + if (responseCase_ == 1) { + ref = response_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (responseCase_ == 1) { + response_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The content to be echoed by the server.
+     * 
+ * + * string content = 1; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseCase_ = 1; + response_ = value; + onChanged(); + return this; + } + /** + *
+     * The content to be echoed by the server.
+     * 
+ * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The content to be echoed by the server.
+     * 
+ * + * string content = 1; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseCase_ = 1; + response_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return responseCase_ == 2; + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (responseCase_ == 2) { + return errorBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (responseCase_ == 2 && + response_ != com.google.rpc.Status.getDefaultInstance()) { + response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 2) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if ((responseCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+     * The error to be thrown by the server.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(responseCase_ == 2)) { + response_ = com.google.rpc.Status.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int severity_ = 0; + /** + *
+     * The severity to be echoed by the server.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
+     * The severity to be echoed by the server.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + + severity_ = value; + onChanged(); + return this; + } + /** + *
+     * The severity to be echoed by the server.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return The severity. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.valueOf(severity_); + return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; + } + /** + *
+     * The severity to be echoed by the server.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.showcase.v1beta1.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The severity to be echoed by the server.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object header_ = ""; + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string header = 4; + * @return The header. + */ + public java.lang.String getHeader() { + java.lang.Object ref = header_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + header_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string header = 4; + * @return The bytes for header. + */ + public com.google.protobuf.ByteString + getHeaderBytes() { + java.lang.Object ref = header_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + header_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string header = 4; + * @param value The header to set. + * @return This builder for chaining. + */ + public Builder setHeader( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + header_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string header = 4; + * @return This builder for chaining. + */ + public Builder clearHeader() { + + header_ = getDefaultInstance().getHeader(); + onChanged(); + return this; + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string header = 4; + * @param value The bytes for header to set. + * @return This builder for chaining. + */ + public Builder setHeaderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + header_ = value; + onChanged(); + return this; + } + + private java.lang.Object otherHeader_ = ""; + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string other_header = 5; + * @return The otherHeader. + */ + public java.lang.String getOtherHeader() { + java.lang.Object ref = otherHeader_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + otherHeader_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string other_header = 5; + * @return The bytes for otherHeader. + */ + public com.google.protobuf.ByteString + getOtherHeaderBytes() { + java.lang.Object ref = otherHeader_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + otherHeader_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string other_header = 5; + * @param value The otherHeader to set. + * @return This builder for chaining. + */ + public Builder setOtherHeader( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + otherHeader_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string other_header = 5; + * @return This builder for chaining. + */ + public Builder clearOtherHeader() { + + otherHeader_ = getDefaultInstance().getOtherHeader(); + onChanged(); + return this; + } + /** + *
+     * Optional. This field can be set to test the routing annotation on the Echo method.
+     * 
+ * + * string other_header = 5; + * @param value The bytes for otherHeader to set. + * @return This builder for chaining. + */ + public Builder setOtherHeaderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + otherHeader_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoRequest) + private static final com.google.showcase.v1beta1.EchoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoRequest(); + } + + public static com.google.showcase.v1beta1.EchoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EchoRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java new file mode 100644 index 0000000000..08bd7d605f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface EchoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The content to be echoed by the server.
+   * 
+ * + * string content = 1; + * @return Whether the content field is set. + */ + boolean hasContent(); + /** + *
+   * The content to be echoed by the server.
+   * 
+ * + * string content = 1; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The content to be echoed by the server.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); + + /** + *
+   * The error to be thrown by the server.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + *
+   * The error to be thrown by the server.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + com.google.rpc.Status getError(); + /** + *
+   * The error to be thrown by the server.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + *
+   * The severity to be echoed by the server.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + *
+   * The severity to be echoed by the server.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 3; + * @return The severity. + */ + com.google.showcase.v1beta1.Severity getSeverity(); + + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string header = 4; + * @return The header. + */ + java.lang.String getHeader(); + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string header = 4; + * @return The bytes for header. + */ + com.google.protobuf.ByteString + getHeaderBytes(); + + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string other_header = 5; + * @return The otherHeader. + */ + java.lang.String getOtherHeader(); + /** + *
+   * Optional. This field can be set to test the routing annotation on the Echo method.
+   * 
+ * + * string other_header = 5; + * @return The bytes for otherHeader. + */ + com.google.protobuf.ByteString + getOtherHeaderBytes(); + + public com.google.showcase.v1beta1.EchoRequest.ResponseCase getResponseCase(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java new file mode 100644 index 0000000000..7173d88f4b --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java @@ -0,0 +1,719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the Echo methods.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoResponse} + */ +public final class EchoResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoResponse) + EchoResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use EchoResponse.newBuilder() to construct. + private EchoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EchoResponse() { + content_ = ""; + severity_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EchoResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EchoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + severity_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoResponse.class, com.google.showcase.v1beta1.EchoResponse.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private volatile java.lang.Object content_; + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEVERITY_FIELD_NUMBER = 2; + private int severity_; + /** + *
+   * The severity specified in the request.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
+   * The severity specified in the request.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return The severity. + */ + @java.lang.Override public com.google.showcase.v1beta1.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.valueOf(severity_); + return result == null ? com.google.showcase.v1beta1.Severity.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + if (severity_ != com.google.showcase.v1beta1.Severity.UNNECESSARY.getNumber()) { + output.writeEnum(2, severity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + if (severity_ != com.google.showcase.v1beta1.Severity.UNNECESSARY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, severity_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EchoResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EchoResponse other = (com.google.showcase.v1beta1.EchoResponse) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (severity_ != other.severity_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EchoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoResponse 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.showcase.v1beta1.EchoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoResponse 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.showcase.v1beta1.EchoResponse 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 response message for the Echo methods.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoResponse) + com.google.showcase.v1beta1.EchoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoResponse.class, com.google.showcase.v1beta1.EchoResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EchoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + severity_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoResponse build() { + com.google.showcase.v1beta1.EchoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoResponse buildPartial() { + com.google.showcase.v1beta1.EchoResponse result = new com.google.showcase.v1beta1.EchoResponse(this); + result.content_ = content_; + result.severity_ = severity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.EchoResponse) { + return mergeFrom((com.google.showcase.v1beta1.EchoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EchoResponse other) { + if (other == com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.EchoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.EchoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + *
+     * The content specified in the request.
+     * 
+ * + * string content = 1; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + private int severity_ = 0; + /** + *
+     * The severity specified in the request.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
+     * The severity specified in the request.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + + severity_ = value; + onChanged(); + return this; + } + /** + *
+     * The severity specified in the request.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return The severity. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.valueOf(severity_); + return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; + } + /** + *
+     * The severity specified in the request.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.showcase.v1beta1.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The severity specified in the request.
+     * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = 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.showcase.v1beta1.EchoResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoResponse) + private static final com.google.showcase.v1beta1.EchoResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoResponse(); + } + + public static com.google.showcase.v1beta1.EchoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EchoResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java new file mode 100644 index 0000000000..5f4e56f2df --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface EchoResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); + + /** + *
+   * The severity specified in the request.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + *
+   * The severity specified in the request.
+   * 
+ * + * .google.showcase.v1beta1.Severity severity = 2; + * @return The severity. + */ + com.google.showcase.v1beta1.Severity getSeverity(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java new file mode 100644 index 0000000000..a24e5e4b9a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java @@ -0,0 +1,502 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.EnumRequest} + */ +public final class EnumRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EnumRequest) + EnumRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use EnumRequest.newBuilder() to construct. + private EnumRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EnumRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EnumRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EnumRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + unknownEnum_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EnumRequest.class, com.google.showcase.v1beta1.EnumRequest.Builder.class); + } + + public static final int UNKNOWN_ENUM_FIELD_NUMBER = 1; + private boolean unknownEnum_; + /** + *
+   * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
+   * 
+ * + * bool unknown_enum = 1; + * @return The unknownEnum. + */ + @java.lang.Override + public boolean getUnknownEnum() { + return unknownEnum_; + } + + 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 (unknownEnum_ != false) { + output.writeBool(1, unknownEnum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (unknownEnum_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, unknownEnum_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EnumRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EnumRequest other = (com.google.showcase.v1beta1.EnumRequest) obj; + + if (getUnknownEnum() + != other.getUnknownEnum()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UNKNOWN_ENUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUnknownEnum()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EnumRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EnumRequest 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.showcase.v1beta1.EnumRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EnumRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EnumRequest 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.showcase.v1beta1.EnumRequest 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.EnumRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EnumRequest) + com.google.showcase.v1beta1.EnumRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EnumRequest.class, com.google.showcase.v1beta1.EnumRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EnumRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + unknownEnum_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EnumRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumRequest build() { + com.google.showcase.v1beta1.EnumRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumRequest buildPartial() { + com.google.showcase.v1beta1.EnumRequest result = new com.google.showcase.v1beta1.EnumRequest(this); + result.unknownEnum_ = unknownEnum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.EnumRequest) { + return mergeFrom((com.google.showcase.v1beta1.EnumRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EnumRequest other) { + if (other == com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()) return this; + if (other.getUnknownEnum() != false) { + setUnknownEnum(other.getUnknownEnum()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.EnumRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.EnumRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean unknownEnum_ ; + /** + *
+     * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
+     * 
+ * + * bool unknown_enum = 1; + * @return The unknownEnum. + */ + @java.lang.Override + public boolean getUnknownEnum() { + return unknownEnum_; + } + /** + *
+     * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
+     * 
+ * + * bool unknown_enum = 1; + * @param value The unknownEnum to set. + * @return This builder for chaining. + */ + public Builder setUnknownEnum(boolean value) { + + unknownEnum_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
+     * 
+ * + * bool unknown_enum = 1; + * @return This builder for chaining. + */ + public Builder clearUnknownEnum() { + + unknownEnum_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EnumRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EnumRequest) + private static final com.google.showcase.v1beta1.EnumRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EnumRequest(); + } + + public static com.google.showcase.v1beta1.EnumRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnumRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnumRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java new file mode 100644 index 0000000000..2b83d2ac25 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface EnumRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EnumRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
+   * 
+ * + * bool unknown_enum = 1; + * @return The unknownEnum. + */ + boolean getUnknownEnum(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java new file mode 100644 index 0000000000..d3908f7a0b --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java @@ -0,0 +1,781 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.EnumResponse} + */ +public final class EnumResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EnumResponse) + EnumResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use EnumResponse.newBuilder() to construct. + private EnumResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EnumResponse() { + continent_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EnumResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EnumResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.EnumRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.google.showcase.v1beta1.EnumRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + continent_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EnumResponse.class, com.google.showcase.v1beta1.EnumResponse.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.EnumRequest request_; + /** + *
+   * The original request for a known or unknown enum from the server.
+   * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + * @return Whether the request field is set. + */ + @java.lang.Override + public boolean hasRequest() { + return request_ != null; + } + /** + *
+   * The original request for a known or unknown enum from the server.
+   * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + * @return The request. + */ + @java.lang.Override + public com.google.showcase.v1beta1.EnumRequest getRequest() { + return request_ == null ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + } + /** + *
+   * The original request for a known or unknown enum from the server.
+   * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int CONTINENT_FIELD_NUMBER = 2; + private int continent_; + /** + *
+   * The actual enum the server provided.
+   * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return The enum numeric value on the wire for continent. + */ + @java.lang.Override public int getContinentValue() { + return continent_; + } + /** + *
+   * The actual enum the server provided.
+   * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return The continent. + */ + @java.lang.Override public com.google.showcase.v1beta1.Continent getContinent() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.valueOf(continent_); + return result == null ? com.google.showcase.v1beta1.Continent.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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (continent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { + output.writeEnum(2, continent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (continent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, continent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EnumResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EnumResponse other = (com.google.showcase.v1beta1.EnumResponse) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (continent_ != other.continent_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CONTINENT_FIELD_NUMBER; + hash = (53 * hash) + continent_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EnumResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EnumResponse 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.showcase.v1beta1.EnumResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EnumResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EnumResponse 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.showcase.v1beta1.EnumResponse 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.EnumResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EnumResponse) + com.google.showcase.v1beta1.EnumResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EnumResponse.class, com.google.showcase.v1beta1.EnumResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EnumResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + continent_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EnumResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumResponse build() { + com.google.showcase.v1beta1.EnumResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumResponse buildPartial() { + com.google.showcase.v1beta1.EnumResponse result = new com.google.showcase.v1beta1.EnumResponse(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.continent_ = continent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.EnumResponse) { + return mergeFrom((com.google.showcase.v1beta1.EnumResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EnumResponse other) { + if (other == com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.continent_ != 0) { + setContinentValue(other.getContinentValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.EnumResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.EnumResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.EnumRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumRequest.Builder, com.google.showcase.v1beta1.EnumRequestOrBuilder> requestBuilder_; + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + * @return The request. + */ + public com.google.showcase.v1beta1.EnumRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + public Builder setRequest(com.google.showcase.v1beta1.EnumRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + public Builder setRequest( + com.google.showcase.v1beta1.EnumRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + public Builder mergeRequest(com.google.showcase.v1beta1.EnumRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.showcase.v1beta1.EnumRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + public com.google.showcase.v1beta1.EnumRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + public com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + } + } + /** + *
+     * The original request for a known or unknown enum from the server.
+     * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumRequest.Builder, com.google.showcase.v1beta1.EnumRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumRequest.Builder, com.google.showcase.v1beta1.EnumRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private int continent_ = 0; + /** + *
+     * The actual enum the server provided.
+     * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return The enum numeric value on the wire for continent. + */ + @java.lang.Override public int getContinentValue() { + return continent_; + } + /** + *
+     * The actual enum the server provided.
+     * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @param value The enum numeric value on the wire for continent to set. + * @return This builder for chaining. + */ + public Builder setContinentValue(int value) { + + continent_ = value; + onChanged(); + return this; + } + /** + *
+     * The actual enum the server provided.
+     * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return The continent. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Continent getContinent() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.valueOf(continent_); + return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; + } + /** + *
+     * The actual enum the server provided.
+     * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @param value The continent to set. + * @return This builder for chaining. + */ + public Builder setContinent(com.google.showcase.v1beta1.Continent value) { + if (value == null) { + throw new NullPointerException(); + } + + continent_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The actual enum the server provided.
+     * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return This builder for chaining. + */ + public Builder clearContinent() { + + continent_ = 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.showcase.v1beta1.EnumResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EnumResponse) + private static final com.google.showcase.v1beta1.EnumResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EnumResponse(); + } + + public static com.google.showcase.v1beta1.EnumResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnumResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnumResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EnumResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java new file mode 100644 index 0000000000..d202a6d4e6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface EnumResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EnumResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The original request for a known or unknown enum from the server.
+   * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + *
+   * The original request for a known or unknown enum from the server.
+   * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + * @return The request. + */ + com.google.showcase.v1beta1.EnumRequest getRequest(); + /** + *
+   * The original request for a known or unknown enum from the server.
+   * 
+ * + * .google.showcase.v1beta1.EnumRequest request = 1; + */ + com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder(); + + /** + *
+   * The actual enum the server provided.
+   * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return The enum numeric value on the wire for continent. + */ + int getContinentValue(); + /** + *
+   * The actual enum the server provided.
+   * 
+ * + * .google.showcase.v1beta1.Continent continent = 2; + * @return The continent. + */ + com.google.showcase.v1beta1.Continent getContinent(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java new file mode 100644 index 0000000000..0ced33e1c2 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java @@ -0,0 +1,831 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the Expand method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ExpandRequest} + */ +public final class ExpandRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ExpandRequest) + ExpandRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExpandRequest.newBuilder() to construct. + private ExpandRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExpandRequest() { + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExpandRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExpandRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + case 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ExpandRequest.class, com.google.showcase.v1beta1.ExpandRequest.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private volatile java.lang.Object content_; + /** + *
+   * The content that will be split into words and returned on the stream.
+   * 
+ * + * string content = 1; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
+   * The content that will be split into words and returned on the stream.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + private com.google.rpc.Status error_; + /** + *
+   * The error that is thrown after all words are sent on the stream.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + *
+   * The error that is thrown after all words are sent on the stream.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + *
+   * The error that is thrown after all words are sent on the stream.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + 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(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + if (error_ != null) { + output.writeMessage(2, getError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getError()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ExpandRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ExpandRequest other = (com.google.showcase.v1beta1.ExpandRequest) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ExpandRequest 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.showcase.v1beta1.ExpandRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ExpandRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ExpandRequest 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.showcase.v1beta1.ExpandRequest 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 request message for the Expand method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ExpandRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ExpandRequest) + com.google.showcase.v1beta1.ExpandRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ExpandRequest.class, com.google.showcase.v1beta1.ExpandRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ExpandRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ExpandRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ExpandRequest build() { + com.google.showcase.v1beta1.ExpandRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ExpandRequest buildPartial() { + com.google.showcase.v1beta1.ExpandRequest result = new com.google.showcase.v1beta1.ExpandRequest(this); + result.content_ = content_; + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ExpandRequest) { + return mergeFrom((com.google.showcase.v1beta1.ExpandRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ExpandRequest other) { + if (other == com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ExpandRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ExpandRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + *
+     * The content that will be split into words and returned on the stream.
+     * 
+ * + * string content = 1; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The content that will be split into words and returned on the stream.
+     * 
+ * + * string content = 1; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The content that will be split into words and returned on the stream.
+     * 
+ * + * string content = 1; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * The content that will be split into words and returned on the stream.
+     * 
+ * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + *
+     * The content that will be split into words and returned on the stream.
+     * 
+ * + * string content = 1; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = + com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + *
+     * The error that is thrown after all words are sent on the stream.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @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.showcase.v1beta1.ExpandRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ExpandRequest) + private static final com.google.showcase.v1beta1.ExpandRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ExpandRequest(); + } + + public static com.google.showcase.v1beta1.ExpandRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpandRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExpandRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ExpandRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java new file mode 100644 index 0000000000..3286ec98c7 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface ExpandRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ExpandRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The content that will be split into words and returned on the stream.
+   * 
+ * + * string content = 1; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The content that will be split into words and returned on the stream.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); + + /** + *
+   * The error that is thrown after all words are sent on the stream.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + *
+   * The error that is thrown after all words are sent on the stream.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + com.google.rpc.Status getError(); + /** + *
+   * The error that is thrown after all words are sent on the stream.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java new file mode 100644 index 0000000000..0080047610 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\GetBlurb
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetBlurbRequest} + */ +public final class GetBlurbRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetBlurbRequest) + GetBlurbRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetBlurbRequest.newBuilder() to construct. + private GetBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetBlurbRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetBlurbRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetBlurbRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetBlurbRequest.class, com.google.showcase.v1beta1.GetBlurbRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.GetBlurbRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.GetBlurbRequest other = (com.google.showcase.v1beta1.GetBlurbRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetBlurbRequest 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.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetBlurbRequest 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.showcase.v1beta1.GetBlurbRequest 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 request message for the google.showcase.v1beta1.Messaging\GetBlurb
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetBlurbRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetBlurbRequest) + com.google.showcase.v1beta1.GetBlurbRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetBlurbRequest.class, com.google.showcase.v1beta1.GetBlurbRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.GetBlurbRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetBlurbRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.GetBlurbRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetBlurbRequest build() { + com.google.showcase.v1beta1.GetBlurbRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetBlurbRequest buildPartial() { + com.google.showcase.v1beta1.GetBlurbRequest result = new com.google.showcase.v1beta1.GetBlurbRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.GetBlurbRequest) { + return mergeFrom((com.google.showcase.v1beta1.GetBlurbRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.GetBlurbRequest other) { + if (other == com.google.showcase.v1beta1.GetBlurbRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.GetBlurbRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.GetBlurbRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested blurb.
+     * 
+ * + * 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; + 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.showcase.v1beta1.GetBlurbRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetBlurbRequest) + private static final com.google.showcase.v1beta1.GetBlurbRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetBlurbRequest(); + } + + public static com.google.showcase.v1beta1.GetBlurbRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBlurbRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetBlurbRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java new file mode 100644 index 0000000000..0d6d925511 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface GetBlurbRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetBlurbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the requested blurb.
+   * 
+ * + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java new file mode 100644 index 0000000000..742722b6cb --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\GetRoom
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetRoomRequest} + */ +public final class GetRoomRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetRoomRequest) + GetRoomRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetRoomRequest.newBuilder() to construct. + private GetRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRoomRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetRoomRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetRoomRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetRoomRequest.class, com.google.showcase.v1beta1.GetRoomRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.GetRoomRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.GetRoomRequest other = (com.google.showcase.v1beta1.GetRoomRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetRoomRequest 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.showcase.v1beta1.GetRoomRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetRoomRequest 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.showcase.v1beta1.GetRoomRequest 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 request message for the google.showcase.v1beta1.Messaging\GetRoom
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetRoomRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetRoomRequest) + com.google.showcase.v1beta1.GetRoomRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetRoomRequest.class, com.google.showcase.v1beta1.GetRoomRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.GetRoomRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetRoomRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.GetRoomRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetRoomRequest build() { + com.google.showcase.v1beta1.GetRoomRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetRoomRequest buildPartial() { + com.google.showcase.v1beta1.GetRoomRequest result = new com.google.showcase.v1beta1.GetRoomRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.GetRoomRequest) { + return mergeFrom((com.google.showcase.v1beta1.GetRoomRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.GetRoomRequest other) { + if (other == com.google.showcase.v1beta1.GetRoomRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.GetRoomRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.GetRoomRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested room.
+     * 
+ * + * 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; + 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.showcase.v1beta1.GetRoomRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetRoomRequest) + private static final com.google.showcase.v1beta1.GetRoomRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetRoomRequest(); + } + + public static com.google.showcase.v1beta1.GetRoomRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRoomRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetRoomRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java new file mode 100644 index 0000000000..72da927362 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface GetRoomRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetRoomRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the requested room.
+   * 
+ * + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java new file mode 100644 index 0000000000..9864b1d455 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.GetSequenceReportRequest} + */ +public final class GetSequenceReportRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetSequenceReportRequest) + GetSequenceReportRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSequenceReportRequest.newBuilder() to construct. + private GetSequenceReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSequenceReportRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSequenceReportRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSequenceReportRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetSequenceReportRequest.class, com.google.showcase.v1beta1.GetSequenceReportRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * 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; + } + } + /** + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.GetSequenceReportRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.GetSequenceReportRequest other = (com.google.showcase.v1beta1.GetSequenceReportRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest 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.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetSequenceReportRequest 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.showcase.v1beta1.GetSequenceReportRequest 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.GetSequenceReportRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetSequenceReportRequest) + com.google.showcase.v1beta1.GetSequenceReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetSequenceReportRequest.class, com.google.showcase.v1beta1.GetSequenceReportRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.GetSequenceReportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSequenceReportRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.GetSequenceReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSequenceReportRequest build() { + com.google.showcase.v1beta1.GetSequenceReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSequenceReportRequest buildPartial() { + com.google.showcase.v1beta1.GetSequenceReportRequest result = new com.google.showcase.v1beta1.GetSequenceReportRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.GetSequenceReportRequest) { + return mergeFrom((com.google.showcase.v1beta1.GetSequenceReportRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.GetSequenceReportRequest other) { + if (other == com.google.showcase.v1beta1.GetSequenceReportRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.GetSequenceReportRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.GetSequenceReportRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + onChanged(); + return this; + } + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * 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; + 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.showcase.v1beta1.GetSequenceReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetSequenceReportRequest) + private static final com.google.showcase.v1beta1.GetSequenceReportRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetSequenceReportRequest(); + } + + public static com.google.showcase.v1beta1.GetSequenceReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSequenceReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSequenceReportRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSequenceReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java new file mode 100644 index 0000000000..e8f9cb6049 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface GetSequenceReportRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetSequenceReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java new file mode 100644 index 0000000000..eaf565f7c4 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for the GetSession method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetSessionRequest} + */ +public final class GetSessionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetSessionRequest) + GetSessionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSessionRequest.newBuilder() to construct. + private GetSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSessionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSessionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSessionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetSessionRequest.class, com.google.showcase.v1beta1.GetSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The session to be retrieved.
+   * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+   * The session to be retrieved.
+   * 
+ * + * string name = 1 [(.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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.GetSessionRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.GetSessionRequest other = (com.google.showcase.v1beta1.GetSessionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetSessionRequest 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.showcase.v1beta1.GetSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetSessionRequest 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.showcase.v1beta1.GetSessionRequest 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 request for the GetSession method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetSessionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetSessionRequest) + com.google.showcase.v1beta1.GetSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetSessionRequest.class, com.google.showcase.v1beta1.GetSessionRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.GetSessionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSessionRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.GetSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSessionRequest build() { + com.google.showcase.v1beta1.GetSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSessionRequest buildPartial() { + com.google.showcase.v1beta1.GetSessionRequest result = new com.google.showcase.v1beta1.GetSessionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.GetSessionRequest) { + return mergeFrom((com.google.showcase.v1beta1.GetSessionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.GetSessionRequest other) { + if (other == com.google.showcase.v1beta1.GetSessionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.GetSessionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.GetSessionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The session to be retrieved.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The session to be retrieved.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+     * The session to be retrieved.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The session to be retrieved.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The session to be retrieved.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetSessionRequest) + private static final com.google.showcase.v1beta1.GetSessionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetSessionRequest(); + } + + public static com.google.showcase.v1beta1.GetSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSessionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java new file mode 100644 index 0000000000..b51b769709 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface GetSessionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The session to be retrieved.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The session to be retrieved.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java new file mode 100644 index 0000000000..8f950d71af --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Identity\GetUser
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetUserRequest} + */ +public final class GetUserRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetUserRequest) + GetUserRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetUserRequest.newBuilder() to construct. + private GetUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetUserRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetUserRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetUserRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetUserRequest.class, com.google.showcase.v1beta1.GetUserRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the requested user.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the requested user.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.GetUserRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.GetUserRequest other = (com.google.showcase.v1beta1.GetUserRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetUserRequest 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.showcase.v1beta1.GetUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.GetUserRequest 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.showcase.v1beta1.GetUserRequest 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 request message for the google.showcase.v1beta1.Identity\GetUser
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.GetUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetUserRequest) + com.google.showcase.v1beta1.GetUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.GetUserRequest.class, com.google.showcase.v1beta1.GetUserRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.GetUserRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetUserRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.GetUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetUserRequest build() { + com.google.showcase.v1beta1.GetUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetUserRequest buildPartial() { + com.google.showcase.v1beta1.GetUserRequest result = new com.google.showcase.v1beta1.GetUserRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.GetUserRequest) { + return mergeFrom((com.google.showcase.v1beta1.GetUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.GetUserRequest other) { + if (other == com.google.showcase.v1beta1.GetUserRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.GetUserRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.GetUserRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the requested user.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested user.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested user.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested user.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested user.
+     * 
+ * + * 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; + 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.showcase.v1beta1.GetUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetUserRequest) + private static final com.google.showcase.v1beta1.GetUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetUserRequest(); + } + + public static com.google.showcase.v1beta1.GetUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetUserRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.GetUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java new file mode 100644 index 0000000000..d701822965 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface GetUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the requested user.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the requested user.
+   * 
+ * + * 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/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java new file mode 100644 index 0000000000..2e42ad5a01 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public final class IdentityOuterClass { + private IdentityOuterClass() {} + 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_showcase_v1beta1_User_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListUsersResponse_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-schema/google/showcase/v1beta1/identit" + + "y.proto\022\027google.showcase.v1beta1\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\033google/prot" + + "obuf/empty.proto\032 google/protobuf/field_" + + "mask.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\204\003\n\004User\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022\022\n\005email\030\003 \001(\tB\003\340A\002\0224\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022\020\n\003age\030\006 \001(\005H\000\210\001\001\022" + + "\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nickname\030\010 " + + "\001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001(\010H\003" + + "\210\001\001:/\352A,\n\034showcase.googleapis.com/User\022\014" + + "users/{user}B\006\n\004_ageB\016\n\014_height_feetB\013\n\t" + + "_nicknameB\027\n\025_enable_notifications\"@\n\021Cr" + + "eateUserRequest\022+\n\004user\030\001 \001(\0132\035.google.s" + + "howcase.v1beta1.User\"D\n\016GetUserRequest\0222" + + "\n\004name\030\001 \001(\tB$\372A\036\n\034showcase.googleapis.c" + + "om/User\340A\002\"q\n\021UpdateUserRequest\022+\n\004user\030" + + "\001 \001(\0132\035.google.showcase.v1beta1.User\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"G\n\021DeleteUserRequest\0222\n\004name\030\001 \001(\t" + + "B$\372A\036\n\034showcase.googleapis.com/User\340A\002\"9" + + "\n\020ListUsersRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n" + + "\npage_token\030\002 \001(\t\"Z\n\021ListUsersResponse\022," + + "\n\005users\030\001 \003(\0132\035.google.showcase.v1beta1." + + "User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010Identi" + + "ty\022\363\001\n\nCreateUser\022*.google.showcase.v1be" + + "ta1.CreateUserRequest\032\035.google.showcase." + + "v1beta1.User\"\231\001\202\323\344\223\002\023\"\016/v1beta1/users:\001*" + + "\332A\034user.display_name,user.email\332A^user.d" + + "isplay_name,user.email,user.age,user.nic" + + "kname,user.enable_notifications,user.hei" + + "ght_feet\022y\n\007GetUser\022\'.google.showcase.v1" + + "beta1.GetUserRequest\032\035.google.showcase.v" + + "1beta1.User\"&\202\323\344\223\002\031\022\027/v1beta1/{name=user" + + "s/*}\332A\004name\022\203\001\n\nUpdateUser\022*.google.show" + + "case.v1beta1.UpdateUserRequest\032\035.google." + + "showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1beta1/" + + "{user.name=users/*}:\004user\022x\n\nDeleteUser\022" + + "*.google.showcase.v1beta1.DeleteUserRequ" + + "est\032\026.google.protobuf.Empty\"&\202\323\344\223\002\031*\027/v1" + + "beta1/{name=users/*}\332A\004name\022z\n\tListUsers" + + "\022).google.showcase.v1beta1.ListUsersRequ" + + "est\032*.google.showcase.v1beta1.ListUsersR" + + "esponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312A\016loca" + + "lhost:7469Bq\n\033com.google.showcase.v1beta" + + "1P\001Z4github.com/googleapis/gapic-showcas" + + "e/server/genproto\352\002\031Google::Showcase::V1" + + "beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_User_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_User_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Email", "CreateTime", "UpdateTime", "Age", "HeightFeet", "Nickname", "EnableNotifications", "Age", "HeightFeet", "Nickname", "EnableNotifications", }); + internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor, + new java.lang.String[] { "User", }); + internal_static_google_showcase_v1beta1_GetUserRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetUserRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor, + new java.lang.String[] { "User", "UpdateMask", }); + internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor, + new java.lang.String[] { "Users", "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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java new file mode 100644 index 0000000000..685fb2c112 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java @@ -0,0 +1,1136 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * An issue found in the test.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Issue} + */ +public final class Issue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Issue) + IssueOrBuilder { +private static final long serialVersionUID = 0L; + // Use Issue.newBuilder() to construct. + private Issue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Issue() { + type_ = 0; + severity_ = 0; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Issue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Issue( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + severity_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Issue.class, com.google.showcase.v1beta1.Issue.Builder.class); + } + + /** + *
+   * The different potential types of issues.
+   * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.Issue.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+     * The test was never instrumented.
+     * 
+ * + * SKIPPED = 1; + */ + SKIPPED(1), + /** + *
+     * The test was started but never confirmed.
+     * 
+ * + * PENDING = 2; + */ + PENDING(2), + /** + *
+     * The test was instrumented, but Showcase got an unexpected
+     * value when the generator tried to confirm success.
+     * 
+ * + * INCORRECT_CONFIRMATION = 3; + */ + INCORRECT_CONFIRMATION(3), + UNRECOGNIZED(-1), + ; + + /** + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The test was never instrumented.
+     * 
+ * + * SKIPPED = 1; + */ + public static final int SKIPPED_VALUE = 1; + /** + *
+     * The test was started but never confirmed.
+     * 
+ * + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + /** + *
+     * The test was instrumented, but Showcase got an unexpected
+     * value when the generator tried to confirm success.
+     * 
+ * + * INCORRECT_CONFIRMATION = 3; + */ + public static final int INCORRECT_CONFIRMATION_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return SKIPPED; + case 2: return PENDING; + case 3: return INCORRECT_CONFIRMATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.showcase.v1beta1.Issue.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Issue.Type) + } + + /** + *
+   * Severity levels.
+   * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.Issue.Severity} + */ + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + *
+     * Errors.
+     * 
+ * + * ERROR = 1; + */ + ERROR(1), + /** + *
+     * Warnings.
+     * 
+ * + * WARNING = 2; + */ + WARNING(2), + UNRECOGNIZED(-1), + ; + + /** + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + *
+     * Errors.
+     * 
+ * + * ERROR = 1; + */ + public static final int ERROR_VALUE = 1; + /** + *
+     * Warnings.
+     * 
+ * + * WARNING = 2; + */ + public static final int WARNING_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 Severity 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 Severity forNumber(int value) { + switch (value) { + case 0: return SEVERITY_UNSPECIFIED; + case 1: return ERROR; + case 2: return WARNING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.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.showcase.v1beta1.Issue.getDescriptor().getEnumTypes().get(1); + } + + private static final Severity[] VALUES = values(); + + public static Severity 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 Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Issue.Severity) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+   * The type of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+   * The type of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return The type. + */ + @java.lang.Override public com.google.showcase.v1beta1.Issue.Type getType() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Issue.Type result = com.google.showcase.v1beta1.Issue.Type.valueOf(type_); + return result == null ? com.google.showcase.v1beta1.Issue.Type.UNRECOGNIZED : result; + } + + public static final int SEVERITY_FIELD_NUMBER = 2; + private int severity_; + /** + *
+   * The severity of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
+   * The severity of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return The severity. + */ + @java.lang.Override public com.google.showcase.v1beta1.Issue.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Issue.Severity result = com.google.showcase.v1beta1.Issue.Severity.valueOf(severity_); + return result == null ? com.google.showcase.v1beta1.Issue.Severity.UNRECOGNIZED : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+   * A description of the issue.
+   * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+   * A description of the issue.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = 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 (type_ != com.google.showcase.v1beta1.Issue.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (severity_ != com.google.showcase.v1beta1.Issue.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(2, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.showcase.v1beta1.Issue.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (severity_ != com.google.showcase.v1beta1.Issue.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Issue)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Issue other = (com.google.showcase.v1beta1.Issue) obj; + + if (type_ != other.type_) return false; + if (severity_ != other.severity_) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Issue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Issue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Issue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Issue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Issue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Issue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Issue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Issue 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.showcase.v1beta1.Issue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Issue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Issue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Issue 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.showcase.v1beta1.Issue 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; + } + /** + *
+   * An issue found in the test.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Issue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Issue) + com.google.showcase.v1beta1.IssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Issue.class, com.google.showcase.v1beta1.Issue.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Issue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + severity_ = 0; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Issue getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Issue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Issue build() { + com.google.showcase.v1beta1.Issue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Issue buildPartial() { + com.google.showcase.v1beta1.Issue result = new com.google.showcase.v1beta1.Issue(this); + result.type_ = type_; + result.severity_ = severity_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Issue) { + return mergeFrom((com.google.showcase.v1beta1.Issue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Issue other) { + if (other == com.google.showcase.v1beta1.Issue.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Issue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Issue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+     * The type of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The type of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+     * The type of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return The type. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Issue.Type getType() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Issue.Type result = com.google.showcase.v1beta1.Issue.Type.valueOf(type_); + return result == null ? com.google.showcase.v1beta1.Issue.Type.UNRECOGNIZED : result; + } + /** + *
+     * The type of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.showcase.v1beta1.Issue.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The type of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int severity_ = 0; + /** + *
+     * The severity of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
+     * The severity of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + + severity_ = value; + onChanged(); + return this; + } + /** + *
+     * The severity of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return The severity. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Issue.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Issue.Severity result = com.google.showcase.v1beta1.Issue.Severity.valueOf(severity_); + return result == null ? com.google.showcase.v1beta1.Issue.Severity.UNRECOGNIZED : result; + } + /** + *
+     * The severity of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.showcase.v1beta1.Issue.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The severity of the issue.
+     * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * A description of the issue.
+     * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A description of the issue.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A description of the issue.
+     * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * A description of the issue.
+     * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * A description of the issue.
+     * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Issue) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Issue) + private static final com.google.showcase.v1beta1.Issue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Issue(); + } + + public static com.google.showcase.v1beta1.Issue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Issue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Issue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Issue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java new file mode 100644 index 0000000000..4371799dce --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface IssueOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Issue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The type of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+   * The type of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Type type = 1; + * @return The type. + */ + com.google.showcase.v1beta1.Issue.Type getType(); + + /** + *
+   * The severity of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + *
+   * The severity of the issue.
+   * 
+ * + * .google.showcase.v1beta1.Issue.Severity severity = 2; + * @return The severity. + */ + com.google.showcase.v1beta1.Issue.Severity getSeverity(); + + /** + *
+   * A description of the issue.
+   * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * A description of the issue.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java new file mode 100644 index 0000000000..1bf87e7a26 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java @@ -0,0 +1,865 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\ListBlurbs
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListBlurbsRequest} + */ +public final class ListBlurbsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListBlurbsRequest) + ListBlurbsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListBlurbsRequest.newBuilder() to construct. + private ListBlurbsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListBlurbsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListBlurbsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListBlurbsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListBlurbsRequest.class, com.google.showcase.v1beta1.ListBlurbsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * The resource name of the requested room or profile whos blurbs to list.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of the requested room or profile whos blurbs to list.
+   * 
+ * + * 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_; + /** + *
+   * The maximum number of blurbs to return. Server may return fewer
+   * blurbs than requested. If unspecified, server will pick an appropriate
+   * default.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+   * 
+ * + * 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; + } + } + /** + *
+   * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListBlurbsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListBlurbsRequest other = (com.google.showcase.v1beta1.ListBlurbsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest 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.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListBlurbsRequest 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.showcase.v1beta1.ListBlurbsRequest 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 request message for the google.showcase.v1beta1.Messaging\ListBlurbs
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListBlurbsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListBlurbsRequest) + com.google.showcase.v1beta1.ListBlurbsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListBlurbsRequest.class, com.google.showcase.v1beta1.ListBlurbsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListBlurbsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListBlurbsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsRequest build() { + com.google.showcase.v1beta1.ListBlurbsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsRequest buildPartial() { + com.google.showcase.v1beta1.ListBlurbsRequest result = new com.google.showcase.v1beta1.ListBlurbsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListBlurbsRequest) { + return mergeFrom((com.google.showcase.v1beta1.ListBlurbsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListBlurbsRequest other) { + if (other == com.google.showcase.v1beta1.ListBlurbsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListBlurbsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListBlurbsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The resource name of the requested room or profile whos blurbs to list.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested room or profile whos blurbs to list.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of the requested room or profile whos blurbs to list.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested room or profile whos blurbs to list.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the requested room or profile whos blurbs to list.
+     * 
+ * + * 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; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of blurbs to return. Server may return fewer
+     * blurbs than requested. If unspecified, server will pick an appropriate
+     * default.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of blurbs to return. Server may return fewer
+     * blurbs than requested. If unspecified, server will pick an appropriate
+     * default.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of blurbs to return. Server may return fewer
+     * blurbs than requested. If unspecified, server will pick an appropriate
+     * default.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+     * 
+ * + * 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; + } + } + /** + *
+     * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+     * 
+ * + * 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; + } + } + /** + *
+     * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListBlurbsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListBlurbsRequest) + private static final com.google.showcase.v1beta1.ListBlurbsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListBlurbsRequest(); + } + + public static com.google.showcase.v1beta1.ListBlurbsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlurbsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBlurbsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java new file mode 100644 index 0000000000..4333751fab --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface ListBlurbsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListBlurbsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the requested room or profile whos blurbs to list.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * The resource name of the requested room or profile whos blurbs to list.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of blurbs to return. Server may return fewer
+   * blurbs than requested. If unspecified, server will pick an appropriate
+   * default.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListBlurbs` method.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java new file mode 100644 index 0000000000..65e8c54f4b --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java @@ -0,0 +1,1061 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the google.showcase.v1beta1.Messaging\ListBlurbs
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListBlurbsResponse} + */ +public final class ListBlurbsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListBlurbsResponse) + ListBlurbsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListBlurbsResponse.newBuilder() to construct. + private ListBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListBlurbsResponse() { + blurbs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListBlurbsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListBlurbsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blurbs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blurbs_.add( + input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + blurbs_ = java.util.Collections.unmodifiableList(blurbs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListBlurbsResponse.class, com.google.showcase.v1beta1.ListBlurbsResponse.Builder.class); + } + + public static final int BLURBS_FIELD_NUMBER = 1; + private java.util.List blurbs_; + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public java.util.List getBlurbsList() { + return blurbs_; + } + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public java.util.List + getBlurbsOrBuilderList() { + return blurbs_; + } + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public int getBlurbsCount() { + return blurbs_.size(); + } + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { + return blurbs_.get(index); + } + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( + int index) { + return blurbs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+   * the next page of results.
+   * 
+ * + * 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; + } + } + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+   * the next page of results.
+   * 
+ * + * 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 < blurbs_.size(); i++) { + output.writeMessage(1, blurbs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blurbs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blurbs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListBlurbsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListBlurbsResponse other = (com.google.showcase.v1beta1.ListBlurbsResponse) obj; + + if (!getBlurbsList() + .equals(other.getBlurbsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlurbsCount() > 0) { + hash = (37 * hash) + BLURBS_FIELD_NUMBER; + hash = (53 * hash) + getBlurbsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse 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.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListBlurbsResponse 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.showcase.v1beta1.ListBlurbsResponse 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 response message for the google.showcase.v1beta1.Messaging\ListBlurbs
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListBlurbsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListBlurbsResponse) + com.google.showcase.v1beta1.ListBlurbsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListBlurbsResponse.class, com.google.showcase.v1beta1.ListBlurbsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListBlurbsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlurbsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (blurbsBuilder_ == null) { + blurbs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blurbsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListBlurbsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsResponse build() { + com.google.showcase.v1beta1.ListBlurbsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsResponse buildPartial() { + com.google.showcase.v1beta1.ListBlurbsResponse result = new com.google.showcase.v1beta1.ListBlurbsResponse(this); + int from_bitField0_ = bitField0_; + if (blurbsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blurbs_ = java.util.Collections.unmodifiableList(blurbs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blurbs_ = blurbs_; + } else { + result.blurbs_ = blurbsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListBlurbsResponse) { + return mergeFrom((com.google.showcase.v1beta1.ListBlurbsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListBlurbsResponse other) { + if (other == com.google.showcase.v1beta1.ListBlurbsResponse.getDefaultInstance()) return this; + if (blurbsBuilder_ == null) { + if (!other.blurbs_.isEmpty()) { + if (blurbs_.isEmpty()) { + blurbs_ = other.blurbs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlurbsIsMutable(); + blurbs_.addAll(other.blurbs_); + } + onChanged(); + } + } else { + if (!other.blurbs_.isEmpty()) { + if (blurbsBuilder_.isEmpty()) { + blurbsBuilder_.dispose(); + blurbsBuilder_ = null; + blurbs_ = other.blurbs_; + bitField0_ = (bitField0_ & ~0x00000001); + blurbsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlurbsFieldBuilder() : null; + } else { + blurbsBuilder_.addAllMessages(other.blurbs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListBlurbsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListBlurbsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blurbs_ = + java.util.Collections.emptyList(); + private void ensureBlurbsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blurbs_ = new java.util.ArrayList(blurbs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbsBuilder_; + + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public java.util.List getBlurbsList() { + if (blurbsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blurbs_); + } else { + return blurbsBuilder_.getMessageList(); + } + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public int getBlurbsCount() { + if (blurbsBuilder_ == null) { + return blurbs_.size(); + } else { + return blurbsBuilder_.getCount(); + } + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { + if (blurbsBuilder_ == null) { + return blurbs_.get(index); + } else { + return blurbsBuilder_.getMessage(index); + } + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder setBlurbs( + int index, com.google.showcase.v1beta1.Blurb value) { + if (blurbsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlurbsIsMutable(); + blurbs_.set(index, value); + onChanged(); + } else { + blurbsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder setBlurbs( + int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.set(index, builderForValue.build()); + onChanged(); + } else { + blurbsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs(com.google.showcase.v1beta1.Blurb value) { + if (blurbsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlurbsIsMutable(); + blurbs_.add(value); + onChanged(); + } else { + blurbsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs( + int index, com.google.showcase.v1beta1.Blurb value) { + if (blurbsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlurbsIsMutable(); + blurbs_.add(index, value); + onChanged(); + } else { + blurbsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs( + com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.add(builderForValue.build()); + onChanged(); + } else { + blurbsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs( + int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.add(index, builderForValue.build()); + onChanged(); + } else { + blurbsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addAllBlurbs( + java.lang.Iterable values) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blurbs_); + onChanged(); + } else { + blurbsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder clearBlurbs() { + if (blurbsBuilder_ == null) { + blurbs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blurbsBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder removeBlurbs(int index) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.remove(index); + onChanged(); + } else { + blurbsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder getBlurbsBuilder( + int index) { + return getBlurbsFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( + int index) { + if (blurbsBuilder_ == null) { + return blurbs_.get(index); } else { + return blurbsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public java.util.List + getBlurbsOrBuilderList() { + if (blurbsBuilder_ != null) { + return blurbsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blurbs_); + } + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder() { + return getBlurbsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder( + int index) { + return getBlurbsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + } + /** + *
+     * The list of blurbs.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public java.util.List + getBlurbsBuilderList() { + return getBlurbsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + getBlurbsFieldBuilder() { + if (blurbsBuilder_ == null) { + blurbsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( + blurbs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + blurbs_ = null; + } + return blurbsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+     * the next page of results.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListBlurbsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListBlurbsResponse) + private static final com.google.showcase.v1beta1.ListBlurbsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListBlurbsResponse(); + } + + public static com.google.showcase.v1beta1.ListBlurbsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBlurbsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListBlurbsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java new file mode 100644 index 0000000000..45fe6f1c9f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface ListBlurbsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListBlurbsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + java.util.List + getBlurbsList(); + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + com.google.showcase.v1beta1.Blurb getBlurbs(int index); + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + int getBlurbsCount(); + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + java.util.List + getBlurbsOrBuilderList(); + /** + *
+   * The list of blurbs.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( + int index); + + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+   * the next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve
+   * the next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java new file mode 100644 index 0000000000..379feac0dc --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java @@ -0,0 +1,695 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\ListRooms
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListRoomsRequest} + */ +public final class ListRoomsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListRoomsRequest) + ListRoomsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListRoomsRequest.newBuilder() to construct. + private ListRoomsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListRoomsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListRoomsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListRoomsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListRoomsRequest.class, com.google.showcase.v1beta1.ListRoomsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * The maximum number of rooms return. Server may return fewer rooms
+   * than requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListRooms` method.
+   * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+   * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListRooms` method.
+   * 
+ * + * string page_token = 2; + * @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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListRoomsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListRoomsRequest other = (com.google.showcase.v1beta1.ListRoomsRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListRoomsRequest 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.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListRoomsRequest 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.showcase.v1beta1.ListRoomsRequest 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 request message for the google.showcase.v1beta1.Messaging\ListRooms
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListRoomsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListRoomsRequest) + com.google.showcase.v1beta1.ListRoomsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListRoomsRequest.class, com.google.showcase.v1beta1.ListRoomsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListRoomsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListRoomsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsRequest build() { + com.google.showcase.v1beta1.ListRoomsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsRequest buildPartial() { + com.google.showcase.v1beta1.ListRoomsRequest result = new com.google.showcase.v1beta1.ListRoomsRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListRoomsRequest) { + return mergeFrom((com.google.showcase.v1beta1.ListRoomsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListRoomsRequest other) { + if (other == com.google.showcase.v1beta1.ListRoomsRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListRoomsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListRoomsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of rooms return. Server may return fewer rooms
+     * than requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of rooms return. Server may return fewer rooms
+     * than requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of rooms return. Server may return fewer rooms
+     * than requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListRooms` method.
+     * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+     * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListRooms` method.
+     * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+     * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListRooms` method.
+     * 
+ * + * string page_token = 2; + * @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; + onChanged(); + return this; + } + /** + *
+     * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListRooms` method.
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\ListRooms` method.
+     * 
+ * + * string page_token = 2; + * @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; + 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.showcase.v1beta1.ListRoomsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListRoomsRequest) + private static final com.google.showcase.v1beta1.ListRoomsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListRoomsRequest(); + } + + public static com.google.showcase.v1beta1.ListRoomsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoomsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRoomsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java new file mode 100644 index 0000000000..b385d4e3bc --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface ListRoomsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListRoomsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The maximum number of rooms return. Server may return fewer rooms
+   * than requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListRooms` method.
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\ListRooms` method.
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java new file mode 100644 index 0000000000..647fdcf143 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java @@ -0,0 +1,1061 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the google.showcase.v1beta1.Messaging\ListRooms
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListRoomsResponse} + */ +public final class ListRoomsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListRoomsResponse) + ListRoomsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListRoomsResponse.newBuilder() to construct. + private ListRoomsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListRoomsResponse() { + rooms_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListRoomsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListRoomsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rooms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rooms_.add( + input.readMessage(com.google.showcase.v1beta1.Room.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rooms_ = java.util.Collections.unmodifiableList(rooms_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListRoomsResponse.class, com.google.showcase.v1beta1.ListRoomsResponse.Builder.class); + } + + public static final int ROOMS_FIELD_NUMBER = 1; + private java.util.List rooms_; + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + @java.lang.Override + public java.util.List getRoomsList() { + return rooms_; + } + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + @java.lang.Override + public java.util.List + getRoomsOrBuilderList() { + return rooms_; + } + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + @java.lang.Override + public int getRoomsCount() { + return rooms_.size(); + } + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Room getRooms(int index) { + return rooms_.get(index); + } + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( + int index) { + return rooms_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListRoomsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+   * the next page of results.
+   * 
+ * + * 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; + } + } + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListRoomsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+   * the next page of results.
+   * 
+ * + * 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 < rooms_.size(); i++) { + output.writeMessage(1, rooms_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rooms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rooms_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListRoomsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListRoomsResponse other = (com.google.showcase.v1beta1.ListRoomsResponse) obj; + + if (!getRoomsList() + .equals(other.getRoomsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRoomsCount() > 0) { + hash = (37 * hash) + ROOMS_FIELD_NUMBER; + hash = (53 * hash) + getRoomsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListRoomsResponse 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.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListRoomsResponse 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.showcase.v1beta1.ListRoomsResponse 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 response message for the google.showcase.v1beta1.Messaging\ListRooms
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListRoomsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListRoomsResponse) + com.google.showcase.v1beta1.ListRoomsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListRoomsResponse.class, com.google.showcase.v1beta1.ListRoomsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListRoomsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRoomsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (roomsBuilder_ == null) { + rooms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + roomsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListRoomsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsResponse build() { + com.google.showcase.v1beta1.ListRoomsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsResponse buildPartial() { + com.google.showcase.v1beta1.ListRoomsResponse result = new com.google.showcase.v1beta1.ListRoomsResponse(this); + int from_bitField0_ = bitField0_; + if (roomsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rooms_ = java.util.Collections.unmodifiableList(rooms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rooms_ = rooms_; + } else { + result.rooms_ = roomsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListRoomsResponse) { + return mergeFrom((com.google.showcase.v1beta1.ListRoomsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListRoomsResponse other) { + if (other == com.google.showcase.v1beta1.ListRoomsResponse.getDefaultInstance()) return this; + if (roomsBuilder_ == null) { + if (!other.rooms_.isEmpty()) { + if (rooms_.isEmpty()) { + rooms_ = other.rooms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRoomsIsMutable(); + rooms_.addAll(other.rooms_); + } + onChanged(); + } + } else { + if (!other.rooms_.isEmpty()) { + if (roomsBuilder_.isEmpty()) { + roomsBuilder_.dispose(); + roomsBuilder_ = null; + rooms_ = other.rooms_; + bitField0_ = (bitField0_ & ~0x00000001); + roomsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoomsFieldBuilder() : null; + } else { + roomsBuilder_.addAllMessages(other.rooms_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListRoomsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListRoomsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List rooms_ = + java.util.Collections.emptyList(); + private void ensureRoomsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rooms_ = new java.util.ArrayList(rooms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> roomsBuilder_; + + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public java.util.List getRoomsList() { + if (roomsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rooms_); + } else { + return roomsBuilder_.getMessageList(); + } + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public int getRoomsCount() { + if (roomsBuilder_ == null) { + return rooms_.size(); + } else { + return roomsBuilder_.getCount(); + } + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public com.google.showcase.v1beta1.Room getRooms(int index) { + if (roomsBuilder_ == null) { + return rooms_.get(index); + } else { + return roomsBuilder_.getMessage(index); + } + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder setRooms( + int index, com.google.showcase.v1beta1.Room value) { + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.set(index, value); + onChanged(); + } else { + roomsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder setRooms( + int index, com.google.showcase.v1beta1.Room.Builder builderForValue) { + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.set(index, builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder addRooms(com.google.showcase.v1beta1.Room value) { + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.add(value); + onChanged(); + } else { + roomsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder addRooms( + int index, com.google.showcase.v1beta1.Room value) { + if (roomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoomsIsMutable(); + rooms_.add(index, value); + onChanged(); + } else { + roomsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder addRooms( + com.google.showcase.v1beta1.Room.Builder builderForValue) { + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.add(builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder addRooms( + int index, com.google.showcase.v1beta1.Room.Builder builderForValue) { + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.add(index, builderForValue.build()); + onChanged(); + } else { + roomsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder addAllRooms( + java.lang.Iterable values) { + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rooms_); + onChanged(); + } else { + roomsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder clearRooms() { + if (roomsBuilder_ == null) { + rooms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + roomsBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public Builder removeRooms(int index) { + if (roomsBuilder_ == null) { + ensureRoomsIsMutable(); + rooms_.remove(index); + onChanged(); + } else { + roomsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public com.google.showcase.v1beta1.Room.Builder getRoomsBuilder( + int index) { + return getRoomsFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( + int index) { + if (roomsBuilder_ == null) { + return rooms_.get(index); } else { + return roomsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public java.util.List + getRoomsOrBuilderList() { + if (roomsBuilder_ != null) { + return roomsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rooms_); + } + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder() { + return getRoomsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Room.getDefaultInstance()); + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder( + int index) { + return getRoomsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Room.getDefaultInstance()); + } + /** + *
+     * The list of rooms.
+     * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + public java.util.List + getRoomsBuilderList() { + return getRoomsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> + getRoomsFieldBuilder() { + if (roomsBuilder_ == null) { + roomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder>( + rooms_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rooms_ = null; + } + return roomsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListRoomsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListRoomsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListRoomsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListRoomsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+     * the next page of results.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListRoomsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+     * the next page of results.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListRoomsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListRoomsResponse) + private static final com.google.showcase.v1beta1.ListRoomsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListRoomsResponse(); + } + + public static com.google.showcase.v1beta1.ListRoomsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoomsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRoomsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListRoomsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java new file mode 100644 index 0000000000..5ce50752b3 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface ListRoomsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListRoomsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + java.util.List + getRoomsList(); + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + com.google.showcase.v1beta1.Room getRooms(int index); + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + int getRoomsCount(); + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + java.util.List + getRoomsOrBuilderList(); + /** + *
+   * The list of rooms.
+   * 
+ * + * repeated .google.showcase.v1beta1.Room rooms = 1; + */ + com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( + int index); + + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListRoomsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+   * the next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListRoomsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve
+   * the next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java new file mode 100644 index 0000000000..ed242c47e4 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java @@ -0,0 +1,675 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for the ListSessions method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListSessionsRequest} + */ +public final class ListSessionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListSessionsRequest) + ListSessionsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSessionsRequest.newBuilder() to construct. + private ListSessionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSessionsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSessionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSessionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListSessionsRequest.class, com.google.showcase.v1beta1.ListSessionsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * The maximum number of sessions to return per page.
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * string page_token = 2; + * @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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListSessionsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListSessionsRequest other = (com.google.showcase.v1beta1.ListSessionsRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListSessionsRequest 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.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListSessionsRequest 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.showcase.v1beta1.ListSessionsRequest 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 request for the ListSessions method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListSessionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListSessionsRequest) + com.google.showcase.v1beta1.ListSessionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListSessionsRequest.class, com.google.showcase.v1beta1.ListSessionsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListSessionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsRequest build() { + com.google.showcase.v1beta1.ListSessionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsRequest buildPartial() { + com.google.showcase.v1beta1.ListSessionsRequest result = new com.google.showcase.v1beta1.ListSessionsRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListSessionsRequest) { + return mergeFrom((com.google.showcase.v1beta1.ListSessionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListSessionsRequest other) { + if (other == com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListSessionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListSessionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of sessions to return per page.
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of sessions to return per page.
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of sessions to return per page.
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * string page_token = 2; + * @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; + onChanged(); + return this; + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * string page_token = 2; + * @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; + 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.showcase.v1beta1.ListSessionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListSessionsRequest) + private static final com.google.showcase.v1beta1.ListSessionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListSessionsRequest(); + } + + public static com.google.showcase.v1beta1.ListSessionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSessionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSessionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java new file mode 100644 index 0000000000..54042c6209 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface ListSessionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListSessionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The maximum number of sessions to return per page.
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java new file mode 100644 index 0000000000..2ad961fbec --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java @@ -0,0 +1,1045 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * Response for the ListSessions method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListSessionsResponse} + */ +public final class ListSessionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListSessionsResponse) + ListSessionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSessionsResponse.newBuilder() to construct. + private ListSessionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSessionsResponse() { + sessions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSessionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSessionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sessions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sessions_.add( + input.readMessage(com.google.showcase.v1beta1.Session.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sessions_ = java.util.Collections.unmodifiableList(sessions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListSessionsResponse.class, com.google.showcase.v1beta1.ListSessionsResponse.Builder.class); + } + + public static final int SESSIONS_FIELD_NUMBER = 1; + private java.util.List sessions_; + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + @java.lang.Override + public java.util.List getSessionsList() { + return sessions_; + } + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + @java.lang.Override + public java.util.List + getSessionsOrBuilderList() { + return sessions_; + } + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + @java.lang.Override + public int getSessionsCount() { + return sessions_.size(); + } + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Session getSessions(int index) { + return sessions_.get(index); + } + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( + int index) { + return sessions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * 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; + } + } + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * 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 < sessions_.size(); i++) { + output.writeMessage(1, sessions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sessions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sessions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListSessionsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListSessionsResponse other = (com.google.showcase.v1beta1.ListSessionsResponse) obj; + + if (!getSessionsList() + .equals(other.getSessionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSessionsCount() > 0) { + hash = (37 * hash) + SESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getSessionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListSessionsResponse 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.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListSessionsResponse 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.showcase.v1beta1.ListSessionsResponse 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 the ListSessions method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListSessionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListSessionsResponse) + com.google.showcase.v1beta1.ListSessionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListSessionsResponse.class, com.google.showcase.v1beta1.ListSessionsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListSessionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSessionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (sessionsBuilder_ == null) { + sessions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sessionsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListSessionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsResponse build() { + com.google.showcase.v1beta1.ListSessionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsResponse buildPartial() { + com.google.showcase.v1beta1.ListSessionsResponse result = new com.google.showcase.v1beta1.ListSessionsResponse(this); + int from_bitField0_ = bitField0_; + if (sessionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sessions_ = java.util.Collections.unmodifiableList(sessions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sessions_ = sessions_; + } else { + result.sessions_ = sessionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListSessionsResponse) { + return mergeFrom((com.google.showcase.v1beta1.ListSessionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListSessionsResponse other) { + if (other == com.google.showcase.v1beta1.ListSessionsResponse.getDefaultInstance()) return this; + if (sessionsBuilder_ == null) { + if (!other.sessions_.isEmpty()) { + if (sessions_.isEmpty()) { + sessions_ = other.sessions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSessionsIsMutable(); + sessions_.addAll(other.sessions_); + } + onChanged(); + } + } else { + if (!other.sessions_.isEmpty()) { + if (sessionsBuilder_.isEmpty()) { + sessionsBuilder_.dispose(); + sessionsBuilder_ = null; + sessions_ = other.sessions_; + bitField0_ = (bitField0_ & ~0x00000001); + sessionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSessionsFieldBuilder() : null; + } else { + sessionsBuilder_.addAllMessages(other.sessions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListSessionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListSessionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List sessions_ = + java.util.Collections.emptyList(); + private void ensureSessionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sessions_ = new java.util.ArrayList(sessions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> sessionsBuilder_; + + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public java.util.List getSessionsList() { + if (sessionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sessions_); + } else { + return sessionsBuilder_.getMessageList(); + } + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public int getSessionsCount() { + if (sessionsBuilder_ == null) { + return sessions_.size(); + } else { + return sessionsBuilder_.getCount(); + } + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public com.google.showcase.v1beta1.Session getSessions(int index) { + if (sessionsBuilder_ == null) { + return sessions_.get(index); + } else { + return sessionsBuilder_.getMessage(index); + } + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder setSessions( + int index, com.google.showcase.v1beta1.Session value) { + if (sessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionsIsMutable(); + sessions_.set(index, value); + onChanged(); + } else { + sessionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder setSessions( + int index, com.google.showcase.v1beta1.Session.Builder builderForValue) { + if (sessionsBuilder_ == null) { + ensureSessionsIsMutable(); + sessions_.set(index, builderForValue.build()); + onChanged(); + } else { + sessionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder addSessions(com.google.showcase.v1beta1.Session value) { + if (sessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionsIsMutable(); + sessions_.add(value); + onChanged(); + } else { + sessionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder addSessions( + int index, com.google.showcase.v1beta1.Session value) { + if (sessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionsIsMutable(); + sessions_.add(index, value); + onChanged(); + } else { + sessionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder addSessions( + com.google.showcase.v1beta1.Session.Builder builderForValue) { + if (sessionsBuilder_ == null) { + ensureSessionsIsMutable(); + sessions_.add(builderForValue.build()); + onChanged(); + } else { + sessionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder addSessions( + int index, com.google.showcase.v1beta1.Session.Builder builderForValue) { + if (sessionsBuilder_ == null) { + ensureSessionsIsMutable(); + sessions_.add(index, builderForValue.build()); + onChanged(); + } else { + sessionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder addAllSessions( + java.lang.Iterable values) { + if (sessionsBuilder_ == null) { + ensureSessionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sessions_); + onChanged(); + } else { + sessionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder clearSessions() { + if (sessionsBuilder_ == null) { + sessions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sessionsBuilder_.clear(); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public Builder removeSessions(int index) { + if (sessionsBuilder_ == null) { + ensureSessionsIsMutable(); + sessions_.remove(index); + onChanged(); + } else { + sessionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public com.google.showcase.v1beta1.Session.Builder getSessionsBuilder( + int index) { + return getSessionsFieldBuilder().getBuilder(index); + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( + int index) { + if (sessionsBuilder_ == null) { + return sessions_.get(index); } else { + return sessionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public java.util.List + getSessionsOrBuilderList() { + if (sessionsBuilder_ != null) { + return sessionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sessions_); + } + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public com.google.showcase.v1beta1.Session.Builder addSessionsBuilder() { + return getSessionsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Session.getDefaultInstance()); + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public com.google.showcase.v1beta1.Session.Builder addSessionsBuilder( + int index) { + return getSessionsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Session.getDefaultInstance()); + } + /** + *
+     * The sessions being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + public java.util.List + getSessionsBuilderList() { + return getSessionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> + getSessionsFieldBuilder() { + if (sessionsBuilder_ == null) { + sessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder>( + sessions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sessions_ = null; + } + return sessionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListSessionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListSessionsResponse) + private static final com.google.showcase.v1beta1.ListSessionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListSessionsResponse(); + } + + public static com.google.showcase.v1beta1.ListSessionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSessionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSessionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListSessionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java new file mode 100644 index 0000000000..2dbaa51602 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface ListSessionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListSessionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + java.util.List + getSessionsList(); + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + com.google.showcase.v1beta1.Session getSessions(int index); + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + int getSessionsCount(); + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + java.util.List + getSessionsOrBuilderList(); + /** + *
+   * The sessions being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Session sessions = 1; + */ + com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( + int index); + + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java new file mode 100644 index 0000000000..90275331e6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java @@ -0,0 +1,841 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for the ListTests method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListTestsRequest} + */ +public final class ListTestsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListTestsRequest) + ListTestsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTestsRequest.newBuilder() to construct. + private ListTestsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTestsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListTestsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTestsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListTestsRequest.class, com.google.showcase.v1beta1.ListTestsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * The session.
+   * 
+ * + * string parent = 1 [(.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; + } + } + /** + *
+   * The session.
+   * 
+ * + * string parent = 1 [(.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_; + /** + *
+   * The maximum number of tests to return per page.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * 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; + } + } + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListTestsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListTestsRequest other = (com.google.showcase.v1beta1.ListTestsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListTestsRequest 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.showcase.v1beta1.ListTestsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListTestsRequest 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.showcase.v1beta1.ListTestsRequest 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 request for the ListTests method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListTestsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListTestsRequest) + com.google.showcase.v1beta1.ListTestsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListTestsRequest.class, com.google.showcase.v1beta1.ListTestsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListTestsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListTestsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsRequest build() { + com.google.showcase.v1beta1.ListTestsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsRequest buildPartial() { + com.google.showcase.v1beta1.ListTestsRequest result = new com.google.showcase.v1beta1.ListTestsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListTestsRequest) { + return mergeFrom((com.google.showcase.v1beta1.ListTestsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListTestsRequest other) { + if (other == com.google.showcase.v1beta1.ListTestsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListTestsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListTestsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The session.
+     * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The session.
+     * 
+ * + * string parent = 1 [(.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; + } + } + /** + *
+     * The session.
+     * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The session.
+     * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The session.
+     * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of tests to return per page.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of tests to return per page.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of tests to return per page.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * 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; + } + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * 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; + } + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The page token, for retrieving subsequent pages.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListTestsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListTestsRequest) + private static final com.google.showcase.v1beta1.ListTestsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListTestsRequest(); + } + + public static com.google.showcase.v1beta1.ListTestsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTestsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTestsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java new file mode 100644 index 0000000000..be84bb6248 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface ListTestsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListTestsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The session.
+   * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * The session.
+   * 
+ * + * string parent = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of tests to return per page.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The page token, for retrieving subsequent pages.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java new file mode 100644 index 0000000000..7fa4dca4d8 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java @@ -0,0 +1,1045 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response for the ListTests method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListTestsResponse} + */ +public final class ListTestsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListTestsResponse) + ListTestsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTestsResponse.newBuilder() to construct. + private ListTestsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTestsResponse() { + tests_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListTestsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTestsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tests_.add( + input.readMessage(com.google.showcase.v1beta1.Test.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tests_ = java.util.Collections.unmodifiableList(tests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListTestsResponse.class, com.google.showcase.v1beta1.ListTestsResponse.Builder.class); + } + + public static final int TESTS_FIELD_NUMBER = 1; + private java.util.List tests_; + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + @java.lang.Override + public java.util.List getTestsList() { + return tests_; + } + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + @java.lang.Override + public java.util.List + getTestsOrBuilderList() { + return tests_; + } + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + @java.lang.Override + public int getTestsCount() { + return tests_.size(); + } + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test getTests(int index) { + return tests_.get(index); + } + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( + int index) { + return tests_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * 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; + } + } + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * 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 < tests_.size(); i++) { + output.writeMessage(1, tests_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tests_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListTestsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListTestsResponse other = (com.google.showcase.v1beta1.ListTestsResponse) obj; + + if (!getTestsList() + .equals(other.getTestsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTestsCount() > 0) { + hash = (37 * hash) + TESTS_FIELD_NUMBER; + hash = (53 * hash) + getTestsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListTestsResponse 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.showcase.v1beta1.ListTestsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListTestsResponse 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.showcase.v1beta1.ListTestsResponse 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 response for the ListTests method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListTestsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListTestsResponse) + com.google.showcase.v1beta1.ListTestsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListTestsResponse.class, com.google.showcase.v1beta1.ListTestsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListTestsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (testsBuilder_ == null) { + tests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + testsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListTestsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsResponse build() { + com.google.showcase.v1beta1.ListTestsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsResponse buildPartial() { + com.google.showcase.v1beta1.ListTestsResponse result = new com.google.showcase.v1beta1.ListTestsResponse(this); + int from_bitField0_ = bitField0_; + if (testsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tests_ = java.util.Collections.unmodifiableList(tests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tests_ = tests_; + } else { + result.tests_ = testsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListTestsResponse) { + return mergeFrom((com.google.showcase.v1beta1.ListTestsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListTestsResponse other) { + if (other == com.google.showcase.v1beta1.ListTestsResponse.getDefaultInstance()) return this; + if (testsBuilder_ == null) { + if (!other.tests_.isEmpty()) { + if (tests_.isEmpty()) { + tests_ = other.tests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestsIsMutable(); + tests_.addAll(other.tests_); + } + onChanged(); + } + } else { + if (!other.tests_.isEmpty()) { + if (testsBuilder_.isEmpty()) { + testsBuilder_.dispose(); + testsBuilder_ = null; + tests_ = other.tests_; + bitField0_ = (bitField0_ & ~0x00000001); + testsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTestsFieldBuilder() : null; + } else { + testsBuilder_.addAllMessages(other.tests_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListTestsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListTestsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List tests_ = + java.util.Collections.emptyList(); + private void ensureTestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tests_ = new java.util.ArrayList(tests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test, com.google.showcase.v1beta1.Test.Builder, com.google.showcase.v1beta1.TestOrBuilder> testsBuilder_; + + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public java.util.List getTestsList() { + if (testsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tests_); + } else { + return testsBuilder_.getMessageList(); + } + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public int getTestsCount() { + if (testsBuilder_ == null) { + return tests_.size(); + } else { + return testsBuilder_.getCount(); + } + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public com.google.showcase.v1beta1.Test getTests(int index) { + if (testsBuilder_ == null) { + return tests_.get(index); + } else { + return testsBuilder_.getMessage(index); + } + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder setTests( + int index, com.google.showcase.v1beta1.Test value) { + if (testsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestsIsMutable(); + tests_.set(index, value); + onChanged(); + } else { + testsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder setTests( + int index, com.google.showcase.v1beta1.Test.Builder builderForValue) { + if (testsBuilder_ == null) { + ensureTestsIsMutable(); + tests_.set(index, builderForValue.build()); + onChanged(); + } else { + testsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder addTests(com.google.showcase.v1beta1.Test value) { + if (testsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestsIsMutable(); + tests_.add(value); + onChanged(); + } else { + testsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder addTests( + int index, com.google.showcase.v1beta1.Test value) { + if (testsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestsIsMutable(); + tests_.add(index, value); + onChanged(); + } else { + testsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder addTests( + com.google.showcase.v1beta1.Test.Builder builderForValue) { + if (testsBuilder_ == null) { + ensureTestsIsMutable(); + tests_.add(builderForValue.build()); + onChanged(); + } else { + testsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder addTests( + int index, com.google.showcase.v1beta1.Test.Builder builderForValue) { + if (testsBuilder_ == null) { + ensureTestsIsMutable(); + tests_.add(index, builderForValue.build()); + onChanged(); + } else { + testsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder addAllTests( + java.lang.Iterable values) { + if (testsBuilder_ == null) { + ensureTestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tests_); + onChanged(); + } else { + testsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder clearTests() { + if (testsBuilder_ == null) { + tests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + testsBuilder_.clear(); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public Builder removeTests(int index) { + if (testsBuilder_ == null) { + ensureTestsIsMutable(); + tests_.remove(index); + onChanged(); + } else { + testsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public com.google.showcase.v1beta1.Test.Builder getTestsBuilder( + int index) { + return getTestsFieldBuilder().getBuilder(index); + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( + int index) { + if (testsBuilder_ == null) { + return tests_.get(index); } else { + return testsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public java.util.List + getTestsOrBuilderList() { + if (testsBuilder_ != null) { + return testsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tests_); + } + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public com.google.showcase.v1beta1.Test.Builder addTestsBuilder() { + return getTestsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Test.getDefaultInstance()); + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public com.google.showcase.v1beta1.Test.Builder addTestsBuilder( + int index) { + return getTestsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Test.getDefaultInstance()); + } + /** + *
+     * The tests being returned.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + public java.util.List + getTestsBuilderList() { + return getTestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test, com.google.showcase.v1beta1.Test.Builder, com.google.showcase.v1beta1.TestOrBuilder> + getTestsFieldBuilder() { + if (testsBuilder_ == null) { + testsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test, com.google.showcase.v1beta1.Test.Builder, com.google.showcase.v1beta1.TestOrBuilder>( + tests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tests_ = null; + } + return testsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next page token, if any.
+     * An empty value here means the last page has been reached.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListTestsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListTestsResponse) + private static final com.google.showcase.v1beta1.ListTestsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListTestsResponse(); + } + + public static com.google.showcase.v1beta1.ListTestsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTestsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTestsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListTestsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java new file mode 100644 index 0000000000..81665ac3c3 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface ListTestsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListTestsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + java.util.List + getTestsList(); + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + com.google.showcase.v1beta1.Test getTests(int index); + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + int getTestsCount(); + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + java.util.List + getTestsOrBuilderList(); + /** + *
+   * The tests being returned.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test tests = 1; + */ + com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( + int index); + + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The next page token, if any.
+   * An empty value here means the last page has been reached.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java new file mode 100644 index 0000000000..7f5da71c80 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java @@ -0,0 +1,695 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Identity\ListUsers
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListUsersRequest} + */ +public final class ListUsersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListUsersRequest) + ListUsersRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsersRequest.newBuilder() to construct. + private ListUsersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsersRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListUsersRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsersRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListUsersRequest.class, com.google.showcase.v1beta1.ListUsersRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * The maximum number of users to return. Server may return fewer users
+   * than requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Identity\ListUsers` method.
+   * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+   * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Identity\ListUsers` method.
+   * 
+ * + * string page_token = 2; + * @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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListUsersRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListUsersRequest other = (com.google.showcase.v1beta1.ListUsersRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListUsersRequest 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.showcase.v1beta1.ListUsersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListUsersRequest 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.showcase.v1beta1.ListUsersRequest 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 request message for the google.showcase.v1beta1.Identity\ListUsers
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListUsersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListUsersRequest) + com.google.showcase.v1beta1.ListUsersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListUsersRequest.class, com.google.showcase.v1beta1.ListUsersRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListUsersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListUsersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersRequest build() { + com.google.showcase.v1beta1.ListUsersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersRequest buildPartial() { + com.google.showcase.v1beta1.ListUsersRequest result = new com.google.showcase.v1beta1.ListUsersRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListUsersRequest) { + return mergeFrom((com.google.showcase.v1beta1.ListUsersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListUsersRequest other) { + if (other == com.google.showcase.v1beta1.ListUsersRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListUsersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListUsersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of users to return. Server may return fewer users
+     * than requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of users to return. Server may return fewer users
+     * than requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of users to return. Server may return fewer users
+     * than requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Identity\ListUsers` method.
+     * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+     * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Identity\ListUsers` method.
+     * 
+ * + * string page_token = 2; + * @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; + } + } + /** + *
+     * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Identity\ListUsers` method.
+     * 
+ * + * string page_token = 2; + * @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; + onChanged(); + return this; + } + /** + *
+     * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Identity\ListUsers` method.
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Identity\ListUsers` method.
+     * 
+ * + * string page_token = 2; + * @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; + 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.showcase.v1beta1.ListUsersRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListUsersRequest) + private static final com.google.showcase.v1beta1.ListUsersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListUsersRequest(); + } + + public static com.google.showcase.v1beta1.ListUsersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsersRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java new file mode 100644 index 0000000000..6785ca3661 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface ListUsersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListUsersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The maximum number of users to return. Server may return fewer users
+   * than requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Identity\ListUsers` method.
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Identity\ListUsers` method.
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java new file mode 100644 index 0000000000..693eb1c2ca --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java @@ -0,0 +1,1061 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the google.showcase.v1beta1.Identity\ListUsers
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListUsersResponse} + */ +public final class ListUsersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListUsersResponse) + ListUsersResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsersResponse.newBuilder() to construct. + private ListUsersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsersResponse() { + users_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListUsersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsersResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + users_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + users_.add( + input.readMessage(com.google.showcase.v1beta1.User.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + users_ = java.util.Collections.unmodifiableList(users_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListUsersResponse.class, com.google.showcase.v1beta1.ListUsersResponse.Builder.class); + } + + public static final int USERS_FIELD_NUMBER = 1; + private java.util.List users_; + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + @java.lang.Override + public java.util.List getUsersList() { + return users_; + } + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + @java.lang.Override + public java.util.List + getUsersOrBuilderList() { + return users_; + } + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + @java.lang.Override + public int getUsersCount() { + return users_.size(); + } + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.User getUsers(int index) { + return users_.get(index); + } + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( + int index) { + return users_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListUsersRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+   * next page of results.
+   * 
+ * + * 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; + } + } + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListUsersRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+   * next page of results.
+   * 
+ * + * 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 < users_.size(); i++) { + output.writeMessage(1, users_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < users_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, users_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ListUsersResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ListUsersResponse other = (com.google.showcase.v1beta1.ListUsersResponse) obj; + + if (!getUsersList() + .equals(other.getUsersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUsersCount() > 0) { + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListUsersResponse 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.showcase.v1beta1.ListUsersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ListUsersResponse 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.showcase.v1beta1.ListUsersResponse 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 response message for the google.showcase.v1beta1.Identity\ListUsers
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ListUsersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListUsersResponse) + com.google.showcase.v1beta1.ListUsersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ListUsersResponse.class, com.google.showcase.v1beta1.ListUsersResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ListUsersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + usersBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ListUsersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersResponse build() { + com.google.showcase.v1beta1.ListUsersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersResponse buildPartial() { + com.google.showcase.v1beta1.ListUsersResponse result = new com.google.showcase.v1beta1.ListUsersResponse(this); + int from_bitField0_ = bitField0_; + if (usersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + users_ = java.util.Collections.unmodifiableList(users_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.users_ = users_; + } else { + result.users_ = usersBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ListUsersResponse) { + return mergeFrom((com.google.showcase.v1beta1.ListUsersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ListUsersResponse other) { + if (other == com.google.showcase.v1beta1.ListUsersResponse.getDefaultInstance()) return this; + if (usersBuilder_ == null) { + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + } else { + if (!other.users_.isEmpty()) { + if (usersBuilder_.isEmpty()) { + usersBuilder_.dispose(); + usersBuilder_ = null; + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + usersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUsersFieldBuilder() : null; + } else { + usersBuilder_.addAllMessages(other.users_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ListUsersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ListUsersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List users_ = + java.util.Collections.emptyList(); + private void ensureUsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + users_ = new java.util.ArrayList(users_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> usersBuilder_; + + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public java.util.List getUsersList() { + if (usersBuilder_ == null) { + return java.util.Collections.unmodifiableList(users_); + } else { + return usersBuilder_.getMessageList(); + } + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public int getUsersCount() { + if (usersBuilder_ == null) { + return users_.size(); + } else { + return usersBuilder_.getCount(); + } + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public com.google.showcase.v1beta1.User getUsers(int index) { + if (usersBuilder_ == null) { + return users_.get(index); + } else { + return usersBuilder_.getMessage(index); + } + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder setUsers( + int index, com.google.showcase.v1beta1.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + onChanged(); + } else { + usersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder setUsers( + int index, com.google.showcase.v1beta1.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.set(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder addUsers(com.google.showcase.v1beta1.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + onChanged(); + } else { + usersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder addUsers( + int index, com.google.showcase.v1beta1.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(index, value); + onChanged(); + } else { + usersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder addUsers( + com.google.showcase.v1beta1.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder addUsers( + int index, com.google.showcase.v1beta1.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder addAllUsers( + java.lang.Iterable values) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, users_); + onChanged(); + } else { + usersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder clearUsers() { + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + usersBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public Builder removeUsers(int index) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.remove(index); + onChanged(); + } else { + usersBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public com.google.showcase.v1beta1.User.Builder getUsersBuilder( + int index) { + return getUsersFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( + int index) { + if (usersBuilder_ == null) { + return users_.get(index); } else { + return usersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public java.util.List + getUsersOrBuilderList() { + if (usersBuilder_ != null) { + return usersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(users_); + } + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public com.google.showcase.v1beta1.User.Builder addUsersBuilder() { + return getUsersFieldBuilder().addBuilder( + com.google.showcase.v1beta1.User.getDefaultInstance()); + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public com.google.showcase.v1beta1.User.Builder addUsersBuilder( + int index) { + return getUsersFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.User.getDefaultInstance()); + } + /** + *
+     * The list of users.
+     * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + public java.util.List + getUsersBuilderList() { + return getUsersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> + getUsersFieldBuilder() { + if (usersBuilder_ == null) { + usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder>( + users_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + users_ = null; + } + return usersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListUsersRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+     * next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListUsersRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+     * next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListUsersRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+     * next page of results.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListUsersRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+     * next page of results.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in ListUsersRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+     * next page of results.
+     * 
+ * + * 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; + 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.showcase.v1beta1.ListUsersResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListUsersResponse) + private static final com.google.showcase.v1beta1.ListUsersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListUsersResponse(); + } + + public static com.google.showcase.v1beta1.ListUsersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsersResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ListUsersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java new file mode 100644 index 0000000000..9326c4804f --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface ListUsersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListUsersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + java.util.List + getUsersList(); + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + com.google.showcase.v1beta1.User getUsers(int index); + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + int getUsersCount(); + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + java.util.List + getUsersOrBuilderList(); + /** + *
+   * The list of users.
+   * 
+ * + * repeated .google.showcase.v1beta1.User users = 1; + */ + com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( + int index); + + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListUsersRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+   * next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in ListUsersRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the
+   * next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java new file mode 100644 index 0000000000..699e398079 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java @@ -0,0 +1,447 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public final class MessagingOuterClass { + private MessagingOuterClass() {} + 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_showcase_v1beta1_Room_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Room_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Blurb_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_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.schema/google/showcase/v1beta1/messagi" + + "ng.proto\022\027google.showcase.v1beta1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032#google/lon" + + "grunning/operations.proto\032\033google/protob" + + "uf/empty.proto\032 google/protobuf/field_ma" + + "sk.proto\032\037google/protobuf/timestamp.prot" + + "o\032\036google/rpc/error_details.proto\"\341\001\n\004Ro" + + "om\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022\023\n\013description\030\003 \001(\t\0224\n\013create_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003:/\352A,\n\034showcase.googleapis.c" + + "om/Room\022\014rooms/{room}\"@\n\021CreateRoomReque" + + "st\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1bet" + + "a1.Room\"D\n\016GetRoomRequest\0222\n\004name\030\001 \001(\tB" + + "$\372A\036\n\034showcase.googleapis.com/Room\340A\002\"q\n" + + "\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.googl" + + "e.showcase.v1beta1.Room\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"G\n\021Dele" + + "teRoomRequest\0222\n\004name\030\001 \001(\tB$\372A\036\n\034showca" + + "se.googleapis.com/Room\340A\002\"9\n\020ListRoomsRe" + + "quest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002" + + " \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030\001 \003(\013" + + "2\035.google.showcase.v1beta1.Room\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\366\003\n\005Blurb\022\014\n\004name\030\001 \001(\t" + + "\0222\n\004user\030\002 \001(\tB$\372A\036\n\034showcase.googleapis" + + ".com/User\340A\002\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005image\030\004 " + + "\001(\014H\000\0224\n\013create_time\030\005 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\030\n\016leg" + + "acy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_user_id\030\010 " + + "\001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapis.com/Bl" + + "urb\0228users/{user}/profile/blurbs/legacy/" + + "{legacy_user}~{blurb}\022#users/{user}/prof" + + "ile/blurbs/{blurb}\022\033rooms/{room}/blurbs/" + + "{blurb}\0220rooms/{room}/blurbs/legacy/{leg" + + "acy_room}.{blurb}B\t\n\007contentB\013\n\tlegacy_i" + + "d\"z\n\022CreateBlurbRequest\0225\n\006parent\030\001 \001(\tB" + + "%\372A\037\022\035showcase.googleapis.com/Blurb\340A\002\022-" + + "\n\005blurb\030\002 \001(\0132\036.google.showcase.v1beta1." + + "Blurb\"F\n\017GetBlurbRequest\0223\n\004name\030\001 \001(\tB%" + + "\372A\037\n\035showcase.googleapis.com/Blurb\340A\002\"t\n" + + "\022UpdateBlurbRequest\022-\n\005blurb\030\001 \001(\0132\036.goo" + + "gle.showcase.v1beta1.Blurb\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"I\n\022D" + + "eleteBlurbRequest\0223\n\004name\030\001 \001(\tB%\372A\037\n\035sh" + + "owcase.googleapis.com/Blurb\340A\002\"q\n\021ListBl" + + "urbsRequest\0225\n\006parent\030\001 \001(\tB%\372A\037\022\035showca" + + "se.googleapis.com/Blurb\340A\002\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n\022ListBlurbsR" + + "esponse\022.\n\006blurbs\030\001 \003(\0132\036.google.showcas" + + "e.v1beta1.Blurb\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\204\001\n\023SearchBlurbsRequest\022\022\n\005query\030\001 \001(\tB" + + "\003\340A\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035showcase.goog" + + "leapis.com/Blurb\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" + + "age_token\030\004 \001(\t\"A\n\024SearchBlurbsMetadata\022" + + ")\n\nretry_info\030\001 \001(\0132\025.google.rpc.RetryIn" + + "fo\"_\n\024SearchBlurbsResponse\022.\n\006blurbs\030\001 \003" + + "(\0132\036.google.showcase.v1beta1.Blurb\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\200\001\n\023StreamBlurbsRequ" + + "est\0223\n\004name\030\001 \001(\tB%\372A\037\022\035showcase.googlea" + + "pis.com/Blurb\340A\002\0224\n\013expire_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\002\"\321\001\n\024Strea" + + "mBlurbsResponse\022-\n\005blurb\030\001 \001(\0132\036.google." + + "showcase.v1beta1.Blurb\022D\n\006action\030\002 \001(\01624" + + ".google.showcase.v1beta1.StreamBlurbsRes" + + "ponse.Action\"D\n\006Action\022\026\n\022ACTION_UNSPECI" + + "FIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE" + + "\020\003\"#\n\022SendBlurbsResponse\022\r\n\005names\030\001 \003(\t\"" + + "\332\001\n\016ConnectRequest\022G\n\006config\030\001 \001(\01325.goo" + + "gle.showcase.v1beta1.ConnectRequest.Conn" + + "ectConfigH\000\022/\n\005blurb\030\002 \001(\0132\036.google.show" + + "case.v1beta1.BlurbH\000\032C\n\rConnectConfig\0222\n" + + "\006parent\030\001 \001(\tB\"\372A\037\022\035showcase.googleapis." + + "com/BlurbB\t\n\007request2\264\023\n\tMessaging\022\227\001\n\nC" + + "reateRoom\022*.google.showcase.v1beta1.Crea" + + "teRoomRequest\032\035.google.showcase.v1beta1." + + "Room\">\202\323\344\223\002\023\"\016/v1beta1/rooms:\001*\332A\"room.d" + + "isplay_name,room.description\022y\n\007GetRoom\022" + + "\'.google.showcase.v1beta1.GetRoomRequest" + + "\032\035.google.showcase.v1beta1.Room\"&\202\323\344\223\002\031\022" + + "\027/v1beta1/{name=rooms/*}\332A\004name\022\203\001\n\nUpda" + + "teRoom\022*.google.showcase.v1beta1.UpdateR" + + "oomRequest\032\035.google.showcase.v1beta1.Roo" + + "m\"*\202\323\344\223\002$2\034/v1beta1/{room.name=rooms/*}:" + + "\004room\022x\n\nDeleteRoom\022*.google.showcase.v1" + + "beta1.DeleteRoomRequest\032\026.google.protobu" + + "f.Empty\"&\202\323\344\223\002\031*\027/v1beta1/{name=rooms/*}" + + "\332A\004name\022z\n\tListRooms\022).google.showcase.v" + + "1beta1.ListRoomsRequest\032*.google.showcas" + + "e.v1beta1.ListRoomsResponse\"\026\202\323\344\223\002\020\022\016/v1" + + "beta1/rooms\022\366\001\n\013CreateBlurb\022+.google.sho" + + "wcase.v1beta1.CreateBlurbRequest\032\036.googl" + + "e.showcase.v1beta1.Blurb\"\231\001\202\323\344\223\002T\" /v1be" + + "ta1/{parent=rooms/*}/blurbs:\001*Z-\"(/v1bet" + + "a1/{parent=users/*/profile}/blurbs:\001*\332A\034" + + "parent,blurb.user,blurb.text\332A\035parent,bl" + + "urb.user,blurb.image\022\261\001\n\010GetBlurb\022(.goog" + + "le.showcase.v1beta1.GetBlurbRequest\032\036.go" + + "ogle.showcase.v1beta1.Blurb\"[\202\323\344\223\002N\022 /v1" + + "beta1/{name=rooms/*/blurbs/*}Z*\022(/v1beta" + + "1/{name=users/*/profile/blurbs/*}\332A\004name" + + "\022\312\001\n\013UpdateBlurb\022+.google.showcase.v1bet" + + "a1.UpdateBlurbRequest\032\036.google.showcase." + + "v1beta1.Blurb\"n\202\323\344\223\002h2&/v1beta1/{blurb.n" + + "ame=rooms/*/blurbs/*}:\005blurbZ72./v1beta1" + + "/{blurb.name=users/*/profile/blurbs/*}:\005" + + "blurb\022\257\001\n\013DeleteBlurb\022+.google.showcase." + + "v1beta1.DeleteBlurbRequest\032\026.google.prot" + + "obuf.Empty\"[\202\323\344\223\002N* /v1beta1/{name=rooms" + + "/*/blurbs/*}Z**(/v1beta1/{name=users/*/p" + + "rofile/blurbs/*}\332A\004name\022\304\001\n\nListBlurbs\022*" + + ".google.showcase.v1beta1.ListBlurbsReque" + + "st\032+.google.showcase.v1beta1.ListBlurbsR" + + "esponse\"]\202\323\344\223\002N\022 /v1beta1/{parent=rooms/" + + "*}/blurbsZ*\022(/v1beta1/{parent=users/*/pr" + + "ofile}/blurbs\332A\006parent\022\201\002\n\014SearchBlurbs\022" + + ",.google.showcase.v1beta1.SearchBlurbsRe" + + "quest\032\035.google.longrunning.Operation\"\243\001\202" + + "\323\344\223\002_\"\'/v1beta1/{parent=rooms/*}/blurbs:" + + "search:\001*Z1\"//v1beta1/{parent=users/*/pr" + + "ofile}/blurbs:search\312A,\n\024SearchBlurbsRes" + + "ponse\022\024SearchBlurbsMetadata\332A\014parent,que" + + "ry\022\323\001\n\014StreamBlurbs\022,.google.showcase.v1" + + "beta1.StreamBlurbsRequest\032-.google.showc" + + "ase.v1beta1.StreamBlurbsResponse\"d\202\323\344\223\002^" + + "\"%/v1beta1/{name=rooms/*}/blurbs:stream:" + + "\001*Z2\"-/v1beta1/{name=users/*/profile}/bl" + + "urbs:stream:\001*0\001\022\316\001\n\nSendBlurbs\022+.google" + + ".showcase.v1beta1.CreateBlurbRequest\032+.g" + + "oogle.showcase.v1beta1.SendBlurbsRespons" + + "e\"d\202\323\344\223\002^\"%/v1beta1/{parent=rooms/*}/blu" + + "rbs:send:\001*Z2\"-/v1beta1/{parent=users/*/" + + "profile}/blurbs:send:\001*(\001\022e\n\007Connect\022\'.g" + + "oogle.showcase.v1beta1.ConnectRequest\032-." + + "google.showcase.v1beta1.StreamBlurbsResp" + + "onse(\0010\001\032\021\312A\016localhost:7469Bq\n\033com.googl" + + "e.showcase.v1beta1P\001Z4github.com/googlea" + + "pis/gapic-showcase/server/genproto\352\002\031Goo" + + "gle::Showcase::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.ErrorDetailsProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_Room_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_Room_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Room_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", }); + internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor, + new java.lang.String[] { "Room", }); + internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor, + new java.lang.String[] { "Room", "UpdateMask", }); + internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor, + new java.lang.String[] { "Rooms", "NextPageToken", }); + internal_static_google_showcase_v1beta1_Blurb_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Blurb_descriptor, + new java.lang.String[] { "Name", "User", "Text", "Image", "CreateTime", "UpdateTime", "LegacyRoomId", "LegacyUserId", "Content", "LegacyId", }); + internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor, + new java.lang.String[] { "Parent", "Blurb", }); + internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor, + new java.lang.String[] { "Blurb", "UpdateMask", }); + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor, + new java.lang.String[] { "Blurbs", "NextPageToken", }); + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor, + new java.lang.String[] { "Query", "Parent", "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor, + new java.lang.String[] { "RetryInfo", }); + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor, + new java.lang.String[] { "Blurbs", "NextPageToken", }); + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor, + new java.lang.String[] { "Name", "ExpireTime", }); + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor, + new java.lang.String[] { "Blurb", "Action", }); + internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor, + new java.lang.String[] { "Names", }); + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor, + new java.lang.String[] { "Config", "Blurb", "Request", }); + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor = + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor, + new java.lang.String[] { "Parent", }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.ErrorDetailsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java new file mode 100644 index 0000000000..ddef8cc042 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java @@ -0,0 +1,942 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyMappedResponse} + */ +public final class PagedExpandLegacyMappedResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) + PagedExpandLegacyMappedResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PagedExpandLegacyMappedResponse.newBuilder() to construct. + private PagedExpandLegacyMappedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagedExpandLegacyMappedResponse() { + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PagedExpandLegacyMappedResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagedExpandLegacyMappedResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alphabetized_ = com.google.protobuf.MapField.newMapField( + AlphabetizedDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + alphabetized__ = input.readMessage( + AlphabetizedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + alphabetized_.getMutableMap().put( + alphabetized__.getKey(), alphabetized__.getValue()); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAlphabetized(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.Builder.class); + } + + public static final int ALPHABETIZED_FIELD_NUMBER = 1; + private static final class AlphabetizedDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> alphabetized_; + private com.google.protobuf.MapField + internalGetAlphabetized() { + if (alphabetized_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AlphabetizedDefaultEntryHolder.defaultEntry); + } + return alphabetized_; + } + + public int getAlphabetizedCount() { + return internalGetAlphabetized().getMap().size(); + } + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + + @java.lang.Override + public boolean containsAlphabetized( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAlphabetized().getMap().containsKey(key); + } + /** + * Use {@link #getAlphabetizedMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAlphabetized() { + return getAlphabetizedMap(); + } + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + @java.lang.Override + + public java.util.Map getAlphabetizedMap() { + return internalGetAlphabetized().getMap(); + } + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + @java.lang.Override + + public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( + java.lang.String key, + com.google.showcase.v1beta1.PagedExpandResponseList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAlphabetized().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + @java.lang.Override + + public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAlphabetized().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * The next page token.
+   * 
+ * + * 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; + } + } + /** + *
+   * The next page token.
+   * 
+ * + * 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAlphabetized(), + AlphabetizedDefaultEntryHolder.defaultEntry, + 1); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetAlphabetized().getMap().entrySet()) { + com.google.protobuf.MapEntry + alphabetized__ = AlphabetizedDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, alphabetized__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse other = (com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) obj; + + if (!internalGetAlphabetized().equals( + other.internalGetAlphabetized())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAlphabetized().getMap().isEmpty()) { + hash = (37 * hash) + ALPHABETIZED_FIELD_NUMBER; + hash = (53 * hash) + internalGetAlphabetized().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse 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.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse 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.showcase.v1beta1.PagedExpandLegacyMappedResponse 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyMappedResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAlphabetized(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableAlphabetized(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableAlphabetized().clear(); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse build() { + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse buildPartial() { + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse result = new com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse(this); + int from_bitField0_ = bitField0_; + result.alphabetized_ = internalGetAlphabetized(); + result.alphabetized_.makeImmutable(); + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) { + return mergeFrom((com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse other) { + if (other == com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance()) return this; + internalGetMutableAlphabetized().mergeFrom( + other.internalGetAlphabetized()); + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> alphabetized_; + private com.google.protobuf.MapField + internalGetAlphabetized() { + if (alphabetized_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AlphabetizedDefaultEntryHolder.defaultEntry); + } + return alphabetized_; + } + private com.google.protobuf.MapField + internalGetMutableAlphabetized() { + onChanged();; + if (alphabetized_ == null) { + alphabetized_ = com.google.protobuf.MapField.newMapField( + AlphabetizedDefaultEntryHolder.defaultEntry); + } + if (!alphabetized_.isMutable()) { + alphabetized_ = alphabetized_.copy(); + } + return alphabetized_; + } + + public int getAlphabetizedCount() { + return internalGetAlphabetized().getMap().size(); + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + + @java.lang.Override + public boolean containsAlphabetized( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAlphabetized().getMap().containsKey(key); + } + /** + * Use {@link #getAlphabetizedMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAlphabetized() { + return getAlphabetizedMap(); + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + @java.lang.Override + + public java.util.Map getAlphabetizedMap() { + return internalGetAlphabetized().getMap(); + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + @java.lang.Override + + public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( + java.lang.String key, + com.google.showcase.v1beta1.PagedExpandResponseList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAlphabetized().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + @java.lang.Override + + public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAlphabetized().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAlphabetized() { + internalGetMutableAlphabetized().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + + public Builder removeAlphabetized( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAlphabetized().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAlphabetized() { + return internalGetMutableAlphabetized().getMutableMap(); + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + public Builder putAlphabetized( + java.lang.String key, + com.google.showcase.v1beta1.PagedExpandResponseList value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAlphabetized().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * The words that were expanded, indexed by their initial character.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+     *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+     * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + + public Builder putAllAlphabetized( + java.util.Map values) { + internalGetMutableAlphabetized().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The next page token.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The next page token.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next page token.
+     * 
+ * + * 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; + 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.showcase.v1beta1.PagedExpandLegacyMappedResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) + private static final com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse(); + } + + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandLegacyMappedResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagedExpandLegacyMappedResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java new file mode 100644 index 0000000000..2d81d0ce10 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface PagedExpandLegacyMappedResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + int getAlphabetizedCount(); + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + boolean containsAlphabetized( + java.lang.String key); + /** + * Use {@link #getAlphabetizedMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAlphabetized(); + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + java.util.Map + getAlphabetizedMap(); + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + + /* nullable */ +com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( + java.lang.String key, + /* nullable */ +com.google.showcase.v1beta1.PagedExpandResponseList defaultValue); + /** + *
+   * The words that were expanded, indexed by their initial character.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
+   *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
+   * 
+ * + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + */ + + com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow( + java.lang.String key); + + /** + *
+   * The next page token.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The next page token.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java new file mode 100644 index 0000000000..5a0fecec07 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java @@ -0,0 +1,853 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for the PagedExpandLegacy method.  This is a pattern used by some legacy APIs. New
+ * APIs should NOT use this pattern, but rather something like PagedExpandRequest which conforms to
+ * aip.dev/158.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyRequest} + */ +public final class PagedExpandLegacyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandLegacyRequest) + PagedExpandLegacyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PagedExpandLegacyRequest.newBuilder() to construct. + private PagedExpandLegacyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagedExpandLegacyRequest() { + content_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PagedExpandLegacyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagedExpandLegacyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + case 16: { + + maxResults_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandLegacyRequest.class, com.google.showcase.v1beta1.PagedExpandLegacyRequest.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private volatile java.lang.Object content_; + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_RESULTS_FIELD_NUMBER = 2; + private int maxResults_; + /** + *
+   * The number of words to returned in each page.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
+   *     violates aip.dev/158. Ordinarily, this should be page_size. --)
+   * 
+ * + * int32 max_results = 2; + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * 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; + } + } + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * 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(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + if (maxResults_ != 0) { + output.writeInt32(2, maxResults_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + if (maxResults_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxResults_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandLegacyRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.PagedExpandLegacyRequest other = (com.google.showcase.v1beta1.PagedExpandLegacyRequest) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (getMaxResults() + != other.getMaxResults()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest 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.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest 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.showcase.v1beta1.PagedExpandLegacyRequest 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 request for the PagedExpandLegacy method.  This is a pattern used by some legacy APIs. New
+   * APIs should NOT use this pattern, but rather something like PagedExpandRequest which conforms to
+   * aip.dev/158.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandLegacyRequest) + com.google.showcase.v1beta1.PagedExpandLegacyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandLegacyRequest.class, com.google.showcase.v1beta1.PagedExpandLegacyRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.PagedExpandLegacyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + maxResults_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyRequest build() { + com.google.showcase.v1beta1.PagedExpandLegacyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyRequest buildPartial() { + com.google.showcase.v1beta1.PagedExpandLegacyRequest result = new com.google.showcase.v1beta1.PagedExpandLegacyRequest(this); + result.content_ = content_; + result.maxResults_ = maxResults_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.PagedExpandLegacyRequest) { + return mergeFrom((com.google.showcase.v1beta1.PagedExpandLegacyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandLegacyRequest other) { + if (other == com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + if (other.getMaxResults() != 0) { + setMaxResults(other.getMaxResults()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.PagedExpandLegacyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.PagedExpandLegacyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + private int maxResults_ ; + /** + *
+     * The number of words to returned in each page.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
+     *     violates aip.dev/158. Ordinarily, this should be page_size. --)
+     * 
+ * + * int32 max_results = 2; + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + /** + *
+     * The number of words to returned in each page.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
+     *     violates aip.dev/158. Ordinarily, this should be page_size. --)
+     * 
+ * + * int32 max_results = 2; + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of words to returned in each page.
+     * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
+     *     violates aip.dev/158. Ordinarily, this should be page_size. --)
+     * 
+ * + * int32 max_results = 2; + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + } + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + } + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + 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.showcase.v1beta1.PagedExpandLegacyRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandLegacyRequest) + private static final com.google.showcase.v1beta1.PagedExpandLegacyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandLegacyRequest(); + } + + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandLegacyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagedExpandLegacyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandLegacyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java new file mode 100644 index 0000000000..54a86448e2 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface PagedExpandLegacyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandLegacyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); + + /** + *
+   * The number of words to returned in each page.
+   * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
+   *     violates aip.dev/158. Ordinarily, this should be page_size. --)
+   * 
+ * + * int32 max_results = 2; + * @return The maxResults. + */ + int getMaxResults(); + + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java new file mode 100644 index 0000000000..291ce47b8b --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java @@ -0,0 +1,841 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for the PagedExpand method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandRequest} + */ +public final class PagedExpandRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandRequest) + PagedExpandRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PagedExpandRequest.newBuilder() to construct. + private PagedExpandRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagedExpandRequest() { + content_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PagedExpandRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagedExpandRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandRequest.class, com.google.showcase.v1beta1.PagedExpandRequest.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private volatile java.lang.Object content_; + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * The number of words to returned in each page.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * 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; + } + } + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * 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(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.PagedExpandRequest other = (com.google.showcase.v1beta1.PagedExpandRequest) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandRequest 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.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandRequest 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.showcase.v1beta1.PagedExpandRequest 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 request for the PagedExpand method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandRequest) + com.google.showcase.v1beta1.PagedExpandRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandRequest.class, com.google.showcase.v1beta1.PagedExpandRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.PagedExpandRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandRequest build() { + com.google.showcase.v1beta1.PagedExpandRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandRequest buildPartial() { + com.google.showcase.v1beta1.PagedExpandRequest result = new com.google.showcase.v1beta1.PagedExpandRequest(this); + result.content_ = content_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.PagedExpandRequest) { + return mergeFrom((com.google.showcase.v1beta1.PagedExpandRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandRequest other) { + if (other == com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.PagedExpandRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.PagedExpandRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + *
+     * The string to expand.
+     * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The number of words to returned in each page.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The number of words to returned in each page.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of words to returned in each page.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + } + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + } + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The position of the page to be returned.
+     * 
+ * + * 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; + 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.showcase.v1beta1.PagedExpandRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandRequest) + private static final com.google.showcase.v1beta1.PagedExpandRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandRequest(); + } + + public static com.google.showcase.v1beta1.PagedExpandRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagedExpandRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java new file mode 100644 index 0000000000..dc5b9a11b1 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface PagedExpandRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * The string to expand.
+   * 
+ * + * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); + + /** + *
+   * The number of words to returned in each page.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The position of the page to be returned.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java new file mode 100644 index 0000000000..a0c8934c64 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java @@ -0,0 +1,1038 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response for the PagedExpand method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponse} + */ +public final class PagedExpandResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandResponse) + PagedExpandResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PagedExpandResponse.newBuilder() to construct. + private PagedExpandResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagedExpandResponse() { + responses_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PagedExpandResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagedExpandResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage(com.google.showcase.v1beta1.EchoResponse.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandResponse.class, com.google.showcase.v1beta1.PagedExpandResponse.Builder.class); + } + + public static final int RESPONSES_FIELD_NUMBER = 1; + private java.util.List responses_; + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + @java.lang.Override + public java.util.List getResponsesList() { + return responses_; + } + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + @java.lang.Override + public java.util.List + getResponsesOrBuilderList() { + return responses_; + } + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + @java.lang.Override + public int getResponsesCount() { + return responses_.size(); + } + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.EchoResponse getResponses(int index) { + return responses_.get(index); + } + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( + int index) { + return responses_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * The next page token.
+   * 
+ * + * 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; + } + } + /** + *
+   * The next page token.
+   * 
+ * + * 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 < responses_.size(); i++) { + output.writeMessage(1, responses_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < responses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, responses_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.PagedExpandResponse other = (com.google.showcase.v1beta1.PagedExpandResponse) obj; + + if (!getResponsesList() + .equals(other.getResponsesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResponsesCount() > 0) { + hash = (37 * hash) + RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getResponsesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandResponse 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.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandResponse 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.showcase.v1beta1.PagedExpandResponse 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 response for the PagedExpand method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandResponse) + com.google.showcase.v1beta1.PagedExpandResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandResponse.class, com.google.showcase.v1beta1.PagedExpandResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.PagedExpandResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponsesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + responsesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponse build() { + com.google.showcase.v1beta1.PagedExpandResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponse buildPartial() { + com.google.showcase.v1beta1.PagedExpandResponse result = new com.google.showcase.v1beta1.PagedExpandResponse(this); + int from_bitField0_ = bitField0_; + if (responsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responses_ = responses_; + } else { + result.responses_ = responsesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.PagedExpandResponse) { + return mergeFrom((com.google.showcase.v1beta1.PagedExpandResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandResponse other) { + if (other == com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()) return this; + if (responsesBuilder_ == null) { + if (!other.responses_.isEmpty()) { + if (responses_.isEmpty()) { + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponsesIsMutable(); + responses_.addAll(other.responses_); + } + onChanged(); + } + } else { + if (!other.responses_.isEmpty()) { + if (responsesBuilder_.isEmpty()) { + responsesBuilder_.dispose(); + responsesBuilder_ = null; + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; + } else { + responsesBuilder_.addAllMessages(other.responses_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.PagedExpandResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.PagedExpandResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List responses_ = + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(responses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.EchoResponse, com.google.showcase.v1beta1.EchoResponse.Builder, com.google.showcase.v1beta1.EchoResponseOrBuilder> responsesBuilder_; + + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public java.util.List getResponsesList() { + if (responsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responses_); + } else { + return responsesBuilder_.getMessageList(); + } + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public int getResponsesCount() { + if (responsesBuilder_ == null) { + return responses_.size(); + } else { + return responsesBuilder_.getCount(); + } + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public com.google.showcase.v1beta1.EchoResponse getResponses(int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); + } else { + return responsesBuilder_.getMessage(index); + } + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder setResponses( + int index, com.google.showcase.v1beta1.EchoResponse value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.set(index, value); + onChanged(); + } else { + responsesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder setResponses( + int index, com.google.showcase.v1beta1.EchoResponse.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.set(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder addResponses(com.google.showcase.v1beta1.EchoResponse value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(value); + onChanged(); + } else { + responsesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder addResponses( + int index, com.google.showcase.v1beta1.EchoResponse value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(index, value); + onChanged(); + } else { + responsesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder addResponses( + com.google.showcase.v1beta1.EchoResponse.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder addResponses( + int index, com.google.showcase.v1beta1.EchoResponse.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder addAllResponses( + java.lang.Iterable values) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); + onChanged(); + } else { + responsesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder clearResponses() { + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + responsesBuilder_.clear(); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public Builder removeResponses(int index) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.remove(index); + onChanged(); + } else { + responsesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public com.google.showcase.v1beta1.EchoResponse.Builder getResponsesBuilder( + int index) { + return getResponsesFieldBuilder().getBuilder(index); + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( + int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); } else { + return responsesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public java.util.List + getResponsesOrBuilderList() { + if (responsesBuilder_ != null) { + return responsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responses_); + } + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public com.google.showcase.v1beta1.EchoResponse.Builder addResponsesBuilder() { + return getResponsesFieldBuilder().addBuilder( + com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()); + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public com.google.showcase.v1beta1.EchoResponse.Builder addResponsesBuilder( + int index) { + return getResponsesFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()); + } + /** + *
+     * The words that were expanded.
+     * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + public java.util.List + getResponsesBuilderList() { + return getResponsesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.EchoResponse, com.google.showcase.v1beta1.EchoResponse.Builder, com.google.showcase.v1beta1.EchoResponseOrBuilder> + getResponsesFieldBuilder() { + if (responsesBuilder_ == null) { + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.EchoResponse, com.google.showcase.v1beta1.EchoResponse.Builder, com.google.showcase.v1beta1.EchoResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + responses_ = null; + } + return responsesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The next page token.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next page token.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The next page token.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next page token.
+     * 
+ * + * 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; + 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.showcase.v1beta1.PagedExpandResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandResponse) + private static final com.google.showcase.v1beta1.PagedExpandResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandResponse(); + } + + public static com.google.showcase.v1beta1.PagedExpandResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagedExpandResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java new file mode 100644 index 0000000000..61a75fdeb1 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java @@ -0,0 +1,624 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * A list of words.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponseList} + */ +public final class PagedExpandResponseList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandResponseList) + PagedExpandResponseListOrBuilder { +private static final long serialVersionUID = 0L; + // Use PagedExpandResponseList.newBuilder() to construct. + private PagedExpandResponseList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagedExpandResponseList() { + words_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PagedExpandResponseList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagedExpandResponseList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = words_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandResponseList.class, com.google.showcase.v1beta1.PagedExpandResponseList.Builder.class); + } + + public static final int WORDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList words_; + /** + * repeated string words = 1; + * @return A list containing the words. + */ + public com.google.protobuf.ProtocolStringList + getWordsList() { + return words_; + } + /** + * repeated string words = 1; + * @return The count of words. + */ + public int getWordsCount() { + return words_.size(); + } + /** + * repeated string words = 1; + * @param index The index of the element to return. + * @return The words at the given index. + */ + public java.lang.String getWords(int index) { + return words_.get(index); + } + /** + * repeated string words = 1; + * @param index The index of the value to return. + * @return The bytes of the words at the given index. + */ + public com.google.protobuf.ByteString + getWordsBytes(int index) { + return words_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < words_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, words_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < words_.size(); i++) { + dataSize += computeStringSizeNoTag(words_.getRaw(i)); + } + size += dataSize; + size += 1 * getWordsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandResponseList)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.PagedExpandResponseList other = (com.google.showcase.v1beta1.PagedExpandResponseList) obj; + + if (!getWordsList() + .equals(other.getWordsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWordsCount() > 0) { + hash = (37 * hash) + WORDS_FIELD_NUMBER; + hash = (53 * hash) + getWordsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList 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.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.PagedExpandResponseList 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.showcase.v1beta1.PagedExpandResponseList 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 list of words.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponseList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandResponseList) + com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.PagedExpandResponseList.class, com.google.showcase.v1beta1.PagedExpandResponseList.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.PagedExpandResponseList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + words_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponseList getDefaultInstanceForType() { + return com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponseList build() { + com.google.showcase.v1beta1.PagedExpandResponseList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponseList buildPartial() { + com.google.showcase.v1beta1.PagedExpandResponseList result = new com.google.showcase.v1beta1.PagedExpandResponseList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + words_ = words_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.words_ = words_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.PagedExpandResponseList) { + return mergeFrom((com.google.showcase.v1beta1.PagedExpandResponseList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandResponseList other) { + if (other == com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance()) return this; + if (!other.words_.isEmpty()) { + if (words_.isEmpty()) { + words_ = other.words_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWordsIsMutable(); + words_.addAll(other.words_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.PagedExpandResponseList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.PagedExpandResponseList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList words_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWordsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + words_ = new com.google.protobuf.LazyStringArrayList(words_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string words = 1; + * @return A list containing the words. + */ + public com.google.protobuf.ProtocolStringList + getWordsList() { + return words_.getUnmodifiableView(); + } + /** + * repeated string words = 1; + * @return The count of words. + */ + public int getWordsCount() { + return words_.size(); + } + /** + * repeated string words = 1; + * @param index The index of the element to return. + * @return The words at the given index. + */ + public java.lang.String getWords(int index) { + return words_.get(index); + } + /** + * repeated string words = 1; + * @param index The index of the value to return. + * @return The bytes of the words at the given index. + */ + public com.google.protobuf.ByteString + getWordsBytes(int index) { + return words_.getByteString(index); + } + /** + * repeated string words = 1; + * @param index The index to set the value at. + * @param value The words to set. + * @return This builder for chaining. + */ + public Builder setWords( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWordsIsMutable(); + words_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string words = 1; + * @param value The words to add. + * @return This builder for chaining. + */ + public Builder addWords( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWordsIsMutable(); + words_.add(value); + onChanged(); + return this; + } + /** + * repeated string words = 1; + * @param values The words to add. + * @return This builder for chaining. + */ + public Builder addAllWords( + java.lang.Iterable values) { + ensureWordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); + onChanged(); + return this; + } + /** + * repeated string words = 1; + * @return This builder for chaining. + */ + public Builder clearWords() { + words_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string words = 1; + * @param value The bytes of the words to add. + * @return This builder for chaining. + */ + public Builder addWordsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWordsIsMutable(); + words_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.PagedExpandResponseList) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandResponseList) + private static final com.google.showcase.v1beta1.PagedExpandResponseList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandResponseList(); + } + + public static com.google.showcase.v1beta1.PagedExpandResponseList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandResponseList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagedExpandResponseList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.PagedExpandResponseList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java new file mode 100644 index 0000000000..56c27b2f60 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface PagedExpandResponseListOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandResponseList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string words = 1; + * @return A list containing the words. + */ + java.util.List + getWordsList(); + /** + * repeated string words = 1; + * @return The count of words. + */ + int getWordsCount(); + /** + * repeated string words = 1; + * @param index The index of the element to return. + * @return The words at the given index. + */ + java.lang.String getWords(int index); + /** + * repeated string words = 1; + * @param index The index of the value to return. + * @return The bytes of the words at the given index. + */ + com.google.protobuf.ByteString + getWordsBytes(int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java new file mode 100644 index 0000000000..613e7031bd --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface PagedExpandResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + java.util.List + getResponsesList(); + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + com.google.showcase.v1beta1.EchoResponse getResponses(int index); + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + int getResponsesCount(); + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + java.util.List + getResponsesOrBuilderList(); + /** + *
+   * The words that were expanded.
+   * 
+ * + * repeated .google.showcase.v1beta1.EchoResponse responses = 1; + */ + com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( + int index); + + /** + *
+   * The next page token.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The next page token.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java new file mode 100644 index 0000000000..b69500d0ae --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 ProfileName implements ResourceName { + private static final PathTemplate USER = + PathTemplate.createWithoutUrlEncoding("users/{user}/profile/blurbs"); + private volatile Map fieldValuesMap; + private final String user; + + @Deprecated + protected ProfileName() { + user = null; + } + + private ProfileName(Builder builder) { + user = Preconditions.checkNotNull(builder.getUser()); + } + + public String getUser() { + return user; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProfileName of(String user) { + return newBuilder().setUser(user).build(); + } + + public static String format(String user) { + return newBuilder().setUser(user).build().toString(); + } + + public static ProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + USER.validatedMatch( + formattedString, "ProfileName.parse: formattedString not in valid format"); + return of(matchMap.get("user")); + } + + 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 (ProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return USER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (user != null) { + fieldMapBuilder.put("user", user); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return USER.instantiate("user", user); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ProfileName that = ((ProfileName) o); + return Objects.equals(this.user, that.user); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(user); + return h; + } + + /** Builder for users/{user}/profile/blurbs. */ + public static class Builder { + private String user; + + protected Builder() {} + + public String getUser() { + return user; + } + + public Builder setUser(String user) { + this.user = user; + return this; + } + + private Builder(ProfileName profileName) { + this.user = profileName.user; + } + + public ProfileName build() { + return new ProfileName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java new file mode 100644 index 0000000000..3a22cdf230 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java @@ -0,0 +1,1518 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.RepeatRequest} + */ +public final class RepeatRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.RepeatRequest) + RepeatRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RepeatRequest.newBuilder() to construct. + private RepeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RepeatRequest() { + name_ = ""; + intendedBindingUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RepeatRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RepeatRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + com.google.showcase.v1beta1.ComplianceData.Builder subBuilder = null; + if (info_ != null) { + subBuilder = info_.toBuilder(); + } + info_ = input.readMessage(com.google.showcase.v1beta1.ComplianceData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(info_); + info_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + serverVerify_ = input.readBool(); + break; + } + case 32: { + + fInt32_ = input.readInt32(); + break; + } + case 40: { + + fInt64_ = input.readInt64(); + break; + } + case 49: { + + fDouble_ = input.readDouble(); + break; + } + case 56: { + bitField0_ |= 0x00000002; + pInt32_ = input.readInt32(); + break; + } + case 64: { + bitField0_ |= 0x00000004; + pInt64_ = input.readInt64(); + break; + } + case 73: { + bitField0_ |= 0x00000008; + pDouble_ = input.readDouble(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + intendedBindingUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.RepeatRequest.class, com.google.showcase.v1beta1.RepeatRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INFO_FIELD_NUMBER = 2; + private com.google.showcase.v1beta1.ComplianceData info_; + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return info_ != null; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + * @return The info. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceData getInfo() { + return info_ == null ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder() { + return getInfo(); + } + + public static final int SERVER_VERIFY_FIELD_NUMBER = 3; + private boolean serverVerify_; + /** + *
+   * If true, the server will verify that the received request matches
+   * the request with the same name in the compliance test suite.
+   * 
+ * + * bool server_verify = 3; + * @return The serverVerify. + */ + @java.lang.Override + public boolean getServerVerify() { + return serverVerify_; + } + + public static final int INTENDED_BINDING_URI_FIELD_NUMBER = 10; + private volatile java.lang.Object intendedBindingUri_; + /** + *
+   * The URI template this request is expected to be bound to server-side.
+   * 
+ * + * optional string intended_binding_uri = 10; + * @return Whether the intendedBindingUri field is set. + */ + @java.lang.Override + public boolean hasIntendedBindingUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The URI template this request is expected to be bound to server-side.
+   * 
+ * + * optional string intended_binding_uri = 10; + * @return The intendedBindingUri. + */ + @java.lang.Override + public java.lang.String getIntendedBindingUri() { + java.lang.Object ref = intendedBindingUri_; + 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(); + intendedBindingUri_ = s; + return s; + } + } + /** + *
+   * The URI template this request is expected to be bound to server-side.
+   * 
+ * + * optional string intended_binding_uri = 10; + * @return The bytes for intendedBindingUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIntendedBindingUriBytes() { + java.lang.Object ref = intendedBindingUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + intendedBindingUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int F_INT32_FIELD_NUMBER = 4; + private int fInt32_; + /** + *
+   * Some top level fields, to test that these are encoded correctly
+   * in query params.
+   * 
+ * + * int32 f_int32 = 4; + * @return The fInt32. + */ + @java.lang.Override + public int getFInt32() { + return fInt32_; + } + + public static final int F_INT64_FIELD_NUMBER = 5; + private long fInt64_; + /** + * int64 f_int64 = 5; + * @return The fInt64. + */ + @java.lang.Override + public long getFInt64() { + return fInt64_; + } + + public static final int F_DOUBLE_FIELD_NUMBER = 6; + private double fDouble_; + /** + * double f_double = 6; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + + public static final int P_INT32_FIELD_NUMBER = 7; + private int pInt32_; + /** + * optional int32 p_int32 = 7; + * @return Whether the pInt32 field is set. + */ + @java.lang.Override + public boolean hasPInt32() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 p_int32 = 7; + * @return The pInt32. + */ + @java.lang.Override + public int getPInt32() { + return pInt32_; + } + + public static final int P_INT64_FIELD_NUMBER = 8; + private long pInt64_; + /** + * optional int64 p_int64 = 8; + * @return Whether the pInt64 field is set. + */ + @java.lang.Override + public boolean hasPInt64() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 p_int64 = 8; + * @return The pInt64. + */ + @java.lang.Override + public long getPInt64() { + return pInt64_; + } + + public static final int P_DOUBLE_FIELD_NUMBER = 9; + private double pDouble_; + /** + * optional double p_double = 9; + * @return Whether the pDouble field is set. + */ + @java.lang.Override + public boolean hasPDouble() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double p_double = 9; + * @return The pDouble. + */ + @java.lang.Override + public double getPDouble() { + return pDouble_; + } + + 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 (info_ != null) { + output.writeMessage(2, getInfo()); + } + if (serverVerify_ != false) { + output.writeBool(3, serverVerify_); + } + if (fInt32_ != 0) { + output.writeInt32(4, fInt32_); + } + if (fInt64_ != 0L) { + output.writeInt64(5, fInt64_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + output.writeDouble(6, fDouble_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(7, pInt32_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(8, pInt64_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(9, pDouble_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, intendedBindingUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInfo()); + } + if (serverVerify_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, serverVerify_); + } + if (fInt32_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, fInt32_); + } + if (fInt64_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, fInt64_); + } + if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, fDouble_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, pInt32_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, pInt64_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, pDouble_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, intendedBindingUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.RepeatRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.RepeatRequest other = (com.google.showcase.v1beta1.RepeatRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasInfo() != other.hasInfo()) return false; + if (hasInfo()) { + if (!getInfo() + .equals(other.getInfo())) return false; + } + if (getServerVerify() + != other.getServerVerify()) return false; + if (hasIntendedBindingUri() != other.hasIntendedBindingUri()) return false; + if (hasIntendedBindingUri()) { + if (!getIntendedBindingUri() + .equals(other.getIntendedBindingUri())) return false; + } + if (getFInt32() + != other.getFInt32()) return false; + if (getFInt64() + != other.getFInt64()) return false; + if (java.lang.Double.doubleToLongBits(getFDouble()) + != java.lang.Double.doubleToLongBits( + other.getFDouble())) return false; + if (hasPInt32() != other.hasPInt32()) return false; + if (hasPInt32()) { + if (getPInt32() + != other.getPInt32()) return false; + } + if (hasPInt64() != other.hasPInt64()) return false; + if (hasPInt64()) { + if (getPInt64() + != other.getPInt64()) return false; + } + if (hasPDouble() != other.hasPDouble()) return false; + if (hasPDouble()) { + if (java.lang.Double.doubleToLongBits(getPDouble()) + != java.lang.Double.doubleToLongBits( + other.getPDouble())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + hash = (37 * hash) + SERVER_VERIFY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getServerVerify()); + if (hasIntendedBindingUri()) { + hash = (37 * hash) + INTENDED_BINDING_URI_FIELD_NUMBER; + hash = (53 * hash) + getIntendedBindingUri().hashCode(); + } + hash = (37 * hash) + F_INT32_FIELD_NUMBER; + hash = (53 * hash) + getFInt32(); + hash = (37 * hash) + F_INT64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFInt64()); + hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFDouble())); + if (hasPInt32()) { + hash = (37 * hash) + P_INT32_FIELD_NUMBER; + hash = (53 * hash) + getPInt32(); + } + if (hasPInt64()) { + hash = (37 * hash) + P_INT64_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPInt64()); + } + if (hasPDouble()) { + hash = (37 * hash) + P_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPDouble())); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.RepeatRequest 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.showcase.v1beta1.RepeatRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.RepeatRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.RepeatRequest 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.showcase.v1beta1.RepeatRequest 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.RepeatRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.RepeatRequest) + com.google.showcase.v1beta1.RepeatRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.RepeatRequest.class, com.google.showcase.v1beta1.RepeatRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.RepeatRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } + serverVerify_ = false; + + intendedBindingUri_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + fInt32_ = 0; + + fInt64_ = 0L; + + fDouble_ = 0D; + + pInt32_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + pInt64_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + pDouble_ = 0D; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequest build() { + com.google.showcase.v1beta1.RepeatRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequest buildPartial() { + com.google.showcase.v1beta1.RepeatRequest result = new com.google.showcase.v1beta1.RepeatRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (infoBuilder_ == null) { + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } + result.serverVerify_ = serverVerify_; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.intendedBindingUri_ = intendedBindingUri_; + result.fInt32_ = fInt32_; + result.fInt64_ = fInt64_; + result.fDouble_ = fDouble_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pInt32_ = pInt32_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pInt64_ = pInt64_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pDouble_ = pDouble_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.RepeatRequest) { + return mergeFrom((com.google.showcase.v1beta1.RepeatRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.RepeatRequest other) { + if (other == com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + if (other.getServerVerify() != false) { + setServerVerify(other.getServerVerify()); + } + if (other.hasIntendedBindingUri()) { + bitField0_ |= 0x00000001; + intendedBindingUri_ = other.intendedBindingUri_; + onChanged(); + } + if (other.getFInt32() != 0) { + setFInt32(other.getFInt32()); + } + if (other.getFInt64() != 0L) { + setFInt64(other.getFInt64()); + } + if (other.getFDouble() != 0D) { + setFDouble(other.getFDouble()); + } + if (other.hasPInt32()) { + setPInt32(other.getPInt32()); + } + if (other.hasPInt64()) { + setPInt64(other.getPInt64()); + } + if (other.hasPDouble()) { + setPDouble(other.getPDouble()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.RepeatRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.RepeatRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.ComplianceData info_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceData, com.google.showcase.v1beta1.ComplianceData.Builder, com.google.showcase.v1beta1.ComplianceDataOrBuilder> infoBuilder_; + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + * @return The info. + */ + public com.google.showcase.v1beta1.ComplianceData getInfo() { + if (infoBuilder_ == null) { + return info_ == null ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + public Builder setInfo(com.google.showcase.v1beta1.ComplianceData value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + onChanged(); + } else { + infoBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + public Builder setInfo( + com.google.showcase.v1beta1.ComplianceData.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + public Builder mergeInfo(com.google.showcase.v1beta1.ComplianceData value) { + if (infoBuilder_ == null) { + if (info_ != null) { + info_ = + com.google.showcase.v1beta1.ComplianceData.newBuilder(info_).mergeFrom(value).buildPartial(); + } else { + info_ = value; + } + onChanged(); + } else { + infoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + public com.google.showcase.v1beta1.ComplianceData.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + public com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null ? + com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; + } + } + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceData, com.google.showcase.v1beta1.ComplianceData.Builder, com.google.showcase.v1beta1.ComplianceDataOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceData, com.google.showcase.v1beta1.ComplianceData.Builder, com.google.showcase.v1beta1.ComplianceDataOrBuilder>( + getInfo(), + getParentForChildren(), + isClean()); + info_ = null; + } + return infoBuilder_; + } + + private boolean serverVerify_ ; + /** + *
+     * If true, the server will verify that the received request matches
+     * the request with the same name in the compliance test suite.
+     * 
+ * + * bool server_verify = 3; + * @return The serverVerify. + */ + @java.lang.Override + public boolean getServerVerify() { + return serverVerify_; + } + /** + *
+     * If true, the server will verify that the received request matches
+     * the request with the same name in the compliance test suite.
+     * 
+ * + * bool server_verify = 3; + * @param value The serverVerify to set. + * @return This builder for chaining. + */ + public Builder setServerVerify(boolean value) { + + serverVerify_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the server will verify that the received request matches
+     * the request with the same name in the compliance test suite.
+     * 
+ * + * bool server_verify = 3; + * @return This builder for chaining. + */ + public Builder clearServerVerify() { + + serverVerify_ = false; + onChanged(); + return this; + } + + private java.lang.Object intendedBindingUri_ = ""; + /** + *
+     * The URI template this request is expected to be bound to server-side.
+     * 
+ * + * optional string intended_binding_uri = 10; + * @return Whether the intendedBindingUri field is set. + */ + public boolean hasIntendedBindingUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The URI template this request is expected to be bound to server-side.
+     * 
+ * + * optional string intended_binding_uri = 10; + * @return The intendedBindingUri. + */ + public java.lang.String getIntendedBindingUri() { + java.lang.Object ref = intendedBindingUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + intendedBindingUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI template this request is expected to be bound to server-side.
+     * 
+ * + * optional string intended_binding_uri = 10; + * @return The bytes for intendedBindingUri. + */ + public com.google.protobuf.ByteString + getIntendedBindingUriBytes() { + java.lang.Object ref = intendedBindingUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + intendedBindingUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI template this request is expected to be bound to server-side.
+     * 
+ * + * optional string intended_binding_uri = 10; + * @param value The intendedBindingUri to set. + * @return This builder for chaining. + */ + public Builder setIntendedBindingUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + intendedBindingUri_ = value; + onChanged(); + return this; + } + /** + *
+     * The URI template this request is expected to be bound to server-side.
+     * 
+ * + * optional string intended_binding_uri = 10; + * @return This builder for chaining. + */ + public Builder clearIntendedBindingUri() { + bitField0_ = (bitField0_ & ~0x00000001); + intendedBindingUri_ = getDefaultInstance().getIntendedBindingUri(); + onChanged(); + return this; + } + /** + *
+     * The URI template this request is expected to be bound to server-side.
+     * 
+ * + * optional string intended_binding_uri = 10; + * @param value The bytes for intendedBindingUri to set. + * @return This builder for chaining. + */ + public Builder setIntendedBindingUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; + intendedBindingUri_ = value; + onChanged(); + return this; + } + + private int fInt32_ ; + /** + *
+     * Some top level fields, to test that these are encoded correctly
+     * in query params.
+     * 
+ * + * int32 f_int32 = 4; + * @return The fInt32. + */ + @java.lang.Override + public int getFInt32() { + return fInt32_; + } + /** + *
+     * Some top level fields, to test that these are encoded correctly
+     * in query params.
+     * 
+ * + * int32 f_int32 = 4; + * @param value The fInt32 to set. + * @return This builder for chaining. + */ + public Builder setFInt32(int value) { + + fInt32_ = value; + onChanged(); + return this; + } + /** + *
+     * Some top level fields, to test that these are encoded correctly
+     * in query params.
+     * 
+ * + * int32 f_int32 = 4; + * @return This builder for chaining. + */ + public Builder clearFInt32() { + + fInt32_ = 0; + onChanged(); + return this; + } + + private long fInt64_ ; + /** + * int64 f_int64 = 5; + * @return The fInt64. + */ + @java.lang.Override + public long getFInt64() { + return fInt64_; + } + /** + * int64 f_int64 = 5; + * @param value The fInt64 to set. + * @return This builder for chaining. + */ + public Builder setFInt64(long value) { + + fInt64_ = value; + onChanged(); + return this; + } + /** + * int64 f_int64 = 5; + * @return This builder for chaining. + */ + public Builder clearFInt64() { + + fInt64_ = 0L; + onChanged(); + return this; + } + + private double fDouble_ ; + /** + * double f_double = 6; + * @return The fDouble. + */ + @java.lang.Override + public double getFDouble() { + return fDouble_; + } + /** + * double f_double = 6; + * @param value The fDouble to set. + * @return This builder for chaining. + */ + public Builder setFDouble(double value) { + + fDouble_ = value; + onChanged(); + return this; + } + /** + * double f_double = 6; + * @return This builder for chaining. + */ + public Builder clearFDouble() { + + fDouble_ = 0D; + onChanged(); + return this; + } + + private int pInt32_ ; + /** + * optional int32 p_int32 = 7; + * @return Whether the pInt32 field is set. + */ + @java.lang.Override + public boolean hasPInt32() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 p_int32 = 7; + * @return The pInt32. + */ + @java.lang.Override + public int getPInt32() { + return pInt32_; + } + /** + * optional int32 p_int32 = 7; + * @param value The pInt32 to set. + * @return This builder for chaining. + */ + public Builder setPInt32(int value) { + bitField0_ |= 0x00000002; + pInt32_ = value; + onChanged(); + return this; + } + /** + * optional int32 p_int32 = 7; + * @return This builder for chaining. + */ + public Builder clearPInt32() { + bitField0_ = (bitField0_ & ~0x00000002); + pInt32_ = 0; + onChanged(); + return this; + } + + private long pInt64_ ; + /** + * optional int64 p_int64 = 8; + * @return Whether the pInt64 field is set. + */ + @java.lang.Override + public boolean hasPInt64() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 p_int64 = 8; + * @return The pInt64. + */ + @java.lang.Override + public long getPInt64() { + return pInt64_; + } + /** + * optional int64 p_int64 = 8; + * @param value The pInt64 to set. + * @return This builder for chaining. + */ + public Builder setPInt64(long value) { + bitField0_ |= 0x00000004; + pInt64_ = value; + onChanged(); + return this; + } + /** + * optional int64 p_int64 = 8; + * @return This builder for chaining. + */ + public Builder clearPInt64() { + bitField0_ = (bitField0_ & ~0x00000004); + pInt64_ = 0L; + onChanged(); + return this; + } + + private double pDouble_ ; + /** + * optional double p_double = 9; + * @return Whether the pDouble field is set. + */ + @java.lang.Override + public boolean hasPDouble() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double p_double = 9; + * @return The pDouble. + */ + @java.lang.Override + public double getPDouble() { + return pDouble_; + } + /** + * optional double p_double = 9; + * @param value The pDouble to set. + * @return This builder for chaining. + */ + public Builder setPDouble(double value) { + bitField0_ |= 0x00000008; + pDouble_ = value; + onChanged(); + return this; + } + /** + * optional double p_double = 9; + * @return This builder for chaining. + */ + public Builder clearPDouble() { + bitField0_ = (bitField0_ & ~0x00000008); + pDouble_ = 0D; + 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.showcase.v1beta1.RepeatRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.RepeatRequest) + private static final com.google.showcase.v1beta1.RepeatRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.RepeatRequest(); + } + + public static com.google.showcase.v1beta1.RepeatRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepeatRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepeatRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java new file mode 100644 index 0000000000..a95f03f773 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface RepeatRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.RepeatRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + * @return Whether the info field is set. + */ + boolean hasInfo(); + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + * @return The info. + */ + com.google.showcase.v1beta1.ComplianceData getInfo(); + /** + * .google.showcase.v1beta1.ComplianceData info = 2; + */ + com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder(); + + /** + *
+   * If true, the server will verify that the received request matches
+   * the request with the same name in the compliance test suite.
+   * 
+ * + * bool server_verify = 3; + * @return The serverVerify. + */ + boolean getServerVerify(); + + /** + *
+   * The URI template this request is expected to be bound to server-side.
+   * 
+ * + * optional string intended_binding_uri = 10; + * @return Whether the intendedBindingUri field is set. + */ + boolean hasIntendedBindingUri(); + /** + *
+   * The URI template this request is expected to be bound to server-side.
+   * 
+ * + * optional string intended_binding_uri = 10; + * @return The intendedBindingUri. + */ + java.lang.String getIntendedBindingUri(); + /** + *
+   * The URI template this request is expected to be bound to server-side.
+   * 
+ * + * optional string intended_binding_uri = 10; + * @return The bytes for intendedBindingUri. + */ + com.google.protobuf.ByteString + getIntendedBindingUriBytes(); + + /** + *
+   * Some top level fields, to test that these are encoded correctly
+   * in query params.
+   * 
+ * + * int32 f_int32 = 4; + * @return The fInt32. + */ + int getFInt32(); + + /** + * int64 f_int64 = 5; + * @return The fInt64. + */ + long getFInt64(); + + /** + * double f_double = 6; + * @return The fDouble. + */ + double getFDouble(); + + /** + * optional int32 p_int32 = 7; + * @return Whether the pInt32 field is set. + */ + boolean hasPInt32(); + /** + * optional int32 p_int32 = 7; + * @return The pInt32. + */ + int getPInt32(); + + /** + * optional int64 p_int64 = 8; + * @return Whether the pInt64 field is set. + */ + boolean hasPInt64(); + /** + * optional int64 p_int64 = 8; + * @return The pInt64. + */ + long getPInt64(); + + /** + * optional double p_double = 9; + * @return Whether the pDouble field is set. + */ + boolean hasPDouble(); + /** + * optional double p_double = 9; + * @return The pDouble. + */ + double getPDouble(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java new file mode 100644 index 0000000000..48b1ad96ac --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java @@ -0,0 +1,775 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.RepeatResponse} + */ +public final class RepeatResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.RepeatResponse) + RepeatResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use RepeatResponse.newBuilder() to construct. + private RepeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RepeatResponse() { + bindingUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RepeatResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RepeatResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.RepeatRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.google.showcase.v1beta1.RepeatRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + bindingUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.RepeatResponse.class, com.google.showcase.v1beta1.RepeatResponse.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.RepeatRequest request_; + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + * @return Whether the request field is set. + */ + @java.lang.Override + public boolean hasRequest() { + return request_ != null; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + * @return The request. + */ + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequest getRequest() { + return request_ == null ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int BINDING_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object bindingUri_; + /** + *
+   * The URI template the request was bound to server-side.
+   * 
+ * + * string binding_uri = 2; + * @return The bindingUri. + */ + @java.lang.Override + public java.lang.String getBindingUri() { + java.lang.Object ref = bindingUri_; + 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(); + bindingUri_ = s; + return s; + } + } + /** + *
+   * The URI template the request was bound to server-side.
+   * 
+ * + * string binding_uri = 2; + * @return The bytes for bindingUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBindingUriBytes() { + java.lang.Object ref = bindingUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bindingUri_ = 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bindingUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bindingUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bindingUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bindingUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.RepeatResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.RepeatResponse other = (com.google.showcase.v1beta1.RepeatResponse) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getBindingUri() + .equals(other.getBindingUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + BINDING_URI_FIELD_NUMBER; + hash = (53 * hash) + getBindingUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.RepeatResponse 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.showcase.v1beta1.RepeatResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.RepeatResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.RepeatResponse 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.showcase.v1beta1.RepeatResponse 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.RepeatResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.RepeatResponse) + com.google.showcase.v1beta1.RepeatResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.RepeatResponse.class, com.google.showcase.v1beta1.RepeatResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.RepeatResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + bindingUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatResponse build() { + com.google.showcase.v1beta1.RepeatResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatResponse buildPartial() { + com.google.showcase.v1beta1.RepeatResponse result = new com.google.showcase.v1beta1.RepeatResponse(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.bindingUri_ = bindingUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.RepeatResponse) { + return mergeFrom((com.google.showcase.v1beta1.RepeatResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.RepeatResponse other) { + if (other == com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getBindingUri().isEmpty()) { + bindingUri_ = other.bindingUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.RepeatResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.RepeatResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.RepeatRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> requestBuilder_; + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + * @return The request. + */ + public com.google.showcase.v1beta1.RepeatRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + public Builder setRequest(com.google.showcase.v1beta1.RepeatRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + public Builder setRequest( + com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + public Builder mergeRequest(com.google.showcase.v1beta1.RepeatRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.showcase.v1beta1.RepeatRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + public com.google.showcase.v1beta1.RepeatRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + } + } + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.lang.Object bindingUri_ = ""; + /** + *
+     * The URI template the request was bound to server-side.
+     * 
+ * + * string binding_uri = 2; + * @return The bindingUri. + */ + public java.lang.String getBindingUri() { + java.lang.Object ref = bindingUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bindingUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI template the request was bound to server-side.
+     * 
+ * + * string binding_uri = 2; + * @return The bytes for bindingUri. + */ + public com.google.protobuf.ByteString + getBindingUriBytes() { + java.lang.Object ref = bindingUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bindingUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI template the request was bound to server-side.
+     * 
+ * + * string binding_uri = 2; + * @param value The bindingUri to set. + * @return This builder for chaining. + */ + public Builder setBindingUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bindingUri_ = value; + onChanged(); + return this; + } + /** + *
+     * The URI template the request was bound to server-side.
+     * 
+ * + * string binding_uri = 2; + * @return This builder for chaining. + */ + public Builder clearBindingUri() { + + bindingUri_ = getDefaultInstance().getBindingUri(); + onChanged(); + return this; + } + /** + *
+     * The URI template the request was bound to server-side.
+     * 
+ * + * string binding_uri = 2; + * @param value The bytes for bindingUri to set. + * @return This builder for chaining. + */ + public Builder setBindingUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bindingUri_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.RepeatResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.RepeatResponse) + private static final com.google.showcase.v1beta1.RepeatResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.RepeatResponse(); + } + + public static com.google.showcase.v1beta1.RepeatResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepeatResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepeatResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.RepeatResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java new file mode 100644 index 0000000000..9ddd20a4b4 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +package com.google.showcase.v1beta1; + +public interface RepeatResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.RepeatResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + * @return The request. + */ + com.google.showcase.v1beta1.RepeatRequest getRequest(); + /** + * .google.showcase.v1beta1.RepeatRequest request = 1; + */ + com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder(); + + /** + *
+   * The URI template the request was bound to server-side.
+   * 
+ * + * string binding_uri = 2; + * @return The bindingUri. + */ + java.lang.String getBindingUri(); + /** + *
+   * The URI template the request was bound to server-side.
+   * 
+ * + * string binding_uri = 2; + * @return The bytes for bindingUri. + */ + com.google.protobuf.ByteString + getBindingUriBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java new file mode 100644 index 0000000000..397a926c8d --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * Request message for reporting on a session.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ReportSessionRequest} + */ +public final class ReportSessionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ReportSessionRequest) + ReportSessionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ReportSessionRequest.newBuilder() to construct. + private ReportSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReportSessionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReportSessionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReportSessionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ReportSessionRequest.class, com.google.showcase.v1beta1.ReportSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The session to be reported on.
+   * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+   * The session to be reported on.
+   * 
+ * + * string name = 1 [(.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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ReportSessionRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ReportSessionRequest other = (com.google.showcase.v1beta1.ReportSessionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ReportSessionRequest 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.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ReportSessionRequest 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.showcase.v1beta1.ReportSessionRequest 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 reporting on a session.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ReportSessionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ReportSessionRequest) + com.google.showcase.v1beta1.ReportSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ReportSessionRequest.class, com.google.showcase.v1beta1.ReportSessionRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ReportSessionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ReportSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionRequest build() { + com.google.showcase.v1beta1.ReportSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionRequest buildPartial() { + com.google.showcase.v1beta1.ReportSessionRequest result = new com.google.showcase.v1beta1.ReportSessionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ReportSessionRequest) { + return mergeFrom((com.google.showcase.v1beta1.ReportSessionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ReportSessionRequest other) { + if (other == com.google.showcase.v1beta1.ReportSessionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ReportSessionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ReportSessionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The session to be reported on.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The session to be reported on.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+     * The session to be reported on.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The session to be reported on.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The session to be reported on.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ReportSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ReportSessionRequest) + private static final com.google.showcase.v1beta1.ReportSessionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ReportSessionRequest(); + } + + public static com.google.showcase.v1beta1.ReportSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReportSessionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java new file mode 100644 index 0000000000..c27541bfbb --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface ReportSessionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ReportSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The session to be reported on.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The session to be reported on.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java new file mode 100644 index 0000000000..9b83e8a5d9 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java @@ -0,0 +1,1150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * Response message for reporting on a session.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ReportSessionResponse} + */ +public final class ReportSessionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ReportSessionResponse) + ReportSessionResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ReportSessionResponse.newBuilder() to construct. + private ReportSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReportSessionResponse() { + result_ = 0; + testRuns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReportSessionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReportSessionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + result_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + testRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + testRuns_.add( + input.readMessage(com.google.showcase.v1beta1.TestRun.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + testRuns_ = java.util.Collections.unmodifiableList(testRuns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ReportSessionResponse.class, com.google.showcase.v1beta1.ReportSessionResponse.Builder.class); + } + + /** + *
+   * The topline state of the report.
+   * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.ReportSessionResponse.Result} + */ + public enum Result + implements com.google.protobuf.ProtocolMessageEnum { + /** + * RESULT_UNSPECIFIED = 0; + */ + RESULT_UNSPECIFIED(0), + /** + *
+     * The session is complete, and everything passed.
+     * 
+ * + * PASSED = 1; + */ + PASSED(1), + /** + *
+     * The session had an explicit failure.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + /** + *
+     * The session is incomplete. This is a failure response.
+     * 
+ * + * INCOMPLETE = 3; + */ + INCOMPLETE(3), + UNRECOGNIZED(-1), + ; + + /** + * RESULT_UNSPECIFIED = 0; + */ + public static final int RESULT_UNSPECIFIED_VALUE = 0; + /** + *
+     * The session is complete, and everything passed.
+     * 
+ * + * PASSED = 1; + */ + public static final int PASSED_VALUE = 1; + /** + *
+     * The session had an explicit failure.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + /** + *
+     * The session is incomplete. This is a failure response.
+     * 
+ * + * INCOMPLETE = 3; + */ + public static final int INCOMPLETE_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 Result 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 Result forNumber(int value) { + switch (value) { + case 0: return RESULT_UNSPECIFIED; + case 1: return PASSED; + case 2: return FAILED; + case 3: return INCOMPLETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Result> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Result findValueByNumber(int number) { + return Result.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.showcase.v1beta1.ReportSessionResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Result[] VALUES = values(); + + public static Result 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 Result(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.ReportSessionResponse.Result) + } + + public static final int RESULT_FIELD_NUMBER = 1; + private int result_; + /** + *
+   * The state of the report.
+   * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + *
+   * The state of the report.
+   * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return The result. + */ + @java.lang.Override public com.google.showcase.v1beta1.ReportSessionResponse.Result getResult() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.ReportSessionResponse.Result result = com.google.showcase.v1beta1.ReportSessionResponse.Result.valueOf(result_); + return result == null ? com.google.showcase.v1beta1.ReportSessionResponse.Result.UNRECOGNIZED : result; + } + + public static final int TEST_RUNS_FIELD_NUMBER = 2; + private java.util.List testRuns_; + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + @java.lang.Override + public java.util.List getTestRunsList() { + return testRuns_; + } + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + @java.lang.Override + public java.util.List + getTestRunsOrBuilderList() { + return testRuns_; + } + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + @java.lang.Override + public int getTestRunsCount() { + return testRuns_.size(); + } + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.TestRun getTestRuns(int index) { + return testRuns_.get(index); + } + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( + int index) { + return testRuns_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != com.google.showcase.v1beta1.ReportSessionResponse.Result.RESULT_UNSPECIFIED.getNumber()) { + output.writeEnum(1, result_); + } + for (int i = 0; i < testRuns_.size(); i++) { + output.writeMessage(2, testRuns_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != com.google.showcase.v1beta1.ReportSessionResponse.Result.RESULT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, result_); + } + for (int i = 0; i < testRuns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, testRuns_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ReportSessionResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ReportSessionResponse other = (com.google.showcase.v1beta1.ReportSessionResponse) obj; + + if (result_ != other.result_) return false; + if (!getTestRunsList() + .equals(other.getTestRunsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + if (getTestRunsCount() > 0) { + hash = (37 * hash) + TEST_RUNS_FIELD_NUMBER; + hash = (53 * hash) + getTestRunsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ReportSessionResponse 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.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ReportSessionResponse 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.showcase.v1beta1.ReportSessionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for reporting on a session.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.ReportSessionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ReportSessionResponse) + com.google.showcase.v1beta1.ReportSessionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ReportSessionResponse.class, com.google.showcase.v1beta1.ReportSessionResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ReportSessionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTestRunsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + result_ = 0; + + if (testRunsBuilder_ == null) { + testRuns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + testRunsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ReportSessionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionResponse build() { + com.google.showcase.v1beta1.ReportSessionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionResponse buildPartial() { + com.google.showcase.v1beta1.ReportSessionResponse result = new com.google.showcase.v1beta1.ReportSessionResponse(this); + int from_bitField0_ = bitField0_; + result.result_ = result_; + if (testRunsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + testRuns_ = java.util.Collections.unmodifiableList(testRuns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.testRuns_ = testRuns_; + } else { + result.testRuns_ = testRunsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.ReportSessionResponse) { + return mergeFrom((com.google.showcase.v1beta1.ReportSessionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ReportSessionResponse other) { + if (other == com.google.showcase.v1beta1.ReportSessionResponse.getDefaultInstance()) return this; + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (testRunsBuilder_ == null) { + if (!other.testRuns_.isEmpty()) { + if (testRuns_.isEmpty()) { + testRuns_ = other.testRuns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestRunsIsMutable(); + testRuns_.addAll(other.testRuns_); + } + onChanged(); + } + } else { + if (!other.testRuns_.isEmpty()) { + if (testRunsBuilder_.isEmpty()) { + testRunsBuilder_.dispose(); + testRunsBuilder_ = null; + testRuns_ = other.testRuns_; + bitField0_ = (bitField0_ & ~0x00000001); + testRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTestRunsFieldBuilder() : null; + } else { + testRunsBuilder_.addAllMessages(other.testRuns_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.ReportSessionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.ReportSessionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int result_ = 0; + /** + *
+     * The state of the report.
+     * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + *
+     * The state of the report.
+     * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + + result_ = value; + onChanged(); + return this; + } + /** + *
+     * The state of the report.
+     * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return The result. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionResponse.Result getResult() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.ReportSessionResponse.Result result = com.google.showcase.v1beta1.ReportSessionResponse.Result.valueOf(result_); + return result == null ? com.google.showcase.v1beta1.ReportSessionResponse.Result.UNRECOGNIZED : result; + } + /** + *
+     * The state of the report.
+     * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult(com.google.showcase.v1beta1.ReportSessionResponse.Result value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The state of the report.
+     * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return This builder for chaining. + */ + public Builder clearResult() { + + result_ = 0; + onChanged(); + return this; + } + + private java.util.List testRuns_ = + java.util.Collections.emptyList(); + private void ensureTestRunsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + testRuns_ = new java.util.ArrayList(testRuns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.TestRun, com.google.showcase.v1beta1.TestRun.Builder, com.google.showcase.v1beta1.TestRunOrBuilder> testRunsBuilder_; + + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public java.util.List getTestRunsList() { + if (testRunsBuilder_ == null) { + return java.util.Collections.unmodifiableList(testRuns_); + } else { + return testRunsBuilder_.getMessageList(); + } + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public int getTestRunsCount() { + if (testRunsBuilder_ == null) { + return testRuns_.size(); + } else { + return testRunsBuilder_.getCount(); + } + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public com.google.showcase.v1beta1.TestRun getTestRuns(int index) { + if (testRunsBuilder_ == null) { + return testRuns_.get(index); + } else { + return testRunsBuilder_.getMessage(index); + } + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder setTestRuns( + int index, com.google.showcase.v1beta1.TestRun value) { + if (testRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestRunsIsMutable(); + testRuns_.set(index, value); + onChanged(); + } else { + testRunsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder setTestRuns( + int index, com.google.showcase.v1beta1.TestRun.Builder builderForValue) { + if (testRunsBuilder_ == null) { + ensureTestRunsIsMutable(); + testRuns_.set(index, builderForValue.build()); + onChanged(); + } else { + testRunsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder addTestRuns(com.google.showcase.v1beta1.TestRun value) { + if (testRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestRunsIsMutable(); + testRuns_.add(value); + onChanged(); + } else { + testRunsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder addTestRuns( + int index, com.google.showcase.v1beta1.TestRun value) { + if (testRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestRunsIsMutable(); + testRuns_.add(index, value); + onChanged(); + } else { + testRunsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder addTestRuns( + com.google.showcase.v1beta1.TestRun.Builder builderForValue) { + if (testRunsBuilder_ == null) { + ensureTestRunsIsMutable(); + testRuns_.add(builderForValue.build()); + onChanged(); + } else { + testRunsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder addTestRuns( + int index, com.google.showcase.v1beta1.TestRun.Builder builderForValue) { + if (testRunsBuilder_ == null) { + ensureTestRunsIsMutable(); + testRuns_.add(index, builderForValue.build()); + onChanged(); + } else { + testRunsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder addAllTestRuns( + java.lang.Iterable values) { + if (testRunsBuilder_ == null) { + ensureTestRunsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, testRuns_); + onChanged(); + } else { + testRunsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder clearTestRuns() { + if (testRunsBuilder_ == null) { + testRuns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + testRunsBuilder_.clear(); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public Builder removeTestRuns(int index) { + if (testRunsBuilder_ == null) { + ensureTestRunsIsMutable(); + testRuns_.remove(index); + onChanged(); + } else { + testRunsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public com.google.showcase.v1beta1.TestRun.Builder getTestRunsBuilder( + int index) { + return getTestRunsFieldBuilder().getBuilder(index); + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( + int index) { + if (testRunsBuilder_ == null) { + return testRuns_.get(index); } else { + return testRunsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public java.util.List + getTestRunsOrBuilderList() { + if (testRunsBuilder_ != null) { + return testRunsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(testRuns_); + } + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public com.google.showcase.v1beta1.TestRun.Builder addTestRunsBuilder() { + return getTestRunsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.TestRun.getDefaultInstance()); + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public com.google.showcase.v1beta1.TestRun.Builder addTestRunsBuilder( + int index) { + return getTestRunsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.TestRun.getDefaultInstance()); + } + /** + *
+     * The test runs of this session.
+     * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + public java.util.List + getTestRunsBuilderList() { + return getTestRunsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.TestRun, com.google.showcase.v1beta1.TestRun.Builder, com.google.showcase.v1beta1.TestRunOrBuilder> + getTestRunsFieldBuilder() { + if (testRunsBuilder_ == null) { + testRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.TestRun, com.google.showcase.v1beta1.TestRun.Builder, com.google.showcase.v1beta1.TestRunOrBuilder>( + testRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + testRuns_ = null; + } + return testRunsBuilder_; + } + @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.showcase.v1beta1.ReportSessionResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ReportSessionResponse) + private static final com.google.showcase.v1beta1.ReportSessionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ReportSessionResponse(); + } + + public static com.google.showcase.v1beta1.ReportSessionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportSessionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReportSessionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java new file mode 100644 index 0000000000..1b13563414 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface ReportSessionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ReportSessionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The state of the report.
+   * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); + /** + *
+   * The state of the report.
+   * 
+ * + * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * @return The result. + */ + com.google.showcase.v1beta1.ReportSessionResponse.Result getResult(); + + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + java.util.List + getTestRunsList(); + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + com.google.showcase.v1beta1.TestRun getTestRuns(int index); + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + int getTestRunsCount(); + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + java.util.List + getTestRunsOrBuilderList(); + /** + *
+   * The test runs of this session.
+   * 
+ * + * repeated .google.showcase.v1beta1.TestRun test_runs = 2; + */ + com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java new file mode 100644 index 0000000000..d03db19025 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java @@ -0,0 +1,1399 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * A chat room.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Room} + */ +public final class Room extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Room) + RoomOrBuilder { +private static final long serialVersionUID = 0L; + // Use Room.newBuilder() to construct. + private Room(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Room() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Room(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Room( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Room.class, com.google.showcase.v1beta1.Room.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *
+   * The human readable name of the chat room.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + } + /** + *
+   * The human readable name of the chat room.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+   * The description of the chat room.
+   * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+   * The description of the chat room.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * The timestamp at which the room was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * The timestamp at which the room was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * The timestamp at which the room was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * The latest timestamp at which the room was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * The latest timestamp at which the room was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * The latest timestamp at which the room was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Room)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Room other = (com.google.showcase.v1beta1.Room) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Room parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Room parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Room parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Room parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Room parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Room parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Room parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Room 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.showcase.v1beta1.Room parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Room parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Room parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Room 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.showcase.v1beta1.Room 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 chat room.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Room} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Room) + com.google.showcase.v1beta1.RoomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Room.class, com.google.showcase.v1beta1.Room.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Room.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + description_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Room getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Room.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Room build() { + com.google.showcase.v1beta1.Room result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Room buildPartial() { + com.google.showcase.v1beta1.Room result = new com.google.showcase.v1beta1.Room(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Room) { + return mergeFrom((com.google.showcase.v1beta1.Room)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Room other) { + if (other == com.google.showcase.v1beta1.Room.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Room parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Room) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the chat room.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * The human readable name of the chat room.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + } + /** + *
+     * The human readable name of the chat room.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + } + /** + *
+     * The human readable name of the chat room.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + onChanged(); + return this; + } + /** + *
+     * The human readable name of the chat room.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+     * The human readable name of the chat room.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * The description of the chat room.
+     * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The description of the chat room.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The description of the chat room.
+     * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * The description of the chat room.
+     * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * The description of the chat room.
+     * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * The timestamp at which the room was created.
+     * 
+ * + * .google.protobuf.Timestamp create_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> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * The latest timestamp at which the room was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @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.showcase.v1beta1.Room) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Room) + private static final com.google.showcase.v1beta1.Room DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Room(); + } + + public static com.google.showcase.v1beta1.Room getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Room parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Room(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Room getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java new file mode 100644 index 0000000000..b7ebbbad5d --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 RoomName implements ResourceName { + private static final PathTemplate ROOM = PathTemplate.createWithoutUrlEncoding("rooms/{room}"); + private volatile Map fieldValuesMap; + private final String room; + + @Deprecated + protected RoomName() { + room = null; + } + + private RoomName(Builder builder) { + room = Preconditions.checkNotNull(builder.getRoom()); + } + + public String getRoom() { + return room; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RoomName of(String room) { + return newBuilder().setRoom(room).build(); + } + + public static String format(String room) { + return newBuilder().setRoom(room).build().toString(); + } + + public static RoomName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + ROOM.validatedMatch(formattedString, "RoomName.parse: formattedString not in valid format"); + return of(matchMap.get("room")); + } + + 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 (RoomName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ROOM.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (room != null) { + fieldMapBuilder.put("room", room); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return ROOM.instantiate("room", room); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + RoomName that = ((RoomName) o); + return Objects.equals(this.room, that.room); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(room); + return h; + } + + /** Builder for rooms/{room}. */ + public static class Builder { + private String room; + + protected Builder() {} + + public String getRoom() { + return room; + } + + public Builder setRoom(String room) { + this.room = room; + return this; + } + + private Builder(RoomName roomName) { + this.room = roomName.room; + } + + public RoomName build() { + return new RoomName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java new file mode 100644 index 0000000000..28cefbcd18 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface RoomOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Room) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the chat room.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The human readable name of the chat room.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * The human readable name of the chat room.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * The description of the chat room.
+   * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * The description of the chat room.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * The timestamp at which the room was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * The timestamp at which the room was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * The timestamp at which the room was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * The latest timestamp at which the room was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * The latest timestamp at which the room was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * The latest timestamp at which the room was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java new file mode 100644 index 0000000000..cb91d593a7 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java @@ -0,0 +1,667 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The operation metadata message for the
+ * google.showcase.v1beta1.Messaging\SearchBlurbs method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsMetadata} + */ +public final class SearchBlurbsMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SearchBlurbsMetadata) + SearchBlurbsMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchBlurbsMetadata.newBuilder() to construct. + private SearchBlurbsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchBlurbsMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchBlurbsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SearchBlurbsMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.rpc.RetryInfo.Builder subBuilder = null; + if (retryInfo_ != null) { + subBuilder = retryInfo_.toBuilder(); + } + retryInfo_ = input.readMessage(com.google.rpc.RetryInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryInfo_); + retryInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SearchBlurbsMetadata.class, com.google.showcase.v1beta1.SearchBlurbsMetadata.Builder.class); + } + + public static final int RETRY_INFO_FIELD_NUMBER = 1; + private com.google.rpc.RetryInfo retryInfo_; + /** + *
+   * This signals to the client when to next poll for response.
+   * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + * @return Whether the retryInfo field is set. + */ + @java.lang.Override + public boolean hasRetryInfo() { + return retryInfo_ != null; + } + /** + *
+   * This signals to the client when to next poll for response.
+   * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + * @return The retryInfo. + */ + @java.lang.Override + public com.google.rpc.RetryInfo getRetryInfo() { + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } + /** + *
+   * This signals to the client when to next poll for response.
+   * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + @java.lang.Override + public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { + return getRetryInfo(); + } + + 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 (retryInfo_ != null) { + output.writeMessage(1, getRetryInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retryInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRetryInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.SearchBlurbsMetadata)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.SearchBlurbsMetadata other = (com.google.showcase.v1beta1.SearchBlurbsMetadata) obj; + + if (hasRetryInfo() != other.hasRetryInfo()) return false; + if (hasRetryInfo()) { + if (!getRetryInfo() + .equals(other.getRetryInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRetryInfo()) { + hash = (37 * hash) + RETRY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getRetryInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata 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.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata 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.showcase.v1beta1.SearchBlurbsMetadata 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 operation metadata message for the
+   * google.showcase.v1beta1.Messaging\SearchBlurbs method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SearchBlurbsMetadata) + com.google.showcase.v1beta1.SearchBlurbsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SearchBlurbsMetadata.class, com.google.showcase.v1beta1.SearchBlurbsMetadata.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.SearchBlurbsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (retryInfoBuilder_ == null) { + retryInfo_ = null; + } else { + retryInfo_ = null; + retryInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsMetadata getDefaultInstanceForType() { + return com.google.showcase.v1beta1.SearchBlurbsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsMetadata build() { + com.google.showcase.v1beta1.SearchBlurbsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsMetadata buildPartial() { + com.google.showcase.v1beta1.SearchBlurbsMetadata result = new com.google.showcase.v1beta1.SearchBlurbsMetadata(this); + if (retryInfoBuilder_ == null) { + result.retryInfo_ = retryInfo_; + } else { + result.retryInfo_ = retryInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.SearchBlurbsMetadata) { + return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsMetadata other) { + if (other == com.google.showcase.v1beta1.SearchBlurbsMetadata.getDefaultInstance()) return this; + if (other.hasRetryInfo()) { + mergeRetryInfo(other.getRetryInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.SearchBlurbsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.SearchBlurbsMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.rpc.RetryInfo retryInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.RetryInfo, com.google.rpc.RetryInfo.Builder, com.google.rpc.RetryInfoOrBuilder> retryInfoBuilder_; + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + * @return Whether the retryInfo field is set. + */ + public boolean hasRetryInfo() { + return retryInfoBuilder_ != null || retryInfo_ != null; + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + * @return The retryInfo. + */ + public com.google.rpc.RetryInfo getRetryInfo() { + if (retryInfoBuilder_ == null) { + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } else { + return retryInfoBuilder_.getMessage(); + } + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + public Builder setRetryInfo(com.google.rpc.RetryInfo value) { + if (retryInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryInfo_ = value; + onChanged(); + } else { + retryInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + public Builder setRetryInfo( + com.google.rpc.RetryInfo.Builder builderForValue) { + if (retryInfoBuilder_ == null) { + retryInfo_ = builderForValue.build(); + onChanged(); + } else { + retryInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + public Builder mergeRetryInfo(com.google.rpc.RetryInfo value) { + if (retryInfoBuilder_ == null) { + if (retryInfo_ != null) { + retryInfo_ = + com.google.rpc.RetryInfo.newBuilder(retryInfo_).mergeFrom(value).buildPartial(); + } else { + retryInfo_ = value; + } + onChanged(); + } else { + retryInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + public Builder clearRetryInfo() { + if (retryInfoBuilder_ == null) { + retryInfo_ = null; + onChanged(); + } else { + retryInfo_ = null; + retryInfoBuilder_ = null; + } + + return this; + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + public com.google.rpc.RetryInfo.Builder getRetryInfoBuilder() { + + onChanged(); + return getRetryInfoFieldBuilder().getBuilder(); + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { + if (retryInfoBuilder_ != null) { + return retryInfoBuilder_.getMessageOrBuilder(); + } else { + return retryInfo_ == null ? + com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + } + } + /** + *
+     * This signals to the client when to next poll for response.
+     * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.RetryInfo, com.google.rpc.RetryInfo.Builder, com.google.rpc.RetryInfoOrBuilder> + getRetryInfoFieldBuilder() { + if (retryInfoBuilder_ == null) { + retryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.RetryInfo, com.google.rpc.RetryInfo.Builder, com.google.rpc.RetryInfoOrBuilder>( + getRetryInfo(), + getParentForChildren(), + isClean()); + retryInfo_ = null; + } + return retryInfoBuilder_; + } + @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.showcase.v1beta1.SearchBlurbsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SearchBlurbsMetadata) + private static final com.google.showcase.v1beta1.SearchBlurbsMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SearchBlurbsMetadata(); + } + + public static com.google.showcase.v1beta1.SearchBlurbsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlurbsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchBlurbsMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java new file mode 100644 index 0000000000..d8bfeb513d --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface SearchBlurbsMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SearchBlurbsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This signals to the client when to next poll for response.
+   * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + * @return Whether the retryInfo field is set. + */ + boolean hasRetryInfo(); + /** + *
+   * This signals to the client when to next poll for response.
+   * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + * @return The retryInfo. + */ + com.google.rpc.RetryInfo getRetryInfo(); + /** + *
+   * This signals to the client when to next poll for response.
+   * 
+ * + * .google.rpc.RetryInfo retry_info = 1; + */ + com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java new file mode 100644 index 0000000000..dffbdbea44 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java @@ -0,0 +1,1052 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\SearchBlurbs
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsRequest} + */ +public final class SearchBlurbsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SearchBlurbsRequest) + SearchBlurbsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchBlurbsRequest.newBuilder() to construct. + private SearchBlurbsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchBlurbsRequest() { + query_ = ""; + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchBlurbsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SearchBlurbsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SearchBlurbsRequest.class, com.google.showcase.v1beta1.SearchBlurbsRequest.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + *
+   * The query used to search for blurbs containing to words of this string.
+   * Only posts that contain an exact match of a queried word will be returned.
+   * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + *
+   * The query used to search for blurbs containing to words of this string.
+   * Only posts that contain an exact match of a queried word will be returned.
+   * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + *
+   * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+   * rooms and all profiles.
+   * 
+ * + * string parent = 2 [(.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; + } + } + /** + *
+   * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+   * rooms and all profiles.
+   * 
+ * + * string parent = 2 [(.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 = 3; + private int pageSize_; + /** + *
+   * The maximum number of blurbs return. Server may return fewer
+   * blurbs than requested. If unspecified, server will pick an appropriate
+   * default.
+   * 
+ * + * int32 page_size = 3; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value of
+   * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+   * 
+ * + * string page_token = 4; + * @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; + } + } + /** + *
+   * The value of
+   * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+   * 
+ * + * string page_token = 4; + * @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(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + 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.showcase.v1beta1.SearchBlurbsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.SearchBlurbsRequest other = (com.google.showcase.v1beta1.SearchBlurbsRequest) obj; + + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest 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.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsRequest 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.showcase.v1beta1.SearchBlurbsRequest 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 request message for the google.showcase.v1beta1.Messaging\SearchBlurbs
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SearchBlurbsRequest) + com.google.showcase.v1beta1.SearchBlurbsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SearchBlurbsRequest.class, com.google.showcase.v1beta1.SearchBlurbsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.SearchBlurbsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsRequest build() { + com.google.showcase.v1beta1.SearchBlurbsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsRequest buildPartial() { + com.google.showcase.v1beta1.SearchBlurbsRequest result = new com.google.showcase.v1beta1.SearchBlurbsRequest(this); + result.query_ = query_; + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.SearchBlurbsRequest) { + return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsRequest other) { + if (other == com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.SearchBlurbsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.SearchBlurbsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object query_ = ""; + /** + *
+     * The query used to search for blurbs containing to words of this string.
+     * Only posts that contain an exact match of a queried word will be returned.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The query used to search for blurbs containing to words of this string.
+     * Only posts that contain an exact match of a queried word will be returned.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The query used to search for blurbs containing to words of this string.
+     * Only posts that contain an exact match of a queried word will be returned.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + *
+     * The query used to search for blurbs containing to words of this string.
+     * Only posts that contain an exact match of a queried word will be returned.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + *
+     * The query used to search for blurbs containing to words of this string.
+     * Only posts that contain an exact match of a queried word will be returned.
+     * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+     * rooms and all profiles.
+     * 
+ * + * string parent = 2 [(.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; + } + } + /** + *
+     * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+     * rooms and all profiles.
+     * 
+ * + * string parent = 2 [(.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; + } + } + /** + *
+     * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+     * rooms and all profiles.
+     * 
+ * + * string parent = 2 [(.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; + onChanged(); + return this; + } + /** + *
+     * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+     * rooms and all profiles.
+     * 
+ * + * string parent = 2 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+     * rooms and all profiles.
+     * 
+ * + * string parent = 2 [(.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; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of blurbs return. Server may return fewer
+     * blurbs than requested. If unspecified, server will pick an appropriate
+     * default.
+     * 
+ * + * int32 page_size = 3; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of blurbs return. Server may return fewer
+     * blurbs than requested. If unspecified, server will pick an appropriate
+     * default.
+     * 
+ * + * int32 page_size = 3; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of blurbs return. Server may return fewer
+     * blurbs than requested. If unspecified, server will pick an appropriate
+     * default.
+     * 
+ * + * int32 page_size = 3; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value of
+     * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+     * 
+ * + * string page_token = 4; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The value of
+     * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+     * 
+ * + * string page_token = 4; + * @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; + } + } + /** + *
+     * The value of
+     * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+     * 
+ * + * string page_token = 4; + * @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; + onChanged(); + return this; + } + /** + *
+     * The value of
+     * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+     * 
+ * + * string page_token = 4; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value of
+     * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+     * returned from the previous call to
+     * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+     * 
+ * + * string page_token = 4; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SearchBlurbsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SearchBlurbsRequest) + private static final com.google.showcase.v1beta1.SearchBlurbsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SearchBlurbsRequest(); + } + + public static com.google.showcase.v1beta1.SearchBlurbsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlurbsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchBlurbsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java new file mode 100644 index 0000000000..f3595e10a6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface SearchBlurbsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SearchBlurbsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The query used to search for blurbs containing to words of this string.
+   * Only posts that contain an exact match of a queried word will be returned.
+   * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + java.lang.String getQuery(); + /** + *
+   * The query used to search for blurbs containing to words of this string.
+   * Only posts that contain an exact match of a queried word will be returned.
+   * 
+ * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + *
+   * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+   * rooms and all profiles.
+   * 
+ * + * string parent = 2 [(.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
+   * rooms and all profiles.
+   * 
+ * + * string parent = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of blurbs return. Server may return fewer
+   * blurbs than requested. If unspecified, server will pick an appropriate
+   * default.
+   * 
+ * + * int32 page_size = 3; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The value of
+   * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+   * 
+ * + * string page_token = 4; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The value of
+   * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
+   * returned from the previous call to
+   * `google.showcase.v1beta1.Messaging\SearchBlurbs` method.
+   * 
+ * + * string page_token = 4; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java new file mode 100644 index 0000000000..92d87c30de --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java @@ -0,0 +1,1061 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The operation response message for the
+ * google.showcase.v1beta1.Messaging\SearchBlurbs method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsResponse} + */ +public final class SearchBlurbsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SearchBlurbsResponse) + SearchBlurbsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchBlurbsResponse.newBuilder() to construct. + private SearchBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchBlurbsResponse() { + blurbs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchBlurbsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SearchBlurbsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blurbs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blurbs_.add( + input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + blurbs_ = java.util.Collections.unmodifiableList(blurbs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SearchBlurbsResponse.class, com.google.showcase.v1beta1.SearchBlurbsResponse.Builder.class); + } + + public static final int BLURBS_FIELD_NUMBER = 1; + private java.util.List blurbs_; + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public java.util.List getBlurbsList() { + return blurbs_; + } + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public java.util.List + getBlurbsOrBuilderList() { + return blurbs_; + } + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public int getBlurbsCount() { + return blurbs_.size(); + } + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { + return blurbs_.get(index); + } + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( + int index) { + return blurbs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+   * retrieve the next page of results.
+   * 
+ * + * 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; + } + } + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+   * retrieve the next page of results.
+   * 
+ * + * 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 < blurbs_.size(); i++) { + output.writeMessage(1, blurbs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blurbs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blurbs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.SearchBlurbsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.SearchBlurbsResponse other = (com.google.showcase.v1beta1.SearchBlurbsResponse) obj; + + if (!getBlurbsList() + .equals(other.getBlurbsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlurbsCount() > 0) { + hash = (37 * hash) + BLURBS_FIELD_NUMBER; + hash = (53 * hash) + getBlurbsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse 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.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SearchBlurbsResponse 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.showcase.v1beta1.SearchBlurbsResponse 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 operation response message for the
+   * google.showcase.v1beta1.Messaging\SearchBlurbs method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SearchBlurbsResponse) + com.google.showcase.v1beta1.SearchBlurbsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SearchBlurbsResponse.class, com.google.showcase.v1beta1.SearchBlurbsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.SearchBlurbsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlurbsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (blurbsBuilder_ == null) { + blurbs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blurbsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.SearchBlurbsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsResponse build() { + com.google.showcase.v1beta1.SearchBlurbsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsResponse buildPartial() { + com.google.showcase.v1beta1.SearchBlurbsResponse result = new com.google.showcase.v1beta1.SearchBlurbsResponse(this); + int from_bitField0_ = bitField0_; + if (blurbsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blurbs_ = java.util.Collections.unmodifiableList(blurbs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blurbs_ = blurbs_; + } else { + result.blurbs_ = blurbsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.SearchBlurbsResponse) { + return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsResponse other) { + if (other == com.google.showcase.v1beta1.SearchBlurbsResponse.getDefaultInstance()) return this; + if (blurbsBuilder_ == null) { + if (!other.blurbs_.isEmpty()) { + if (blurbs_.isEmpty()) { + blurbs_ = other.blurbs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlurbsIsMutable(); + blurbs_.addAll(other.blurbs_); + } + onChanged(); + } + } else { + if (!other.blurbs_.isEmpty()) { + if (blurbsBuilder_.isEmpty()) { + blurbsBuilder_.dispose(); + blurbsBuilder_ = null; + blurbs_ = other.blurbs_; + bitField0_ = (bitField0_ & ~0x00000001); + blurbsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlurbsFieldBuilder() : null; + } else { + blurbsBuilder_.addAllMessages(other.blurbs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.SearchBlurbsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.SearchBlurbsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blurbs_ = + java.util.Collections.emptyList(); + private void ensureBlurbsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blurbs_ = new java.util.ArrayList(blurbs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbsBuilder_; + + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public java.util.List getBlurbsList() { + if (blurbsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blurbs_); + } else { + return blurbsBuilder_.getMessageList(); + } + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public int getBlurbsCount() { + if (blurbsBuilder_ == null) { + return blurbs_.size(); + } else { + return blurbsBuilder_.getCount(); + } + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { + if (blurbsBuilder_ == null) { + return blurbs_.get(index); + } else { + return blurbsBuilder_.getMessage(index); + } + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder setBlurbs( + int index, com.google.showcase.v1beta1.Blurb value) { + if (blurbsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlurbsIsMutable(); + blurbs_.set(index, value); + onChanged(); + } else { + blurbsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder setBlurbs( + int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.set(index, builderForValue.build()); + onChanged(); + } else { + blurbsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs(com.google.showcase.v1beta1.Blurb value) { + if (blurbsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlurbsIsMutable(); + blurbs_.add(value); + onChanged(); + } else { + blurbsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs( + int index, com.google.showcase.v1beta1.Blurb value) { + if (blurbsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlurbsIsMutable(); + blurbs_.add(index, value); + onChanged(); + } else { + blurbsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs( + com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.add(builderForValue.build()); + onChanged(); + } else { + blurbsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addBlurbs( + int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.add(index, builderForValue.build()); + onChanged(); + } else { + blurbsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder addAllBlurbs( + java.lang.Iterable values) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blurbs_); + onChanged(); + } else { + blurbsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder clearBlurbs() { + if (blurbsBuilder_ == null) { + blurbs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blurbsBuilder_.clear(); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public Builder removeBlurbs(int index) { + if (blurbsBuilder_ == null) { + ensureBlurbsIsMutable(); + blurbs_.remove(index); + onChanged(); + } else { + blurbsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder getBlurbsBuilder( + int index) { + return getBlurbsFieldBuilder().getBuilder(index); + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( + int index) { + if (blurbsBuilder_ == null) { + return blurbs_.get(index); } else { + return blurbsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public java.util.List + getBlurbsOrBuilderList() { + if (blurbsBuilder_ != null) { + return blurbsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blurbs_); + } + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder() { + return getBlurbsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder( + int index) { + return getBlurbsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + } + /** + *
+     * Blurbs that matched the search query.
+     * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + public java.util.List + getBlurbsBuilderList() { + return getBlurbsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + getBlurbsFieldBuilder() { + if (blurbsBuilder_ == null) { + blurbsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( + blurbs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + blurbs_ = null; + } + return blurbsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+     * retrieve the next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+     * retrieve the next page of results.
+     * 
+ * + * 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; + } + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+     * retrieve the next page of results.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+     * retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * A token to retrieve next page of results.
+     * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+     * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+     * retrieve the next page of results.
+     * 
+ * + * 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; + 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.showcase.v1beta1.SearchBlurbsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SearchBlurbsResponse) + private static final com.google.showcase.v1beta1.SearchBlurbsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SearchBlurbsResponse(); + } + + public static com.google.showcase.v1beta1.SearchBlurbsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchBlurbsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SearchBlurbsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java new file mode 100644 index 0000000000..a7c08ee712 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface SearchBlurbsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SearchBlurbsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + java.util.List + getBlurbsList(); + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + com.google.showcase.v1beta1.Blurb getBlurbs(int index); + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + int getBlurbsCount(); + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + java.util.List + getBlurbsOrBuilderList(); + /** + *
+   * Blurbs that matched the search query.
+   * 
+ * + * repeated .google.showcase.v1beta1.Blurb blurbs = 1; + */ + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( + int index); + + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+   * retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token to retrieve next page of results.
+   * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
+   * call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to
+   * retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java new file mode 100644 index 0000000000..d00a32be06 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java @@ -0,0 +1,678 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the google.showcase.v1beta1.Messaging\SendBlurbs
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SendBlurbsResponse} + */ +public final class SendBlurbsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SendBlurbsResponse) + SendBlurbsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SendBlurbsResponse.newBuilder() to construct. + private SendBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SendBlurbsResponse() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SendBlurbsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SendBlurbsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + names_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + names_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + names_ = names_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SendBlurbsResponse.class, com.google.showcase.v1beta1.SendBlurbsResponse.Builder.class); + } + + public static final int NAMES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList names_; + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList + getNamesList() { + return names_; + } + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString + getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.SendBlurbsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.SendBlurbsResponse other = (com.google.showcase.v1beta1.SendBlurbsResponse) obj; + + if (!getNamesList() + .equals(other.getNamesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse 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.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SendBlurbsResponse 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.showcase.v1beta1.SendBlurbsResponse 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 response message for the google.showcase.v1beta1.Messaging\SendBlurbs
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SendBlurbsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SendBlurbsResponse) + com.google.showcase.v1beta1.SendBlurbsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SendBlurbsResponse.class, com.google.showcase.v1beta1.SendBlurbsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.SendBlurbsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SendBlurbsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.SendBlurbsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.SendBlurbsResponse build() { + com.google.showcase.v1beta1.SendBlurbsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SendBlurbsResponse buildPartial() { + com.google.showcase.v1beta1.SendBlurbsResponse result = new com.google.showcase.v1beta1.SendBlurbsResponse(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + names_ = names_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.names_ = names_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.SendBlurbsResponse) { + return mergeFrom((com.google.showcase.v1beta1.SendBlurbsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.SendBlurbsResponse other) { + if (other == com.google.showcase.v1beta1.SendBlurbsResponse.getDefaultInstance()) return this; + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.SendBlurbsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.SendBlurbsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList + getNamesList() { + return names_.getUnmodifiableView(); + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString + getNamesBytes(int index) { + return names_.getByteString(index); + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + onChanged(); + return this; + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames( + java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, names_); + onChanged(); + return this; + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The names of successful blurb creations.
+     * 
+ * + * repeated string names = 1; + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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.showcase.v1beta1.SendBlurbsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SendBlurbsResponse) + private static final com.google.showcase.v1beta1.SendBlurbsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SendBlurbsResponse(); + } + + public static com.google.showcase.v1beta1.SendBlurbsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendBlurbsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SendBlurbsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java new file mode 100644 index 0000000000..3de7bfaad7 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface SendBlurbsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SendBlurbsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @return A list containing the names. + */ + java.util.List + getNamesList(); + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @return The count of names. + */ + int getNamesCount(); + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + /** + *
+   * The names of successful blurb creations.
+   * 
+ * + * repeated string names = 1; + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString + getNamesBytes(int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java new file mode 100644 index 0000000000..d90689e15a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java @@ -0,0 +1,1979 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.Sequence} + */ +public final class Sequence extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Sequence) + SequenceOrBuilder { +private static final long serialVersionUID = 0L; + // Use Sequence.newBuilder() to construct. + private Sequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Sequence() { + name_ = ""; + responses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Sequence(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sequence( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage(com.google.showcase.v1beta1.Sequence.Response.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Sequence.class, com.google.showcase.v1beta1.Sequence.Builder.class); + } + + public interface ResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Sequence.Response) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return Whether the delay field is set. + */ + boolean hasDelay(); + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return The delay. + */ + com.google.protobuf.Duration getDelay(); + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + */ + com.google.protobuf.DurationOrBuilder getDelayOrBuilder(); + } + /** + *
+   * A server response to an RPC Attempt in a sequence.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Sequence.Response} + */ + public static final class Response extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Sequence.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Response() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Response(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Response( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (delay_ != null) { + subBuilder = delay_.toBuilder(); + } + delay_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(delay_); + delay_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Sequence.Response.class, com.google.showcase.v1beta1.Sequence.Response.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private com.google.rpc.Status status_; + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + *
+     * The status to return for an individual attempt.
+     * 
+ * + * .google.rpc.Status status = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + public static final int DELAY_FIELD_NUMBER = 2; + private com.google.protobuf.Duration delay_; + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return Whether the delay field is set. + */ + @java.lang.Override + public boolean hasDelay() { + return delay_ != null; + } + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + * @return The delay. + */ + @java.lang.Override + public com.google.protobuf.Duration getDelay() { + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; + } + /** + *
+     * The amount of time to delay sending the response.
+     * 
+ * + * .google.protobuf.Duration delay = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { + return getDelay(); + } + + 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 (status_ != null) { + output.writeMessage(1, getStatus()); + } + if (delay_ != null) { + output.writeMessage(2, getDelay()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (delay_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDelay()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Sequence.Response)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Sequence.Response other = (com.google.showcase.v1beta1.Sequence.Response) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasDelay() != other.hasDelay()) return false; + if (hasDelay()) { + if (!getDelay() + .equals(other.getDelay())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasDelay()) { + hash = (37 * hash) + DELAY_FIELD_NUMBER; + hash = (53 * hash) + getDelay().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Sequence.Response 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.showcase.v1beta1.Sequence.Response parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Sequence.Response parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Sequence.Response 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.showcase.v1beta1.Sequence.Response 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 server response to an RPC Attempt in a sequence.
+     * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Sequence.Response} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Sequence.Response) + com.google.showcase.v1beta1.Sequence.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Sequence.Response.class, com.google.showcase.v1beta1.Sequence.Response.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Sequence.Response.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + if (delayBuilder_ == null) { + delay_ = null; + } else { + delay_ = null; + delayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence.Response getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence.Response build() { + com.google.showcase.v1beta1.Sequence.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence.Response buildPartial() { + com.google.showcase.v1beta1.Sequence.Response result = new com.google.showcase.v1beta1.Sequence.Response(this); + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + if (delayBuilder_ == null) { + result.delay_ = delay_; + } else { + result.delay_ = delayBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Sequence.Response) { + return mergeFrom((com.google.showcase.v1beta1.Sequence.Response)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Sequence.Response other) { + if (other == com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasDelay()) { + mergeDelay(other.getDelay()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Sequence.Response parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Sequence.Response) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + *
+       * The status to return for an individual attempt.
+       * 
+ * + * .google.rpc.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.Duration delay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_; + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + * @return Whether the delay field is set. + */ + public boolean hasDelay() { + return delayBuilder_ != null || delay_ != null; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + * @return The delay. + */ + public com.google.protobuf.Duration getDelay() { + if (delayBuilder_ == null) { + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; + } else { + return delayBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder setDelay(com.google.protobuf.Duration value) { + if (delayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + delay_ = value; + onChanged(); + } else { + delayBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder setDelay( + com.google.protobuf.Duration.Builder builderForValue) { + if (delayBuilder_ == null) { + delay_ = builderForValue.build(); + onChanged(); + } else { + delayBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder mergeDelay(com.google.protobuf.Duration value) { + if (delayBuilder_ == null) { + if (delay_ != null) { + delay_ = + com.google.protobuf.Duration.newBuilder(delay_).mergeFrom(value).buildPartial(); + } else { + delay_ = value; + } + onChanged(); + } else { + delayBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public Builder clearDelay() { + if (delayBuilder_ == null) { + delay_ = null; + onChanged(); + } else { + delay_ = null; + delayBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public com.google.protobuf.Duration.Builder getDelayBuilder() { + + onChanged(); + return getDelayFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { + if (delayBuilder_ != null) { + return delayBuilder_.getMessageOrBuilder(); + } else { + return delay_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : delay_; + } + } + /** + *
+       * The amount of time to delay sending the response.
+       * 
+ * + * .google.protobuf.Duration delay = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDelayFieldBuilder() { + if (delayBuilder_ == null) { + delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDelay(), + getParentForChildren(), + isClean()); + delay_ = null; + } + return delayBuilder_; + } + @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.showcase.v1beta1.Sequence.Response) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Sequence.Response) + private static final com.google.showcase.v1beta1.Sequence.Response DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Sequence.Response(); + } + + public static com.google.showcase.v1beta1.Sequence.Response getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Response(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * 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; + } + } + /** + * 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 RESPONSES_FIELD_NUMBER = 2; + private java.util.List responses_; + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + @java.lang.Override + public java.util.List getResponsesList() { + return responses_; + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + @java.lang.Override + public java.util.List + getResponsesOrBuilderList() { + return responses_; + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + @java.lang.Override + public int getResponsesCount() { + return responses_.size(); + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Sequence.Response getResponses(int index) { + return responses_.get(index); + } + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder( + int index) { + return responses_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < responses_.size(); i++) { + output.writeMessage(2, responses_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < responses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, responses_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Sequence)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Sequence other = (com.google.showcase.v1beta1.Sequence) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getResponsesCount() > 0) { + hash = (37 * hash) + RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getResponsesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Sequence parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Sequence parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Sequence parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Sequence parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Sequence 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.showcase.v1beta1.Sequence parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Sequence parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Sequence parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Sequence 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.showcase.v1beta1.Sequence 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.Sequence} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Sequence) + com.google.showcase.v1beta1.SequenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Sequence.class, com.google.showcase.v1beta1.Sequence.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Sequence.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponsesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + responsesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Sequence.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence build() { + com.google.showcase.v1beta1.Sequence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence buildPartial() { + com.google.showcase.v1beta1.Sequence result = new com.google.showcase.v1beta1.Sequence(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (responsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responses_ = responses_; + } else { + result.responses_ = responsesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Sequence) { + return mergeFrom((com.google.showcase.v1beta1.Sequence)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Sequence other) { + if (other == com.google.showcase.v1beta1.Sequence.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (responsesBuilder_ == null) { + if (!other.responses_.isEmpty()) { + if (responses_.isEmpty()) { + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponsesIsMutable(); + responses_.addAll(other.responses_); + } + onChanged(); + } + } else { + if (!other.responses_.isEmpty()) { + if (responsesBuilder_.isEmpty()) { + responsesBuilder_.dispose(); + responsesBuilder_ = null; + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; + } else { + responsesBuilder_.addAllMessages(other.responses_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Sequence parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Sequence) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + onChanged(); + return this; + } + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * 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; + onChanged(); + return this; + } + + private java.util.List responses_ = + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(responses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Sequence.Response, com.google.showcase.v1beta1.Sequence.Response.Builder, com.google.showcase.v1beta1.Sequence.ResponseOrBuilder> responsesBuilder_; + + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public java.util.List getResponsesList() { + if (responsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responses_); + } else { + return responsesBuilder_.getMessageList(); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public int getResponsesCount() { + if (responsesBuilder_ == null) { + return responses_.size(); + } else { + return responsesBuilder_.getCount(); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public com.google.showcase.v1beta1.Sequence.Response getResponses(int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); + } else { + return responsesBuilder_.getMessage(index); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder setResponses( + int index, com.google.showcase.v1beta1.Sequence.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.set(index, value); + onChanged(); + } else { + responsesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder setResponses( + int index, com.google.showcase.v1beta1.Sequence.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.set(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder addResponses(com.google.showcase.v1beta1.Sequence.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(value); + onChanged(); + } else { + responsesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder addResponses( + int index, com.google.showcase.v1beta1.Sequence.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(index, value); + onChanged(); + } else { + responsesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder addResponses( + com.google.showcase.v1beta1.Sequence.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder addResponses( + int index, com.google.showcase.v1beta1.Sequence.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder addAllResponses( + java.lang.Iterable values) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); + onChanged(); + } else { + responsesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder clearResponses() { + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + responsesBuilder_.clear(); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public Builder removeResponses(int index) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.remove(index); + onChanged(); + } else { + responsesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public com.google.showcase.v1beta1.Sequence.Response.Builder getResponsesBuilder( + int index) { + return getResponsesFieldBuilder().getBuilder(index); + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder( + int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); } else { + return responsesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public java.util.List + getResponsesOrBuilderList() { + if (responsesBuilder_ != null) { + return responsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responses_); + } + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder() { + return getResponsesFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance()); + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder( + int index) { + return getResponsesFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance()); + } + /** + *
+     * Sequence of responses to return in order for each attempt. If empty, the
+     * default response is an immediate OK.
+     * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + public java.util.List + getResponsesBuilderList() { + return getResponsesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Sequence.Response, com.google.showcase.v1beta1.Sequence.Response.Builder, com.google.showcase.v1beta1.Sequence.ResponseOrBuilder> + getResponsesFieldBuilder() { + if (responsesBuilder_ == null) { + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Sequence.Response, com.google.showcase.v1beta1.Sequence.Response.Builder, com.google.showcase.v1beta1.Sequence.ResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + responses_ = null; + } + return responsesBuilder_; + } + @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.showcase.v1beta1.Sequence) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Sequence) + private static final com.google.showcase.v1beta1.Sequence DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Sequence(); + } + + public static com.google.showcase.v1beta1.Sequence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sequence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sequence(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Sequence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java new file mode 100644 index 0000000000..067bb15adb --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 SequenceName implements ResourceName { + private static final PathTemplate SEQUENCE = + PathTemplate.createWithoutUrlEncoding("sequences/{sequence}"); + private volatile Map fieldValuesMap; + private final String sequence; + + @Deprecated + protected SequenceName() { + sequence = null; + } + + private SequenceName(Builder builder) { + sequence = Preconditions.checkNotNull(builder.getSequence()); + } + + public String getSequence() { + return sequence; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SequenceName of(String sequence) { + return newBuilder().setSequence(sequence).build(); + } + + public static String format(String sequence) { + return newBuilder().setSequence(sequence).build().toString(); + } + + public static SequenceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SEQUENCE.validatedMatch( + formattedString, "SequenceName.parse: formattedString not in valid format"); + return of(matchMap.get("sequence")); + } + + 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 (SequenceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SEQUENCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (sequence != null) { + fieldMapBuilder.put("sequence", sequence); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SEQUENCE.instantiate("sequence", sequence); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SequenceName that = ((SequenceName) o); + return Objects.equals(this.sequence, that.sequence); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(sequence); + return h; + } + + /** Builder for sequences/{sequence}. */ + public static class Builder { + private String sequence; + + protected Builder() {} + + public String getSequence() { + return sequence; + } + + public Builder setSequence(String sequence) { + this.sequence = sequence; + return this; + } + + private Builder(SequenceName sequenceName) { + this.sequence = sequenceName.sequence; + } + + public SequenceName build() { + return new SequenceName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java new file mode 100644 index 0000000000..9aa5beab37 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface SequenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Sequence) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + java.util.List + getResponsesList(); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + com.google.showcase.v1beta1.Sequence.Response getResponses(int index); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + int getResponsesCount(); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + java.util.List + getResponsesOrBuilderList(); + /** + *
+   * Sequence of responses to return in order for each attempt. If empty, the
+   * default response is an immediate OK.
+   * 
+ * + * repeated .google.showcase.v1beta1.Sequence.Response responses = 2; + */ + com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java new file mode 100644 index 0000000000..d3c0d424eb --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java @@ -0,0 +1,184 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public final class SequenceOuterClass { + private SequenceOuterClass() {} + 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_showcase_v1beta1_Sequence_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SequenceReport_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetSequenceReportRequest_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-schema/google/showcase/v1beta1/sequenc" + + "e.proto\022\027google.showcase.v1beta1\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\036google/prot" + + "obuf/duration.proto\032\033google/protobuf/emp" + + "ty.proto\032\037google/protobuf/timestamp.prot" + + "o\032\027google/rpc/status.proto\"\363\001\n\010Sequence\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022=\n\tresponses\030\002 \003(\0132*." + + "google.showcase.v1beta1.Sequence.Respons" + + "e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r" + + "pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob" + + "uf.Duration:;\352A8\n showcase.googleapis.co" + + "m/Sequence\022\024sequences/{sequence}\"\233\003\n\016Seq" + + "uenceReport\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\010attemp" + + "ts\030\002 \003(\0132/.google.showcase.v1beta1.Seque" + + "nceReport.Attempt\032\340\001\n\007Attempt\022\026\n\016attempt" + + "_number\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\0221\n\rresponse_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\0220" + + "\n\rattempt_delay\030\004 \001(\0132\031.google.protobuf." + + "Duration\022\"\n\006status\030\005 \001(\0132\022.google.rpc.St" + + "atus:P\352AM\n&showcase.googleapis.com/Seque" + + "nceReport\022#sequences/{sequence}/sequence" + + "Report\"L\n\025CreateSequenceRequest\0223\n\010seque" + + "nce\030\001 \001(\0132!.google.showcase.v1beta1.Sequ" + + "ence\"P\n\026AttemptSequenceRequest\0226\n\004name\030\001" + + " \001(\tB(\372A\"\n showcase.googleapis.com/Seque" + + "nce\340A\002\"X\n\030GetSequenceReportRequest\022<\n\004na" + + "me\030\001 \001(\tB.\372A(\n&showcase.googleapis.com/S" + + "equenceReport\340A\0022\364\003\n\017SequenceService\022\224\001\n" + + "\016CreateSequence\022..google.showcase.v1beta" + + "1.CreateSequenceRequest\032!.google.showcas" + + "e.v1beta1.Sequence\"/\202\323\344\223\002\036\"\022/v1beta1/seq" + + "uences:\010sequence\332A\010sequence\022\252\001\n\021GetSeque" + + "nceReport\0221.google.showcase.v1beta1.GetS" + + "equenceReportRequest\032\'.google.showcase.v" + + "1beta1.SequenceReport\"9\202\323\344\223\002,\022*/v1beta1/" + + "{name=sequences/*/sequenceReport}\332A\004name" + + "\022\211\001\n\017AttemptSequence\022/.google.showcase.v" + + "1beta1.AttemptSequenceRequest\032\026.google.p" + + "rotobuf.Empty\"-\202\323\344\223\002 \"\033/v1beta1/{name=se" + + "quences/*}:\001*\332A\004name\032\021\312A\016localhost:7469B" + + "q\n\033com.google.showcase.v1beta1P\001Z4github" + + ".com/googleapis/gapic-showcase/server/ge" + + "nproto\352\002\031Google::Showcase::V1beta1b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_Sequence_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Sequence_descriptor, + new java.lang.String[] { "Name", "Responses", }); + internal_static_google_showcase_v1beta1_Sequence_Response_descriptor = + internal_static_google_showcase_v1beta1_Sequence_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Sequence_Response_descriptor, + new java.lang.String[] { "Status", "Delay", }); + internal_static_google_showcase_v1beta1_SequenceReport_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SequenceReport_descriptor, + new java.lang.String[] { "Name", "Attempts", }); + internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor = + internal_static_google_showcase_v1beta1_SequenceReport_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor, + new java.lang.String[] { "AttemptNumber", "AttemptDeadline", "ResponseTime", "AttemptDelay", "Status", }); + internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor, + new java.lang.String[] { "Sequence", }); + internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReport.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReport.java new file mode 100644 index 0000000000..768c155ea3 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReport.java @@ -0,0 +1,2602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.SequenceReport} + */ +public final class SequenceReport extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SequenceReport) + SequenceReportOrBuilder { +private static final long serialVersionUID = 0L; + // Use SequenceReport.newBuilder() to construct. + private SequenceReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SequenceReport() { + name_ = ""; + attempts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SequenceReport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SequenceReport( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attempts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + attempts_.add( + input.readMessage(com.google.showcase.v1beta1.SequenceReport.Attempt.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + attempts_ = java.util.Collections.unmodifiableList(attempts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SequenceReport.class, com.google.showcase.v1beta1.SequenceReport.Builder.class); + } + + public interface AttemptOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SequenceReport.Attempt) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The attempt number - starting at 0.
+     * 
+ * + * int32 attempt_number = 1; + * @return The attemptNumber. + */ + int getAttemptNumber(); + + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return Whether the attemptDeadline field is set. + */ + boolean hasAttemptDeadline(); + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return The attemptDeadline. + */ + com.google.protobuf.Timestamp getAttemptDeadline(); + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder(); + + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return Whether the responseTime field is set. + */ + boolean hasResponseTime(); + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return The responseTime. + */ + com.google.protobuf.Timestamp getResponseTime(); + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder(); + + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return Whether the attemptDelay field is set. + */ + boolean hasAttemptDelay(); + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return The attemptDelay. + */ + com.google.protobuf.Duration getAttemptDelay(); + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder(); + + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * Contains metrics on individual RPC Attempts in a sequence.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SequenceReport.Attempt} + */ + public static final class Attempt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SequenceReport.Attempt) + AttemptOrBuilder { + private static final long serialVersionUID = 0L; + // Use Attempt.newBuilder() to construct. + private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Attempt() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Attempt(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Attempt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + attemptNumber_ = input.readInt32(); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (attemptDeadline_ != null) { + subBuilder = attemptDeadline_.toBuilder(); + } + attemptDeadline_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attemptDeadline_); + attemptDeadline_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (responseTime_ != null) { + subBuilder = responseTime_.toBuilder(); + } + responseTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseTime_); + responseTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (attemptDelay_ != null) { + subBuilder = attemptDelay_.toBuilder(); + } + attemptDelay_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attemptDelay_); + attemptDelay_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SequenceReport.Attempt.class, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder.class); + } + + public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 1; + private int attemptNumber_; + /** + *
+     * The attempt number - starting at 0.
+     * 
+ * + * int32 attempt_number = 1; + * @return The attemptNumber. + */ + @java.lang.Override + public int getAttemptNumber() { + return attemptNumber_; + } + + public static final int ATTEMPT_DEADLINE_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp attemptDeadline_; + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return Whether the attemptDeadline field is set. + */ + @java.lang.Override + public boolean hasAttemptDeadline() { + return attemptDeadline_ != null; + } + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return The attemptDeadline. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAttemptDeadline() { + return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } + /** + *
+     * The deadline dictated by the attempt to the server.
+     * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { + return getAttemptDeadline(); + } + + public static final int RESPONSE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp responseTime_; + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return Whether the responseTime field is set. + */ + @java.lang.Override + public boolean hasResponseTime() { + return responseTime_ != null; + } + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return The responseTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getResponseTime() { + return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } + /** + *
+     * The time that the server responded to the RPC attempt. Used for
+     * calculating attempt_delay.
+     * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { + return getResponseTime(); + } + + public static final int ATTEMPT_DELAY_FIELD_NUMBER = 4; + private com.google.protobuf.Duration attemptDelay_; + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return Whether the attemptDelay field is set. + */ + @java.lang.Override + public boolean hasAttemptDelay() { + return attemptDelay_ != null; + } + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return The attemptDelay. + */ + @java.lang.Override + public com.google.protobuf.Duration getAttemptDelay() { + return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } + /** + *
+     * The server perceived delay between sending the last response and
+     * receiving this attempt. Used for validating attempt delay backoff.
+     * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() { + return getAttemptDelay(); + } + + public static final int STATUS_FIELD_NUMBER = 5; + private com.google.rpc.Status status_; + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + *
+     * The status returned to the attempt.
+     * 
+ * + * .google.rpc.Status status = 5; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + 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 (attemptNumber_ != 0) { + output.writeInt32(1, attemptNumber_); + } + if (attemptDeadline_ != null) { + output.writeMessage(2, getAttemptDeadline()); + } + if (responseTime_ != null) { + output.writeMessage(3, getResponseTime()); + } + if (attemptDelay_ != null) { + output.writeMessage(4, getAttemptDelay()); + } + if (status_ != null) { + output.writeMessage(5, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attemptNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, attemptNumber_); + } + if (attemptDeadline_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAttemptDeadline()); + } + if (responseTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResponseTime()); + } + if (attemptDelay_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAttemptDelay()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.SequenceReport.Attempt)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.SequenceReport.Attempt other = (com.google.showcase.v1beta1.SequenceReport.Attempt) obj; + + if (getAttemptNumber() + != other.getAttemptNumber()) return false; + if (hasAttemptDeadline() != other.hasAttemptDeadline()) return false; + if (hasAttemptDeadline()) { + if (!getAttemptDeadline() + .equals(other.getAttemptDeadline())) return false; + } + if (hasResponseTime() != other.hasResponseTime()) return false; + if (hasResponseTime()) { + if (!getResponseTime() + .equals(other.getResponseTime())) return false; + } + if (hasAttemptDelay() != other.hasAttemptDelay()) return false; + if (hasAttemptDelay()) { + if (!getAttemptDelay() + .equals(other.getAttemptDelay())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTEMPT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getAttemptNumber(); + if (hasAttemptDeadline()) { + hash = (37 * hash) + ATTEMPT_DEADLINE_FIELD_NUMBER; + hash = (53 * hash) + getAttemptDeadline().hashCode(); + } + if (hasResponseTime()) { + hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getResponseTime().hashCode(); + } + if (hasAttemptDelay()) { + hash = (37 * hash) + ATTEMPT_DELAY_FIELD_NUMBER; + hash = (53 * hash) + getAttemptDelay().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt 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.showcase.v1beta1.SequenceReport.Attempt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SequenceReport.Attempt 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.showcase.v1beta1.SequenceReport.Attempt 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; + } + /** + *
+     * Contains metrics on individual RPC Attempts in a sequence.
+     * 
+ * + * Protobuf type {@code google.showcase.v1beta1.SequenceReport.Attempt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SequenceReport.Attempt) + com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SequenceReport.Attempt.class, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.SequenceReport.Attempt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + attemptNumber_ = 0; + + if (attemptDeadlineBuilder_ == null) { + attemptDeadline_ = null; + } else { + attemptDeadline_ = null; + attemptDeadlineBuilder_ = null; + } + if (responseTimeBuilder_ == null) { + responseTime_ = null; + } else { + responseTime_ = null; + responseTimeBuilder_ = null; + } + if (attemptDelayBuilder_ == null) { + attemptDelay_ = null; + } else { + attemptDelay_ = null; + attemptDelayBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport.Attempt getDefaultInstanceForType() { + return com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport.Attempt build() { + com.google.showcase.v1beta1.SequenceReport.Attempt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport.Attempt buildPartial() { + com.google.showcase.v1beta1.SequenceReport.Attempt result = new com.google.showcase.v1beta1.SequenceReport.Attempt(this); + result.attemptNumber_ = attemptNumber_; + if (attemptDeadlineBuilder_ == null) { + result.attemptDeadline_ = attemptDeadline_; + } else { + result.attemptDeadline_ = attemptDeadlineBuilder_.build(); + } + if (responseTimeBuilder_ == null) { + result.responseTime_ = responseTime_; + } else { + result.responseTime_ = responseTimeBuilder_.build(); + } + if (attemptDelayBuilder_ == null) { + result.attemptDelay_ = attemptDelay_; + } else { + result.attemptDelay_ = attemptDelayBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.SequenceReport.Attempt) { + return mergeFrom((com.google.showcase.v1beta1.SequenceReport.Attempt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.SequenceReport.Attempt other) { + if (other == com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()) return this; + if (other.getAttemptNumber() != 0) { + setAttemptNumber(other.getAttemptNumber()); + } + if (other.hasAttemptDeadline()) { + mergeAttemptDeadline(other.getAttemptDeadline()); + } + if (other.hasResponseTime()) { + mergeResponseTime(other.getResponseTime()); + } + if (other.hasAttemptDelay()) { + mergeAttemptDelay(other.getAttemptDelay()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.SequenceReport.Attempt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.SequenceReport.Attempt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int attemptNumber_ ; + /** + *
+       * The attempt number - starting at 0.
+       * 
+ * + * int32 attempt_number = 1; + * @return The attemptNumber. + */ + @java.lang.Override + public int getAttemptNumber() { + return attemptNumber_; + } + /** + *
+       * The attempt number - starting at 0.
+       * 
+ * + * int32 attempt_number = 1; + * @param value The attemptNumber to set. + * @return This builder for chaining. + */ + public Builder setAttemptNumber(int value) { + + attemptNumber_ = value; + onChanged(); + return this; + } + /** + *
+       * The attempt number - starting at 0.
+       * 
+ * + * int32 attempt_number = 1; + * @return This builder for chaining. + */ + public Builder clearAttemptNumber() { + + attemptNumber_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp attemptDeadline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> attemptDeadlineBuilder_; + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return Whether the attemptDeadline field is set. + */ + public boolean hasAttemptDeadline() { + return attemptDeadlineBuilder_ != null || attemptDeadline_ != null; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + * @return The attemptDeadline. + */ + public com.google.protobuf.Timestamp getAttemptDeadline() { + if (attemptDeadlineBuilder_ == null) { + return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } else { + return attemptDeadlineBuilder_.getMessage(); + } + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder setAttemptDeadline(com.google.protobuf.Timestamp value) { + if (attemptDeadlineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attemptDeadline_ = value; + onChanged(); + } else { + attemptDeadlineBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder setAttemptDeadline( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (attemptDeadlineBuilder_ == null) { + attemptDeadline_ = builderForValue.build(); + onChanged(); + } else { + attemptDeadlineBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) { + if (attemptDeadlineBuilder_ == null) { + if (attemptDeadline_ != null) { + attemptDeadline_ = + com.google.protobuf.Timestamp.newBuilder(attemptDeadline_).mergeFrom(value).buildPartial(); + } else { + attemptDeadline_ = value; + } + onChanged(); + } else { + attemptDeadlineBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public Builder clearAttemptDeadline() { + if (attemptDeadlineBuilder_ == null) { + attemptDeadline_ = null; + onChanged(); + } else { + attemptDeadline_ = null; + attemptDeadlineBuilder_ = null; + } + + return this; + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public com.google.protobuf.Timestamp.Builder getAttemptDeadlineBuilder() { + + onChanged(); + return getAttemptDeadlineFieldBuilder().getBuilder(); + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { + if (attemptDeadlineBuilder_ != null) { + return attemptDeadlineBuilder_.getMessageOrBuilder(); + } else { + return attemptDeadline_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + } + } + /** + *
+       * The deadline dictated by the attempt to the server.
+       * 
+ * + * .google.protobuf.Timestamp attempt_deadline = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getAttemptDeadlineFieldBuilder() { + if (attemptDeadlineBuilder_ == null) { + attemptDeadlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getAttemptDeadline(), + getParentForChildren(), + isClean()); + attemptDeadline_ = null; + } + return attemptDeadlineBuilder_; + } + + private com.google.protobuf.Timestamp responseTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> responseTimeBuilder_; + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return Whether the responseTime field is set. + */ + public boolean hasResponseTime() { + return responseTimeBuilder_ != null || responseTime_ != null; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + * @return The responseTime. + */ + public com.google.protobuf.Timestamp getResponseTime() { + if (responseTimeBuilder_ == null) { + return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } else { + return responseTimeBuilder_.getMessage(); + } + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder setResponseTime(com.google.protobuf.Timestamp value) { + if (responseTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseTime_ = value; + onChanged(); + } else { + responseTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder setResponseTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (responseTimeBuilder_ == null) { + responseTime_ = builderForValue.build(); + onChanged(); + } else { + responseTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder mergeResponseTime(com.google.protobuf.Timestamp value) { + if (responseTimeBuilder_ == null) { + if (responseTime_ != null) { + responseTime_ = + com.google.protobuf.Timestamp.newBuilder(responseTime_).mergeFrom(value).buildPartial(); + } else { + responseTime_ = value; + } + onChanged(); + } else { + responseTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public Builder clearResponseTime() { + if (responseTimeBuilder_ == null) { + responseTime_ = null; + onChanged(); + } else { + responseTime_ = null; + responseTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() { + + onChanged(); + return getResponseTimeFieldBuilder().getBuilder(); + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { + if (responseTimeBuilder_ != null) { + return responseTimeBuilder_.getMessageOrBuilder(); + } else { + return responseTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + } + } + /** + *
+       * The time that the server responded to the RPC attempt. Used for
+       * calculating attempt_delay.
+       * 
+ * + * .google.protobuf.Timestamp response_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getResponseTimeFieldBuilder() { + if (responseTimeBuilder_ == null) { + responseTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getResponseTime(), + getParentForChildren(), + isClean()); + responseTime_ = null; + } + return responseTimeBuilder_; + } + + private com.google.protobuf.Duration attemptDelay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> attemptDelayBuilder_; + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return Whether the attemptDelay field is set. + */ + public boolean hasAttemptDelay() { + return attemptDelayBuilder_ != null || attemptDelay_ != null; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + * @return The attemptDelay. + */ + public com.google.protobuf.Duration getAttemptDelay() { + if (attemptDelayBuilder_ == null) { + return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } else { + return attemptDelayBuilder_.getMessage(); + } + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder setAttemptDelay(com.google.protobuf.Duration value) { + if (attemptDelayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attemptDelay_ = value; + onChanged(); + } else { + attemptDelayBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder setAttemptDelay( + com.google.protobuf.Duration.Builder builderForValue) { + if (attemptDelayBuilder_ == null) { + attemptDelay_ = builderForValue.build(); + onChanged(); + } else { + attemptDelayBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder mergeAttemptDelay(com.google.protobuf.Duration value) { + if (attemptDelayBuilder_ == null) { + if (attemptDelay_ != null) { + attemptDelay_ = + com.google.protobuf.Duration.newBuilder(attemptDelay_).mergeFrom(value).buildPartial(); + } else { + attemptDelay_ = value; + } + onChanged(); + } else { + attemptDelayBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public Builder clearAttemptDelay() { + if (attemptDelayBuilder_ == null) { + attemptDelay_ = null; + onChanged(); + } else { + attemptDelay_ = null; + attemptDelayBuilder_ = null; + } + + return this; + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public com.google.protobuf.Duration.Builder getAttemptDelayBuilder() { + + onChanged(); + return getAttemptDelayFieldBuilder().getBuilder(); + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() { + if (attemptDelayBuilder_ != null) { + return attemptDelayBuilder_.getMessageOrBuilder(); + } else { + return attemptDelay_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + } + } + /** + *
+       * The server perceived delay between sending the last response and
+       * receiving this attempt. Used for validating attempt delay backoff.
+       * 
+ * + * .google.protobuf.Duration attempt_delay = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getAttemptDelayFieldBuilder() { + if (attemptDelayBuilder_ == null) { + attemptDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getAttemptDelay(), + getParentForChildren(), + isClean()); + attemptDelay_ = null; + } + return attemptDelayBuilder_; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + *
+       * The status returned to the attempt.
+       * 
+ * + * .google.rpc.Status status = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @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.showcase.v1beta1.SequenceReport.Attempt) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SequenceReport.Attempt) + private static final com.google.showcase.v1beta1.SequenceReport.Attempt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SequenceReport.Attempt(); + } + + public static com.google.showcase.v1beta1.SequenceReport.Attempt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attempt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attempt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport.Attempt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * 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; + } + } + /** + * 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 ATTEMPTS_FIELD_NUMBER = 2; + private java.util.List attempts_; + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public java.util.List getAttemptsList() { + return attempts_; + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public java.util.List + getAttemptsOrBuilderList() { + return attempts_; + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public int getAttemptsCount() { + return attempts_.size(); + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport.Attempt getAttempts(int index) { + return attempts_.get(index); + } + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOrBuilder( + int index) { + return attempts_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < attempts_.size(); i++) { + output.writeMessage(2, attempts_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < attempts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attempts_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.SequenceReport)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.SequenceReport other = (com.google.showcase.v1beta1.SequenceReport) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAttemptsList() + .equals(other.getAttemptsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getAttemptsCount() > 0) { + hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getAttemptsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.SequenceReport parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SequenceReport 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.showcase.v1beta1.SequenceReport parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SequenceReport parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.SequenceReport 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.showcase.v1beta1.SequenceReport 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.SequenceReport} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SequenceReport) + com.google.showcase.v1beta1.SequenceReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.SequenceReport.class, com.google.showcase.v1beta1.SequenceReport.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.SequenceReport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAttemptsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (attemptsBuilder_ == null) { + attempts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + attemptsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport getDefaultInstanceForType() { + return com.google.showcase.v1beta1.SequenceReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport build() { + com.google.showcase.v1beta1.SequenceReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport buildPartial() { + com.google.showcase.v1beta1.SequenceReport result = new com.google.showcase.v1beta1.SequenceReport(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (attemptsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + attempts_ = java.util.Collections.unmodifiableList(attempts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.attempts_ = attempts_; + } else { + result.attempts_ = attemptsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.SequenceReport) { + return mergeFrom((com.google.showcase.v1beta1.SequenceReport)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.SequenceReport other) { + if (other == com.google.showcase.v1beta1.SequenceReport.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (attemptsBuilder_ == null) { + if (!other.attempts_.isEmpty()) { + if (attempts_.isEmpty()) { + attempts_ = other.attempts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAttemptsIsMutable(); + attempts_.addAll(other.attempts_); + } + onChanged(); + } + } else { + if (!other.attempts_.isEmpty()) { + if (attemptsBuilder_.isEmpty()) { + attemptsBuilder_.dispose(); + attemptsBuilder_ = null; + attempts_ = other.attempts_; + bitField0_ = (bitField0_ & ~0x00000001); + attemptsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttemptsFieldBuilder() : null; + } else { + attemptsBuilder_.addAllMessages(other.attempts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.SequenceReport parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.SequenceReport) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * 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; + } + } + /** + * 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; + } + } + /** + * 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; + onChanged(); + return this; + } + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * 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; + onChanged(); + return this; + } + + private java.util.List attempts_ = + java.util.Collections.emptyList(); + private void ensureAttemptsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + attempts_ = new java.util.ArrayList(attempts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.SequenceReport.Attempt, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder> attemptsBuilder_; + + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public java.util.List getAttemptsList() { + if (attemptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attempts_); + } else { + return attemptsBuilder_.getMessageList(); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public int getAttemptsCount() { + if (attemptsBuilder_ == null) { + return attempts_.size(); + } else { + return attemptsBuilder_.getCount(); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.SequenceReport.Attempt getAttempts(int index) { + if (attemptsBuilder_ == null) { + return attempts_.get(index); + } else { + return attemptsBuilder_.getMessage(index); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder setAttempts( + int index, com.google.showcase.v1beta1.SequenceReport.Attempt value) { + if (attemptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttemptsIsMutable(); + attempts_.set(index, value); + onChanged(); + } else { + attemptsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder setAttempts( + int index, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder builderForValue) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.set(index, builderForValue.build()); + onChanged(); + } else { + attemptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts(com.google.showcase.v1beta1.SequenceReport.Attempt value) { + if (attemptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttemptsIsMutable(); + attempts_.add(value); + onChanged(); + } else { + attemptsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts( + int index, com.google.showcase.v1beta1.SequenceReport.Attempt value) { + if (attemptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttemptsIsMutable(); + attempts_.add(index, value); + onChanged(); + } else { + attemptsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts( + com.google.showcase.v1beta1.SequenceReport.Attempt.Builder builderForValue) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(builderForValue.build()); + onChanged(); + } else { + attemptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder addAttempts( + int index, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder builderForValue) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(index, builderForValue.build()); + onChanged(); + } else { + attemptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder addAllAttempts( + java.lang.Iterable values) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attempts_); + onChanged(); + } else { + attemptsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder clearAttempts() { + if (attemptsBuilder_ == null) { + attempts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + attemptsBuilder_.clear(); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public Builder removeAttempts(int index) { + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.remove(index); + onChanged(); + } else { + attemptsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder getAttemptsBuilder( + int index) { + return getAttemptsFieldBuilder().getBuilder(index); + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOrBuilder( + int index) { + if (attemptsBuilder_ == null) { + return attempts_.get(index); } else { + return attemptsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public java.util.List + getAttemptsOrBuilderList() { + if (attemptsBuilder_ != null) { + return attemptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attempts_); + } + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder addAttemptsBuilder() { + return getAttemptsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()); + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder addAttemptsBuilder( + int index) { + return getAttemptsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()); + } + /** + *
+     * The set of RPC attempts received by the server for a Sequence.
+     * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + public java.util.List + getAttemptsBuilderList() { + return getAttemptsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.SequenceReport.Attempt, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder> + getAttemptsFieldBuilder() { + if (attemptsBuilder_ == null) { + attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.SequenceReport.Attempt, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder>( + attempts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + attempts_ = null; + } + return attemptsBuilder_; + } + @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.showcase.v1beta1.SequenceReport) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SequenceReport) + private static final com.google.showcase.v1beta1.SequenceReport DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SequenceReport(); + } + + public static com.google.showcase.v1beta1.SequenceReport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequenceReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SequenceReport(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.SequenceReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java new file mode 100644 index 0000000000..80742478a3 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 SequenceReportName implements ResourceName { + private static final PathTemplate SEQUENCE = + PathTemplate.createWithoutUrlEncoding("sequences/{sequence}/sequenceReport"); + private volatile Map fieldValuesMap; + private final String sequence; + + @Deprecated + protected SequenceReportName() { + sequence = null; + } + + private SequenceReportName(Builder builder) { + sequence = Preconditions.checkNotNull(builder.getSequence()); + } + + public String getSequence() { + return sequence; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SequenceReportName of(String sequence) { + return newBuilder().setSequence(sequence).build(); + } + + public static String format(String sequence) { + return newBuilder().setSequence(sequence).build().toString(); + } + + public static SequenceReportName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SEQUENCE.validatedMatch( + formattedString, "SequenceReportName.parse: formattedString not in valid format"); + return of(matchMap.get("sequence")); + } + + 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 (SequenceReportName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SEQUENCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (sequence != null) { + fieldMapBuilder.put("sequence", sequence); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SEQUENCE.instantiate("sequence", sequence); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SequenceReportName that = ((SequenceReportName) o); + return Objects.equals(this.sequence, that.sequence); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(sequence); + return h; + } + + /** Builder for sequences/{sequence}/sequenceReport. */ + public static class Builder { + private String sequence; + + protected Builder() {} + + public String getSequence() { + return sequence; + } + + public Builder setSequence(String sequence) { + this.sequence = sequence; + return this; + } + + private Builder(SequenceReportName sequenceReportName) { + this.sequence = sequenceReportName.sequence; + } + + public SequenceReportName build() { + return new SequenceReportName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java new file mode 100644 index 0000000000..287d6d4661 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +package com.google.showcase.v1beta1; + +public interface SequenceReportOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SequenceReport) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + java.util.List + getAttemptsList(); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + com.google.showcase.v1beta1.SequenceReport.Attempt getAttempts(int index); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + int getAttemptsCount(); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + java.util.List + getAttemptsOrBuilderList(); + /** + *
+   * The set of RPC attempts received by the server for a Sequence.
+   * 
+ * + * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; + */ + com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java new file mode 100644 index 0000000000..3da8c29963 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java @@ -0,0 +1,879 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * A session is a suite of tests, generally being made in the context
+ * of testing code generation.
+ * A session defines tests it may expect, based on which version of the
+ * code generation spec is in use.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Session} + */ +public final class Session extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Session) + SessionOrBuilder { +private static final long serialVersionUID = 0L; + // Use Session.newBuilder() to construct. + private Session(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Session() { + name_ = ""; + version_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Session(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Session( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + version_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Session.class, com.google.showcase.v1beta1.Session.Builder.class); + } + + /** + *
+   * The specification versions understood by Showcase.
+   * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.Session.Version} + */ + public enum Version + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unspecified version. If passed on creation, the session will default
+     * to using the latest stable release.
+     * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + VERSION_UNSPECIFIED(0), + /** + *
+     * The latest v1. Currently, this is v1.0.
+     * 
+ * + * V1_LATEST = 1; + */ + V1_LATEST(1), + /** + *
+     * v1.0. (Until the spec is "GA", this will be a moving target.)
+     * 
+ * + * V1_0 = 2; + */ + V1_0(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified version. If passed on creation, the session will default
+     * to using the latest stable release.
+     * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + public static final int VERSION_UNSPECIFIED_VALUE = 0; + /** + *
+     * The latest v1. Currently, this is v1.0.
+     * 
+ * + * V1_LATEST = 1; + */ + public static final int V1_LATEST_VALUE = 1; + /** + *
+     * v1.0. (Until the spec is "GA", this will be a moving target.)
+     * 
+ * + * V1_0 = 2; + */ + public static final int V1_0_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 Version 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 Version forNumber(int value) { + switch (value) { + case 0: return VERSION_UNSPECIFIED; + case 1: return V1_LATEST; + case 2: return V1_0; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Version> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Version findValueByNumber(int number) { + return Version.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.showcase.v1beta1.Session.getDescriptor().getEnumTypes().get(0); + } + + private static final Version[] VALUES = values(); + + public static Version 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 Version(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Session.Version) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the session. The ID must conform to ^[a-z]+$
+   * If this is not provided, Showcase chooses one at random.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the session. The ID must conform to ^[a-z]+$
+   * If this is not provided, Showcase chooses one at random.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private int version_; + /** + *
+   * Required. The version this session is using.
+   * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override public int getVersionValue() { + return version_; + } + /** + *
+   * Required. The version this session is using.
+   * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return The version. + */ + @java.lang.Override public com.google.showcase.v1beta1.Session.Version getVersion() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Session.Version result = com.google.showcase.v1beta1.Session.Version.valueOf(version_); + return result == null ? com.google.showcase.v1beta1.Session.Version.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (version_ != com.google.showcase.v1beta1.Session.Version.VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (version_ != com.google.showcase.v1beta1.Session.Version.VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Session)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Session other = (com.google.showcase.v1beta1.Session) obj; + + if (!getName() + .equals(other.getName())) return false; + if (version_ != other.version_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Session parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Session parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Session parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Session parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Session parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Session parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Session parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Session 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.showcase.v1beta1.Session parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Session parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Session parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Session 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.showcase.v1beta1.Session 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 session is a suite of tests, generally being made in the context
+   * of testing code generation.
+   * A session defines tests it may expect, based on which version of the
+   * code generation spec is in use.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Session} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Session) + com.google.showcase.v1beta1.SessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Session.class, com.google.showcase.v1beta1.Session.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Session.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + version_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Session getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Session.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Session build() { + com.google.showcase.v1beta1.Session result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Session buildPartial() { + com.google.showcase.v1beta1.Session result = new com.google.showcase.v1beta1.Session(this); + result.name_ = name_; + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Session) { + return mergeFrom((com.google.showcase.v1beta1.Session)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Session other) { + if (other == com.google.showcase.v1beta1.Session.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.version_ != 0) { + setVersionValue(other.getVersionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Session parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Session) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the session. The ID must conform to ^[a-z]+$
+     * If this is not provided, Showcase chooses one at random.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the session. The ID must conform to ^[a-z]+$
+     * If this is not provided, Showcase chooses one at random.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the session. The ID must conform to ^[a-z]+$
+     * If this is not provided, Showcase chooses one at random.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the session. The ID must conform to ^[a-z]+$
+     * If this is not provided, Showcase chooses one at random.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the session. The ID must conform to ^[a-z]+$
+     * If this is not provided, Showcase chooses one at random.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int version_ = 0; + /** + *
+     * Required. The version this session is using.
+     * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override public int getVersionValue() { + return version_; + } + /** + *
+     * Required. The version this session is using.
+     * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The version this session is using.
+     * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return The version. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Session.Version getVersion() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Session.Version result = com.google.showcase.v1beta1.Session.Version.valueOf(version_); + return result == null ? com.google.showcase.v1beta1.Session.Version.UNRECOGNIZED : result; + } + /** + *
+     * Required. The version this session is using.
+     * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(com.google.showcase.v1beta1.Session.Version value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. The version this session is using.
+     * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 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.showcase.v1beta1.Session) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Session) + private static final com.google.showcase.v1beta1.Session DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Session(); + } + + public static com.google.showcase.v1beta1.Session getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Session parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Session(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Session getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java new file mode 100644 index 0000000000..a205c1272d --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 SessionName implements ResourceName { + private static final PathTemplate SESSION = + PathTemplate.createWithoutUrlEncoding("sessions/{session}"); + private volatile Map fieldValuesMap; + private final String session; + + @Deprecated + protected SessionName() { + session = null; + } + + private SessionName(Builder builder) { + session = Preconditions.checkNotNull(builder.getSession()); + } + + public String getSession() { + return session; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SessionName of(String session) { + return newBuilder().setSession(session).build(); + } + + public static String format(String session) { + return newBuilder().setSession(session).build().toString(); + } + + public static SessionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SESSION.validatedMatch( + formattedString, "SessionName.parse: formattedString not in valid format"); + return of(matchMap.get("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 (SessionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SESSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (session != null) { + fieldMapBuilder.put("session", session); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SESSION.instantiate("session", session); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SessionName that = ((SessionName) o); + return Objects.equals(this.session, that.session); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(session); + return h; + } + + /** Builder for sessions/{session}. */ + public static class Builder { + private String session; + + protected Builder() {} + + public String getSession() { + return session; + } + + public Builder setSession(String session) { + this.session = session; + return this; + } + + private Builder(SessionName sessionName) { + this.session = sessionName.session; + } + + public SessionName build() { + return new SessionName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java new file mode 100644 index 0000000000..bf0021843a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface SessionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Session) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the session. The ID must conform to ^[a-z]+$
+   * If this is not provided, Showcase chooses one at random.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the session. The ID must conform to ^[a-z]+$
+   * If this is not provided, Showcase chooses one at random.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The version this session is using.
+   * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + /** + *
+   * Required. The version this session is using.
+   * 
+ * + * .google.showcase.v1beta1.Session.Version version = 2; + * @return The version. + */ + com.google.showcase.v1beta1.Session.Version getVersion(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java new file mode 100644 index 0000000000..28d6564dcd --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * A severity enum used to test enum capabilities in GAPIC surfaces.
+ * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.Severity} + */ +public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNNECESSARY = 0; + */ + UNNECESSARY(0), + /** + * NECESSARY = 1; + */ + NECESSARY(1), + /** + * URGENT = 2; + */ + URGENT(2), + /** + * CRITICAL = 3; + */ + CRITICAL(3), + UNRECOGNIZED(-1), + ; + + /** + * UNNECESSARY = 0; + */ + public static final int UNNECESSARY_VALUE = 0; + /** + * NECESSARY = 1; + */ + public static final int NECESSARY_VALUE = 1; + /** + * URGENT = 2; + */ + public static final int URGENT_VALUE = 2; + /** + * CRITICAL = 3; + */ + public static final int CRITICAL_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 Severity 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 Severity forNumber(int value) { + switch (value) { + case 0: return UNNECESSARY; + case 1: return NECESSARY; + case 2: return URGENT; + case 3: return CRITICAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.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.showcase.v1beta1.EchoOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity 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 Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Severity) +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java new file mode 100644 index 0000000000..204ec91396 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java @@ -0,0 +1,833 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\StreamBlurbs
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsRequest} + */ +public final class StreamBlurbsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamBlurbsRequest) + StreamBlurbsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StreamBlurbsRequest.newBuilder() to construct. + private StreamBlurbsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StreamBlurbsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StreamBlurbsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StreamBlurbsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamBlurbsRequest.class, com.google.showcase.v1beta1.StreamBlurbsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of a chat room or user profile whose blurbs to stream.
+   * 
+ * + * 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; + } + } + /** + *
+   * The resource name of a chat room or user profile whose blurbs to stream.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expireTime_; + /** + *
+   * The time at which this stream will close.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + *
+   * The time at which this stream will close.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + *
+   * The time at which this stream will close.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); + } + + 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 (expireTime_ != null) { + output.writeMessage(2, getExpireTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.StreamBlurbsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.StreamBlurbsRequest other = (com.google.showcase.v1beta1.StreamBlurbsRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest 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.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamBlurbsRequest 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.showcase.v1beta1.StreamBlurbsRequest 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 request message for the google.showcase.v1beta1.Messaging\StreamBlurbs
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamBlurbsRequest) + com.google.showcase.v1beta1.StreamBlurbsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamBlurbsRequest.class, com.google.showcase.v1beta1.StreamBlurbsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.StreamBlurbsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsRequest build() { + com.google.showcase.v1beta1.StreamBlurbsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsRequest buildPartial() { + com.google.showcase.v1beta1.StreamBlurbsRequest result = new com.google.showcase.v1beta1.StreamBlurbsRequest(this); + result.name_ = name_; + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.StreamBlurbsRequest) { + return mergeFrom((com.google.showcase.v1beta1.StreamBlurbsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.StreamBlurbsRequest other) { + if (other == com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.StreamBlurbsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.StreamBlurbsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of a chat room or user profile whose blurbs to stream.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of a chat room or user profile whose blurbs to stream.
+     * 
+ * + * 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; + } + } + /** + *
+     * The resource name of a chat room or user profile whose blurbs to stream.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + *
+     * The resource name of a chat room or user profile whose blurbs to stream.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of a chat room or user profile whose blurbs to stream.
+     * 
+ * + * 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; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return expireTimeBuilder_ != null || expireTime_ != null; + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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(); + } + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expireTime_ != null) { + expireTime_ = + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + } + /** + *
+     * The time at which this stream will close.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamBlurbsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamBlurbsRequest) + private static final com.google.showcase.v1beta1.StreamBlurbsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamBlurbsRequest(); + } + + public static com.google.showcase.v1beta1.StreamBlurbsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamBlurbsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamBlurbsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java new file mode 100644 index 0000000000..27fdb34a7a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface StreamBlurbsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamBlurbsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of a chat room or user profile whose blurbs to stream.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of a chat room or user profile whose blurbs to stream.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The time at which this stream will close.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + *
+   * The time at which this stream will close.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + *
+   * The time at which this stream will close.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java new file mode 100644 index 0000000000..5d3d9a5208 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java @@ -0,0 +1,945 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The response message for the google.showcase.v1beta1.Messaging\StreamBlurbs
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsResponse} + */ +public final class StreamBlurbsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamBlurbsResponse) + StreamBlurbsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StreamBlurbsResponse.newBuilder() to construct. + private StreamBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StreamBlurbsResponse() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StreamBlurbsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StreamBlurbsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Blurb.Builder subBuilder = null; + if (blurb_ != null) { + subBuilder = blurb_.toBuilder(); + } + blurb_ = input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blurb_); + blurb_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamBlurbsResponse.class, com.google.showcase.v1beta1.StreamBlurbsResponse.Builder.class); + } + + /** + *
+   * The action that triggered the blurb to be returned.
+   * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.StreamBlurbsResponse.Action} + */ + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ACTION_UNSPECIFIED = 0; + */ + ACTION_UNSPECIFIED(0), + /** + *
+     * Specifies that the blurb was created.
+     * 
+ * + * CREATE = 1; + */ + CREATE(1), + /** + *
+     * Specifies that the blurb was updated.
+     * 
+ * + * UPDATE = 2; + */ + UPDATE(2), + /** + *
+     * Specifies that the blurb was deleted.
+     * 
+ * + * DELETE = 3; + */ + DELETE(3), + UNRECOGNIZED(-1), + ; + + /** + * ACTION_UNSPECIFIED = 0; + */ + public static final int ACTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Specifies that the blurb was created.
+     * 
+ * + * CREATE = 1; + */ + public static final int CREATE_VALUE = 1; + /** + *
+     * Specifies that the blurb was updated.
+     * 
+ * + * UPDATE = 2; + */ + public static final int UPDATE_VALUE = 2; + /** + *
+     * Specifies that the blurb was deleted.
+     * 
+ * + * DELETE = 3; + */ + public static final int DELETE_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 Action 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 Action forNumber(int value) { + switch (value) { + case 0: return ACTION_UNSPECIFIED; + case 1: return CREATE; + case 2: return UPDATE; + case 3: return DELETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.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.showcase.v1beta1.StreamBlurbsResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Action[] VALUES = values(); + + public static Action 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 Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.StreamBlurbsResponse.Action) + } + + public static final int BLURB_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Blurb blurb_; + /** + *
+   * The blurb that was either created, updated, or deleted.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return Whether the blurb field is set. + */ + @java.lang.Override + public boolean hasBlurb() { + return blurb_ != null; + } + /** + *
+   * The blurb that was either created, updated, or deleted.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return The blurb. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurb() { + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } + /** + *
+   * The blurb that was either created, updated, or deleted.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + return getBlurb(); + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_; + /** + *
+   * The action that triggered the blurb to be returned.
+   * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override public int getActionValue() { + return action_; + } + /** + *
+   * The action that triggered the blurb to be returned.
+   * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return The action. + */ + @java.lang.Override public com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.StreamBlurbsResponse.Action result = com.google.showcase.v1beta1.StreamBlurbsResponse.Action.valueOf(action_); + return result == null ? com.google.showcase.v1beta1.StreamBlurbsResponse.Action.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 (blurb_ != null) { + output.writeMessage(1, getBlurb()); + } + if (action_ != com.google.showcase.v1beta1.StreamBlurbsResponse.Action.ACTION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blurb_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBlurb()); + } + if (action_ != com.google.showcase.v1beta1.StreamBlurbsResponse.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, action_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.StreamBlurbsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.StreamBlurbsResponse other = (com.google.showcase.v1beta1.StreamBlurbsResponse) obj; + + if (hasBlurb() != other.hasBlurb()) return false; + if (hasBlurb()) { + if (!getBlurb() + .equals(other.getBlurb())) return false; + } + if (action_ != other.action_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlurb()) { + hash = (37 * hash) + BLURB_FIELD_NUMBER; + hash = (53 * hash) + getBlurb().hashCode(); + } + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse 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.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.StreamBlurbsResponse 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.showcase.v1beta1.StreamBlurbsResponse 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 response message for the google.showcase.v1beta1.Messaging\StreamBlurbs
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamBlurbsResponse) + com.google.showcase.v1beta1.StreamBlurbsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamBlurbsResponse.class, com.google.showcase.v1beta1.StreamBlurbsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.StreamBlurbsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (blurbBuilder_ == null) { + blurb_ = null; + } else { + blurb_ = null; + blurbBuilder_ = null; + } + action_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsResponse build() { + com.google.showcase.v1beta1.StreamBlurbsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsResponse buildPartial() { + com.google.showcase.v1beta1.StreamBlurbsResponse result = new com.google.showcase.v1beta1.StreamBlurbsResponse(this); + if (blurbBuilder_ == null) { + result.blurb_ = blurb_; + } else { + result.blurb_ = blurbBuilder_.build(); + } + result.action_ = action_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.StreamBlurbsResponse) { + return mergeFrom((com.google.showcase.v1beta1.StreamBlurbsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.StreamBlurbsResponse other) { + if (other == com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance()) return this; + if (other.hasBlurb()) { + mergeBlurb(other.getBlurb()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.StreamBlurbsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.StreamBlurbsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Blurb blurb_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_; + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return Whether the blurb field is set. + */ + public boolean hasBlurb() { + return blurbBuilder_ != null || blurb_ != null; + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return The blurb. + */ + public com.google.showcase.v1beta1.Blurb getBlurb() { + if (blurbBuilder_ == null) { + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } else { + return blurbBuilder_.getMessage(); + } + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blurb_ = value; + onChanged(); + } else { + blurbBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder setBlurb( + com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbBuilder_ == null) { + blurb_ = builderForValue.build(); + onChanged(); + } else { + blurbBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (blurb_ != null) { + blurb_ = + com.google.showcase.v1beta1.Blurb.newBuilder(blurb_).mergeFrom(value).buildPartial(); + } else { + blurb_ = value; + } + onChanged(); + } else { + blurbBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder clearBlurb() { + if (blurbBuilder_ == null) { + blurb_ = null; + onChanged(); + } else { + blurb_ = null; + blurbBuilder_ = null; + } + + return this; + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { + + onChanged(); + return getBlurbFieldBuilder().getBuilder(); + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + if (blurbBuilder_ != null) { + return blurbBuilder_.getMessageOrBuilder(); + } else { + return blurb_ == null ? + com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } + } + /** + *
+     * The blurb that was either created, updated, or deleted.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + getBlurbFieldBuilder() { + if (blurbBuilder_ == null) { + blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( + getBlurb(), + getParentForChildren(), + isClean()); + blurb_ = null; + } + return blurbBuilder_; + } + + private int action_ = 0; + /** + *
+     * The action that triggered the blurb to be returned.
+     * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override public int getActionValue() { + return action_; + } + /** + *
+     * The action that triggered the blurb to be returned.
+     * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + + action_ = value; + onChanged(); + return this; + } + /** + *
+     * The action that triggered the blurb to be returned.
+     * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return The action. + */ + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.StreamBlurbsResponse.Action result = com.google.showcase.v1beta1.StreamBlurbsResponse.Action.valueOf(action_); + return result == null ? com.google.showcase.v1beta1.StreamBlurbsResponse.Action.UNRECOGNIZED : result; + } + /** + *
+     * The action that triggered the blurb to be returned.
+     * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.showcase.v1beta1.StreamBlurbsResponse.Action value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The action that triggered the blurb to be returned.
+     * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = 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.showcase.v1beta1.StreamBlurbsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamBlurbsResponse) + private static final com.google.showcase.v1beta1.StreamBlurbsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamBlurbsResponse(); + } + + public static com.google.showcase.v1beta1.StreamBlurbsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamBlurbsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java new file mode 100644 index 0000000000..d559b41956 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface StreamBlurbsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamBlurbsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The blurb that was either created, updated, or deleted.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return Whether the blurb field is set. + */ + boolean hasBlurb(); + /** + *
+   * The blurb that was either created, updated, or deleted.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return The blurb. + */ + com.google.showcase.v1beta1.Blurb getBlurb(); + /** + *
+   * The blurb that was either created, updated, or deleted.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); + + /** + *
+   * The action that triggered the blurb to be returned.
+   * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + *
+   * The action that triggered the blurb to be returned.
+   * 
+ * + * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * @return The action. + */ + com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java new file mode 100644 index 0000000000..7199f69a27 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java @@ -0,0 +1,3839 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.Test} + */ +public final class Test extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Test) + TestOrBuilder { +private static final long serialVersionUID = 0L; + // Use Test.newBuilder() to construct. + private Test(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Test() { + name_ = ""; + expectationLevel_ = 0; + description_ = ""; + blueprints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Test(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Test( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + expectationLevel_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blueprints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blueprints_.add( + input.readMessage(com.google.showcase.v1beta1.Test.Blueprint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Test.class, com.google.showcase.v1beta1.Test.Builder.class); + } + + /** + *
+   * Whether or not a test is required, recommended, or optional.
+   * 
+ * + * Protobuf enum {@code google.showcase.v1beta1.Test.ExpectationLevel} + */ + public enum ExpectationLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EXPECTATION_LEVEL_UNSPECIFIED = 0; + */ + EXPECTATION_LEVEL_UNSPECIFIED(0), + /** + *
+     * This test is strictly required.
+     * 
+ * + * REQUIRED = 1; + */ + REQUIRED(1), + /** + *
+     * This test is recommended.
+     * If a generator explicitly ignores a recommended test (see `DeleteTest`),
+     * then the report may still pass, but with a warning.
+     * If a generator skips a recommended test and does not explicitly
+     * express that intention, the report will fail.
+     * 
+ * + * RECOMMENDED = 2; + */ + RECOMMENDED(2), + /** + *
+     * This test is optional.
+     * If a generator explicitly ignores an optional test (see `DeleteTest`),
+     * then the report may still pass, and no warning will be issued.
+     * If a generator skips an optional test and does not explicitly
+     * express that intention, the report may still pass, but with a
+     * warning.
+     * 
+ * + * OPTIONAL = 3; + */ + OPTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + * EXPECTATION_LEVEL_UNSPECIFIED = 0; + */ + public static final int EXPECTATION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + *
+     * This test is strictly required.
+     * 
+ * + * REQUIRED = 1; + */ + public static final int REQUIRED_VALUE = 1; + /** + *
+     * This test is recommended.
+     * If a generator explicitly ignores a recommended test (see `DeleteTest`),
+     * then the report may still pass, but with a warning.
+     * If a generator skips a recommended test and does not explicitly
+     * express that intention, the report will fail.
+     * 
+ * + * RECOMMENDED = 2; + */ + public static final int RECOMMENDED_VALUE = 2; + /** + *
+     * This test is optional.
+     * If a generator explicitly ignores an optional test (see `DeleteTest`),
+     * then the report may still pass, and no warning will be issued.
+     * If a generator skips an optional test and does not explicitly
+     * express that intention, the report may still pass, but with a
+     * warning.
+     * 
+ * + * OPTIONAL = 3; + */ + public static final int OPTIONAL_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 ExpectationLevel 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 ExpectationLevel forNumber(int value) { + switch (value) { + case 0: return EXPECTATION_LEVEL_UNSPECIFIED; + case 1: return REQUIRED; + case 2: return RECOMMENDED; + case 3: return OPTIONAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExpectationLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExpectationLevel findValueByNumber(int number) { + return ExpectationLevel.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.showcase.v1beta1.Test.getDescriptor().getEnumTypes().get(0); + } + + private static final ExpectationLevel[] VALUES = values(); + + public static ExpectationLevel 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 ExpectationLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Test.ExpectationLevel) + } + + public interface BlueprintOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Test.Blueprint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of this blueprint.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * The name of this blueprint.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * A description of this blueprint.
+     * 
+ * + * string description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * A description of this blueprint.
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * The initial request to trigger this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + *
+     * The initial request to trigger this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * @return The request. + */ + com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest(); + /** + *
+     * The initial request to trigger this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequestOrBuilder(); + + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + java.util.List + getAdditionalRequestsList(); + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index); + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + int getAdditionalRequestsCount(); + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + java.util.List + getAdditionalRequestsOrBuilderList(); + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequestsOrBuilder( + int index); + } + /** + *
+   * A blueprint is an explicit definition of methods and requests that are needed
+   * to be made to test this specific test case. Ideally this would be represented
+   * by something more robust like CEL, but as of writing this, I am unsure if CEL
+   * is ready.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint} + */ + public static final class Blueprint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Test.Blueprint) + BlueprintOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blueprint.newBuilder() to construct. + private Blueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Blueprint() { + name_ = ""; + description_ = ""; + additionalRequests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Blueprint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blueprint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: { + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.google.showcase.v1beta1.Test.Blueprint.Invocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + additionalRequests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + additionalRequests_.add( + input.readMessage(com.google.showcase.v1beta1.Test.Blueprint.Invocation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + additionalRequests_ = java.util.Collections.unmodifiableList(additionalRequests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Test.Blueprint.class, com.google.showcase.v1beta1.Test.Blueprint.Builder.class); + } + + public interface InvocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Test.Blueprint.Invocation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The fully qualified name of the showcase method to be invoked.
+       * 
+ * + * string method = 1; + * @return The method. + */ + java.lang.String getMethod(); + /** + *
+       * The fully qualified name of the showcase method to be invoked.
+       * 
+ * + * string method = 1; + * @return The bytes for method. + */ + com.google.protobuf.ByteString + getMethodBytes(); + + /** + *
+       * The request to be made if a specific request is necessary.
+       * 
+ * + * bytes serialized_request = 2; + * @return The serializedRequest. + */ + com.google.protobuf.ByteString getSerializedRequest(); + } + /** + *
+     * A message representing a method invocation.
+     * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint.Invocation} + */ + public static final class Invocation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Test.Blueprint.Invocation) + InvocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Invocation.newBuilder() to construct. + private Invocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Invocation() { + method_ = ""; + serializedRequest_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Invocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Invocation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + method_ = s; + break; + } + case 18: { + + serializedRequest_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Test.Blueprint.Invocation.class, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder.class); + } + + public static final int METHOD_FIELD_NUMBER = 1; + private volatile java.lang.Object method_; + /** + *
+       * The fully qualified name of the showcase method to be invoked.
+       * 
+ * + * string method = 1; + * @return The method. + */ + @java.lang.Override + public java.lang.String getMethod() { + java.lang.Object ref = method_; + 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(); + method_ = s; + return s; + } + } + /** + *
+       * The fully qualified name of the showcase method to be invoked.
+       * 
+ * + * string method = 1; + * @return The bytes for method. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERIALIZED_REQUEST_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString serializedRequest_; + /** + *
+       * The request to be made if a specific request is necessary.
+       * 
+ * + * bytes serialized_request = 2; + * @return The serializedRequest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerializedRequest() { + return serializedRequest_; + } + + 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(method_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (!serializedRequest_.isEmpty()) { + output.writeBytes(2, serializedRequest_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (!serializedRequest_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, serializedRequest_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Test.Blueprint.Invocation)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Test.Blueprint.Invocation other = (com.google.showcase.v1beta1.Test.Blueprint.Invocation) obj; + + if (!getMethod() + .equals(other.getMethod())) return false; + if (!getSerializedRequest() + .equals(other.getSerializedRequest())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + hash = (37 * hash) + SERIALIZED_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSerializedRequest().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation 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.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation 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.showcase.v1beta1.Test.Blueprint.Invocation 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 message representing a method invocation.
+       * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint.Invocation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Test.Blueprint.Invocation) + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Test.Blueprint.Invocation.class, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Test.Blueprint.Invocation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + method_ = ""; + + serializedRequest_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.Invocation build() { + com.google.showcase.v1beta1.Test.Blueprint.Invocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.Invocation buildPartial() { + com.google.showcase.v1beta1.Test.Blueprint.Invocation result = new com.google.showcase.v1beta1.Test.Blueprint.Invocation(this); + result.method_ = method_; + result.serializedRequest_ = serializedRequest_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Test.Blueprint.Invocation) { + return mergeFrom((com.google.showcase.v1beta1.Test.Blueprint.Invocation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Test.Blueprint.Invocation other) { + if (other == com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()) return this; + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + onChanged(); + } + if (other.getSerializedRequest() != com.google.protobuf.ByteString.EMPTY) { + setSerializedRequest(other.getSerializedRequest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Test.Blueprint.Invocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Test.Blueprint.Invocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object method_ = ""; + /** + *
+         * The fully qualified name of the showcase method to be invoked.
+         * 
+ * + * string method = 1; + * @return The method. + */ + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The fully qualified name of the showcase method to be invoked.
+         * 
+ * + * string method = 1; + * @return The bytes for method. + */ + public com.google.protobuf.ByteString + getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The fully qualified name of the showcase method to be invoked.
+         * 
+ * + * string method = 1; + * @param value The method to set. + * @return This builder for chaining. + */ + public Builder setMethod( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + method_ = value; + onChanged(); + return this; + } + /** + *
+         * The fully qualified name of the showcase method to be invoked.
+         * 
+ * + * string method = 1; + * @return This builder for chaining. + */ + public Builder clearMethod() { + + method_ = getDefaultInstance().getMethod(); + onChanged(); + return this; + } + /** + *
+         * The fully qualified name of the showcase method to be invoked.
+         * 
+ * + * string method = 1; + * @param value The bytes for method to set. + * @return This builder for chaining. + */ + public Builder setMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + method_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString serializedRequest_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * The request to be made if a specific request is necessary.
+         * 
+ * + * bytes serialized_request = 2; + * @return The serializedRequest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerializedRequest() { + return serializedRequest_; + } + /** + *
+         * The request to be made if a specific request is necessary.
+         * 
+ * + * bytes serialized_request = 2; + * @param value The serializedRequest to set. + * @return This builder for chaining. + */ + public Builder setSerializedRequest(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + serializedRequest_ = value; + onChanged(); + return this; + } + /** + *
+         * The request to be made if a specific request is necessary.
+         * 
+ * + * bytes serialized_request = 2; + * @return This builder for chaining. + */ + public Builder clearSerializedRequest() { + + serializedRequest_ = getDefaultInstance().getSerializedRequest(); + 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.showcase.v1beta1.Test.Blueprint.Invocation) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Test.Blueprint.Invocation) + private static final com.google.showcase.v1beta1.Test.Blueprint.Invocation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Test.Blueprint.Invocation(); + } + + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Invocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Invocation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * The name of this blueprint.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * The name of this blueprint.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+     * A description of this blueprint.
+     * 
+ * + * string description = 2; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+     * A description of this blueprint.
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_FIELD_NUMBER = 3; + private com.google.showcase.v1beta1.Test.Blueprint.Invocation request_; + /** + *
+     * The initial request to trigger this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * @return Whether the request field is set. + */ + @java.lang.Override + public boolean hasRequest() { + return request_ != null; + } + /** + *
+     * The initial request to trigger this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * @return The request. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest() { + return request_ == null ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + } + /** + *
+     * The initial request to trigger this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int ADDITIONAL_REQUESTS_FIELD_NUMBER = 4; + private java.util.List additionalRequests_; + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + @java.lang.Override + public java.util.List getAdditionalRequestsList() { + return additionalRequests_; + } + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + @java.lang.Override + public java.util.List + getAdditionalRequestsOrBuilderList() { + return additionalRequests_; + } + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + @java.lang.Override + public int getAdditionalRequestsCount() { + return additionalRequests_.size(); + } + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index) { + return additionalRequests_.get(index); + } + /** + *
+     * An ordered list of method calls that can be called to trigger this test.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequestsOrBuilder( + int index) { + return additionalRequests_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (request_ != null) { + output.writeMessage(3, getRequest()); + } + for (int i = 0; i < additionalRequests_.size(); i++) { + output.writeMessage(4, additionalRequests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRequest()); + } + for (int i = 0; i < additionalRequests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, additionalRequests_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Test.Blueprint)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Test.Blueprint other = (com.google.showcase.v1beta1.Test.Blueprint) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getAdditionalRequestsList() + .equals(other.getAdditionalRequestsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (getAdditionalRequestsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test.Blueprint 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.showcase.v1beta1.Test.Blueprint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test.Blueprint 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.showcase.v1beta1.Test.Blueprint 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 blueprint is an explicit definition of methods and requests that are needed
+     * to be made to test this specific test case. Ideally this would be represented
+     * by something more robust like CEL, but as of writing this, I am unsure if CEL
+     * is ready.
+     * 
+ * + * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Test.Blueprint) + com.google.showcase.v1beta1.Test.BlueprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Test.Blueprint.class, com.google.showcase.v1beta1.Test.Blueprint.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Test.Blueprint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAdditionalRequestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (additionalRequestsBuilder_ == null) { + additionalRequests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + additionalRequestsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint build() { + com.google.showcase.v1beta1.Test.Blueprint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint buildPartial() { + com.google.showcase.v1beta1.Test.Blueprint result = new com.google.showcase.v1beta1.Test.Blueprint(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (additionalRequestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + additionalRequests_ = java.util.Collections.unmodifiableList(additionalRequests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.additionalRequests_ = additionalRequests_; + } else { + result.additionalRequests_ = additionalRequestsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Test.Blueprint) { + return mergeFrom((com.google.showcase.v1beta1.Test.Blueprint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Test.Blueprint other) { + if (other == com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (additionalRequestsBuilder_ == null) { + if (!other.additionalRequests_.isEmpty()) { + if (additionalRequests_.isEmpty()) { + additionalRequests_ = other.additionalRequests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdditionalRequestsIsMutable(); + additionalRequests_.addAll(other.additionalRequests_); + } + onChanged(); + } + } else { + if (!other.additionalRequests_.isEmpty()) { + if (additionalRequestsBuilder_.isEmpty()) { + additionalRequestsBuilder_.dispose(); + additionalRequestsBuilder_ = null; + additionalRequests_ = other.additionalRequests_; + bitField0_ = (bitField0_ & ~0x00000001); + additionalRequestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdditionalRequestsFieldBuilder() : null; + } else { + additionalRequestsBuilder_.addAllMessages(other.additionalRequests_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Test.Blueprint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Test.Blueprint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * The name of this blueprint.
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of this blueprint.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of this blueprint.
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of this blueprint.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of this blueprint.
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * A description of this blueprint.
+       * 
+ * + * string description = 2; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A description of this blueprint.
+       * 
+ * + * string description = 2; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A description of this blueprint.
+       * 
+ * + * string description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * A description of this blueprint.
+       * 
+ * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * A description of this blueprint.
+       * 
+ * + * string description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.Test.Blueprint.Invocation request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> requestBuilder_; + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * @return The request. + */ + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + public Builder setRequest(com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + public Builder setRequest( + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + public Builder mergeRequest(com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.showcase.v1beta1.Test.Blueprint.Invocation.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + } + } + /** + *
+       * The initial request to trigger this test.
+       * 
+ * + * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.util.List additionalRequests_ = + java.util.Collections.emptyList(); + private void ensureAdditionalRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + additionalRequests_ = new java.util.ArrayList(additionalRequests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> additionalRequestsBuilder_; + + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public java.util.List getAdditionalRequestsList() { + if (additionalRequestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalRequests_); + } else { + return additionalRequestsBuilder_.getMessageList(); + } + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public int getAdditionalRequestsCount() { + if (additionalRequestsBuilder_ == null) { + return additionalRequests_.size(); + } else { + return additionalRequestsBuilder_.getCount(); + } + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index) { + if (additionalRequestsBuilder_ == null) { + return additionalRequests_.get(index); + } else { + return additionalRequestsBuilder_.getMessage(index); + } + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder setAdditionalRequests( + int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { + if (additionalRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalRequestsIsMutable(); + additionalRequests_.set(index, value); + onChanged(); + } else { + additionalRequestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder setAdditionalRequests( + int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { + if (additionalRequestsBuilder_ == null) { + ensureAdditionalRequestsIsMutable(); + additionalRequests_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalRequestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder addAdditionalRequests(com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { + if (additionalRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalRequestsIsMutable(); + additionalRequests_.add(value); + onChanged(); + } else { + additionalRequestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder addAdditionalRequests( + int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { + if (additionalRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalRequestsIsMutable(); + additionalRequests_.add(index, value); + onChanged(); + } else { + additionalRequestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder addAdditionalRequests( + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { + if (additionalRequestsBuilder_ == null) { + ensureAdditionalRequestsIsMutable(); + additionalRequests_.add(builderForValue.build()); + onChanged(); + } else { + additionalRequestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder addAdditionalRequests( + int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { + if (additionalRequestsBuilder_ == null) { + ensureAdditionalRequestsIsMutable(); + additionalRequests_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalRequestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder addAllAdditionalRequests( + java.lang.Iterable values) { + if (additionalRequestsBuilder_ == null) { + ensureAdditionalRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalRequests_); + onChanged(); + } else { + additionalRequestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder clearAdditionalRequests() { + if (additionalRequestsBuilder_ == null) { + additionalRequests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + additionalRequestsBuilder_.clear(); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public Builder removeAdditionalRequests(int index) { + if (additionalRequestsBuilder_ == null) { + ensureAdditionalRequestsIsMutable(); + additionalRequests_.remove(index); + onChanged(); + } else { + additionalRequestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder getAdditionalRequestsBuilder( + int index) { + return getAdditionalRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequestsOrBuilder( + int index) { + if (additionalRequestsBuilder_ == null) { + return additionalRequests_.get(index); } else { + return additionalRequestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public java.util.List + getAdditionalRequestsOrBuilderList() { + if (additionalRequestsBuilder_ != null) { + return additionalRequestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalRequests_); + } + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder addAdditionalRequestsBuilder() { + return getAdditionalRequestsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()); + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder addAdditionalRequestsBuilder( + int index) { + return getAdditionalRequestsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()); + } + /** + *
+       * An ordered list of method calls that can be called to trigger this test.
+       * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + */ + public java.util.List + getAdditionalRequestsBuilderList() { + return getAdditionalRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + getAdditionalRequestsFieldBuilder() { + if (additionalRequestsBuilder_ == null) { + additionalRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder>( + additionalRequests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + additionalRequests_ = null; + } + return additionalRequestsBuilder_; + } + @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.showcase.v1beta1.Test.Blueprint) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Test.Blueprint) + private static final com.google.showcase.v1beta1.Test.Blueprint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Test.Blueprint(); + } + + public static com.google.showcase.v1beta1.Test.Blueprint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blueprint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTATION_LEVEL_FIELD_NUMBER = 2; + private int expectationLevel_; + /** + *
+   * The expectation level for this test.
+   * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return The enum numeric value on the wire for expectationLevel. + */ + @java.lang.Override public int getExpectationLevelValue() { + return expectationLevel_; + } + /** + *
+   * The expectation level for this test.
+   * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return The expectationLevel. + */ + @java.lang.Override public com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Test.ExpectationLevel result = com.google.showcase.v1beta1.Test.ExpectationLevel.valueOf(expectationLevel_); + return result == null ? com.google.showcase.v1beta1.Test.ExpectationLevel.UNRECOGNIZED : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+   * A description of the test.
+   * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+   * A description of the test.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 4; + private java.util.List blueprints_; + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + return blueprints_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (expectationLevel_ != com.google.showcase.v1beta1.Test.ExpectationLevel.EXPECTATION_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(2, expectationLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(4, blueprints_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (expectationLevel_ != com.google.showcase.v1beta1.Test.ExpectationLevel.EXPECTATION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, expectationLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, blueprints_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.Test)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.Test other = (com.google.showcase.v1beta1.Test) obj; + + if (!getName() + .equals(other.getName())) return false; + if (expectationLevel_ != other.expectationLevel_) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getBlueprintsList() + .equals(other.getBlueprintsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXPECTATION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + expectationLevel_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.Test parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.Test parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test 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.showcase.v1beta1.Test parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.Test parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.Test 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.showcase.v1beta1.Test 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.Test} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Test) + com.google.showcase.v1beta1.TestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.Test.class, com.google.showcase.v1beta1.Test.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.Test.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlueprintsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + expectationLevel_ = 0; + + description_ = ""; + + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test getDefaultInstanceForType() { + return com.google.showcase.v1beta1.Test.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test build() { + com.google.showcase.v1beta1.Test result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test buildPartial() { + com.google.showcase.v1beta1.Test result = new com.google.showcase.v1beta1.Test(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.expectationLevel_ = expectationLevel_; + result.description_ = description_; + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.Test) { + return mergeFrom((com.google.showcase.v1beta1.Test)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.Test other) { + if (other == com.google.showcase.v1beta1.Test.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.expectationLevel_ != 0) { + setExpectationLevelValue(other.getExpectationLevelValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlueprintsFieldBuilder() : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.Test parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.Test) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int expectationLevel_ = 0; + /** + *
+     * The expectation level for this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return The enum numeric value on the wire for expectationLevel. + */ + @java.lang.Override public int getExpectationLevelValue() { + return expectationLevel_; + } + /** + *
+     * The expectation level for this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @param value The enum numeric value on the wire for expectationLevel to set. + * @return This builder for chaining. + */ + public Builder setExpectationLevelValue(int value) { + + expectationLevel_ = value; + onChanged(); + return this; + } + /** + *
+     * The expectation level for this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return The expectationLevel. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel() { + @SuppressWarnings("deprecation") + com.google.showcase.v1beta1.Test.ExpectationLevel result = com.google.showcase.v1beta1.Test.ExpectationLevel.valueOf(expectationLevel_); + return result == null ? com.google.showcase.v1beta1.Test.ExpectationLevel.UNRECOGNIZED : result; + } + /** + *
+     * The expectation level for this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @param value The expectationLevel to set. + * @return This builder for chaining. + */ + public Builder setExpectationLevel(com.google.showcase.v1beta1.Test.ExpectationLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + expectationLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The expectation level for this test.
+     * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return This builder for chaining. + */ + public Builder clearExpectationLevel() { + + expectationLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * A description of the test.
+     * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A description of the test.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A description of the test.
+     * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * A description of the test.
+     * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * A description of the test.
+     * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.util.List blueprints_ = + java.util.Collections.emptyList(); + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = new java.util.ArrayList(blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint, com.google.showcase.v1beta1.Test.Blueprint.Builder, com.google.showcase.v1beta1.Test.BlueprintOrBuilder> blueprintsBuilder_; + + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder setBlueprints( + int index, com.google.showcase.v1beta1.Test.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder setBlueprints( + int index, com.google.showcase.v1beta1.Test.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder addBlueprints(com.google.showcase.v1beta1.Test.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder addBlueprints( + int index, com.google.showcase.v1beta1.Test.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder addBlueprints( + com.google.showcase.v1beta1.Test.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder addBlueprints( + int index, com.google.showcase.v1beta1.Test.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Builder getBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder().addBuilder( + com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance()); + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder().addBuilder( + index, com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance()); + } + /** + *
+     * The blueprints that will satisfy this test. There may be multiple blueprints
+     * that can signal to the server that this test case is being exercised. Although
+     * multiple blueprints are specified, only a single blueprint needs to be run to
+     * signal that the test case was exercised.
+     * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint, com.google.showcase.v1beta1.Test.Blueprint.Builder, com.google.showcase.v1beta1.Test.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint, com.google.showcase.v1beta1.Test.Blueprint.Builder, com.google.showcase.v1beta1.Test.BlueprintOrBuilder>( + blueprints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + @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.showcase.v1beta1.Test) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Test) + private static final com.google.showcase.v1beta1.Test DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Test(); + } + + public static com.google.showcase.v1beta1.Test getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Test parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Test(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.Test getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java new file mode 100644 index 0000000000..fb2855113a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java @@ -0,0 +1,191 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 TestName implements ResourceName { + private static final PathTemplate SESSION_TEST = + PathTemplate.createWithoutUrlEncoding("sessions/{session}/tests/{test}"); + private volatile Map fieldValuesMap; + private final String session; + private final String test; + + @Deprecated + protected TestName() { + session = null; + test = null; + } + + private TestName(Builder builder) { + session = Preconditions.checkNotNull(builder.getSession()); + test = Preconditions.checkNotNull(builder.getTest()); + } + + public String getSession() { + return session; + } + + public String getTest() { + return test; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TestName of(String session, String test) { + return newBuilder().setSession(session).setTest(test).build(); + } + + public static String format(String session, String test) { + return newBuilder().setSession(session).setTest(test).build().toString(); + } + + public static TestName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SESSION_TEST.validatedMatch( + formattedString, "TestName.parse: formattedString not in valid format"); + return of(matchMap.get("session"), matchMap.get("test")); + } + + 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 (TestName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SESSION_TEST.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (session != null) { + fieldMapBuilder.put("session", session); + } + if (test != null) { + fieldMapBuilder.put("test", test); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SESSION_TEST.instantiate("session", session, "test", test); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TestName that = ((TestName) o); + return Objects.equals(this.session, that.session) && Objects.equals(this.test, that.test); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(session); + h *= 1000003; + h ^= Objects.hashCode(test); + return h; + } + + /** Builder for sessions/{session}/tests/{test}. */ + public static class Builder { + private String session; + private String test; + + protected Builder() {} + + public String getSession() { + return session; + } + + public String getTest() { + return test; + } + + public Builder setSession(String session) { + this.session = session; + return this; + } + + public Builder setTest(String test) { + this.test = test; + return this; + } + + private Builder(TestName testName) { + this.session = testName.session; + this.test = testName.test; + } + + public TestName build() { + return new TestName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java new file mode 100644 index 0000000000..54a88bc62a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface TestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Test) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The expectation level for this test.
+   * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return The enum numeric value on the wire for expectationLevel. + */ + int getExpectationLevelValue(); + /** + *
+   * The expectation level for this test.
+   * 
+ * + * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * @return The expectationLevel. + */ + com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel(); + + /** + *
+   * A description of the test.
+   * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * A description of the test.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + java.util.List + getBlueprintsList(); + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index); + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + int getBlueprintsCount(); + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + *
+   * The blueprints that will satisfy this test. There may be multiple blueprints
+   * that can signal to the server that this test case is being exercised. Although
+   * multiple blueprints are specified, only a single blueprint needs to be run to
+   * signal that the test case was exercised.
+   * 
+ * + * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4; + */ + com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java new file mode 100644 index 0000000000..f83126f72c --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java @@ -0,0 +1,845 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * A TestRun is the result of running a Test.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.TestRun} + */ +public final class TestRun extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.TestRun) + TestRunOrBuilder { +private static final long serialVersionUID = 0L; + // Use TestRun.newBuilder() to construct. + private TestRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TestRun() { + test_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TestRun(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TestRun( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + test_ = s; + break; + } + case 18: { + com.google.showcase.v1beta1.Issue.Builder subBuilder = null; + if (issue_ != null) { + subBuilder = issue_.toBuilder(); + } + issue_ = input.readMessage(com.google.showcase.v1beta1.Issue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(issue_); + issue_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.TestRun.class, com.google.showcase.v1beta1.TestRun.Builder.class); + } + + public static final int TEST_FIELD_NUMBER = 1; + private volatile java.lang.Object test_; + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return The test. + */ + @java.lang.Override + public java.lang.String getTest() { + java.lang.Object ref = test_; + 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(); + test_ = s; + return s; + } + } + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for test. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTestBytes() { + java.lang.Object ref = test_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + test_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISSUE_FIELD_NUMBER = 2; + private com.google.showcase.v1beta1.Issue issue_; + /** + *
+   * An issue found with the test run. If empty, this test run was successful.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + * @return Whether the issue field is set. + */ + @java.lang.Override + public boolean hasIssue() { + return issue_ != null; + } + /** + *
+   * An issue found with the test run. If empty, this test run was successful.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + * @return The issue. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Issue getIssue() { + return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + } + /** + *
+   * An issue found with the test run. If empty, this test run was successful.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { + return getIssue(); + } + + 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(test_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, test_); + } + if (issue_ != null) { + output.writeMessage(2, getIssue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(test_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, test_); + } + if (issue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIssue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.TestRun)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.TestRun other = (com.google.showcase.v1beta1.TestRun) obj; + + if (!getTest() + .equals(other.getTest())) return false; + if (hasIssue() != other.hasIssue()) return false; + if (hasIssue()) { + if (!getIssue() + .equals(other.getIssue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEST_FIELD_NUMBER; + hash = (53 * hash) + getTest().hashCode(); + if (hasIssue()) { + hash = (37 * hash) + ISSUE_FIELD_NUMBER; + hash = (53 * hash) + getIssue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.TestRun parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.TestRun parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.TestRun parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.TestRun parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.TestRun parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.TestRun parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.TestRun parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.TestRun 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.showcase.v1beta1.TestRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.TestRun parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.TestRun parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.TestRun 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.showcase.v1beta1.TestRun 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 TestRun is the result of running a Test.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.TestRun} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.TestRun) + com.google.showcase.v1beta1.TestRunOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.TestRun.class, com.google.showcase.v1beta1.TestRun.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.TestRun.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + test_ = ""; + + if (issueBuilder_ == null) { + issue_ = null; + } else { + issue_ = null; + issueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.TestRun getDefaultInstanceForType() { + return com.google.showcase.v1beta1.TestRun.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.TestRun build() { + com.google.showcase.v1beta1.TestRun result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.TestRun buildPartial() { + com.google.showcase.v1beta1.TestRun result = new com.google.showcase.v1beta1.TestRun(this); + result.test_ = test_; + if (issueBuilder_ == null) { + result.issue_ = issue_; + } else { + result.issue_ = issueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.TestRun) { + return mergeFrom((com.google.showcase.v1beta1.TestRun)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.TestRun other) { + if (other == com.google.showcase.v1beta1.TestRun.getDefaultInstance()) return this; + if (!other.getTest().isEmpty()) { + test_ = other.test_; + onChanged(); + } + if (other.hasIssue()) { + mergeIssue(other.getIssue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.TestRun parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.TestRun) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object test_ = ""; + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return The test. + */ + public java.lang.String getTest() { + java.lang.Object ref = test_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + test_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for test. + */ + public com.google.protobuf.ByteString + getTestBytes() { + java.lang.Object ref = test_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + test_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @param value The test to set. + * @return This builder for chaining. + */ + public Builder setTest( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + test_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearTest() { + + test_ = getDefaultInstance().getTest(); + onChanged(); + return this; + } + /** + *
+     * The name of the test.
+     * The tests/* portion of the names are hard-coded, and do not change
+     * from session to session.
+     * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for test to set. + * @return This builder for chaining. + */ + public Builder setTestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + test_ = value; + onChanged(); + return this; + } + + private com.google.showcase.v1beta1.Issue issue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> issueBuilder_; + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + * @return Whether the issue field is set. + */ + public boolean hasIssue() { + return issueBuilder_ != null || issue_ != null; + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + * @return The issue. + */ + public com.google.showcase.v1beta1.Issue getIssue() { + if (issueBuilder_ == null) { + return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + } else { + return issueBuilder_.getMessage(); + } + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + public Builder setIssue(com.google.showcase.v1beta1.Issue value) { + if (issueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + issue_ = value; + onChanged(); + } else { + issueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + public Builder setIssue( + com.google.showcase.v1beta1.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + issue_ = builderForValue.build(); + onChanged(); + } else { + issueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + public Builder mergeIssue(com.google.showcase.v1beta1.Issue value) { + if (issueBuilder_ == null) { + if (issue_ != null) { + issue_ = + com.google.showcase.v1beta1.Issue.newBuilder(issue_).mergeFrom(value).buildPartial(); + } else { + issue_ = value; + } + onChanged(); + } else { + issueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + public Builder clearIssue() { + if (issueBuilder_ == null) { + issue_ = null; + onChanged(); + } else { + issue_ = null; + issueBuilder_ = null; + } + + return this; + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + public com.google.showcase.v1beta1.Issue.Builder getIssueBuilder() { + + onChanged(); + return getIssueFieldBuilder().getBuilder(); + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { + if (issueBuilder_ != null) { + return issueBuilder_.getMessageOrBuilder(); + } else { + return issue_ == null ? + com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + } + } + /** + *
+     * An issue found with the test run. If empty, this test run was successful.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> + getIssueFieldBuilder() { + if (issueBuilder_ == null) { + issueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder>( + getIssue(), + getParentForChildren(), + isClean()); + issue_ = null; + } + return issueBuilder_; + } + @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.showcase.v1beta1.TestRun) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.TestRun) + private static final com.google.showcase.v1beta1.TestRun DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.TestRun(); + } + + public static com.google.showcase.v1beta1.TestRun getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TestRun(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.TestRun getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java new file mode 100644 index 0000000000..e562eb82fc --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface TestRunOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.TestRun) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return The test. + */ + java.lang.String getTest(); + /** + *
+   * The name of the test.
+   * The tests/* portion of the names are hard-coded, and do not change
+   * from session to session.
+   * 
+ * + * string test = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for test. + */ + com.google.protobuf.ByteString + getTestBytes(); + + /** + *
+   * An issue found with the test run. If empty, this test run was successful.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + * @return Whether the issue field is set. + */ + boolean hasIssue(); + /** + *
+   * An issue found with the test run. If empty, this test run was successful.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + * @return The issue. + */ + com.google.showcase.v1beta1.Issue getIssue(); + /** + *
+   * An issue found with the test run. If empty, this test run was successful.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 2; + */ + com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java new file mode 100644 index 0000000000..1dde804ac5 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java @@ -0,0 +1,345 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public final class TestingOuterClass { + private TestingOuterClass() {} + 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_showcase_v1beta1_Session_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Session_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Test_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Test_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Issue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_TestRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_VerifyTestResponse_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,schema/google/showcase/v1beta1/testing" + + ".proto\022\027google.showcase.v1beta1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\031google/api/resource.proto\032\033googl" + + "e/protobuf/empty.proto\"\311\001\n\007Session\022\014\n\004na" + + "me\030\001 \001(\t\0229\n\007version\030\002 \001(\0162(.google.showc" + + "ase.v1beta1.Session.Version\";\n\007Version\022\027" + + "\n\023VERSION_UNSPECIFIED\020\000\022\r\n\tV1_LATEST\020\001\022\010" + + "\n\004V1_0\020\002:8\352A5\n\037showcase.googleapis.com/S" + + "ession\022\022sessions/{session}\"I\n\024CreateSess" + + "ionRequest\0221\n\007session\030\001 \001(\0132 .google.sho" + + "wcase.v1beta1.Session\"G\n\021GetSessionReque" + + "st\0222\n\004name\030\001 \001(\tB$\372A!\n\037showcase.googleap" + + "is.com/Session\"<\n\023ListSessionsRequest\022\021\n" + + "\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"c\n\024" + + "ListSessionsResponse\0222\n\010sessions\030\001 \003(\0132 " + + ".google.showcase.v1beta1.Session\022\027\n\017next" + + "_page_token\030\002 \001(\t\"J\n\024DeleteSessionReques" + + "t\0222\n\004name\030\001 \001(\tB$\372A!\n\037showcase.googleapi" + + "s.com/Session\"J\n\024ReportSessionRequest\0222\n" + + "\004name\030\001 \001(\tB$\372A!\n\037showcase.googleapis.co" + + "m/Session\"\335\001\n\025ReportSessionResponse\022E\n\006r" + + "esult\030\001 \001(\01625.google.showcase.v1beta1.Re" + + "portSessionResponse.Result\0223\n\ttest_runs\030" + + "\002 \003(\0132 .google.showcase.v1beta1.TestRun\"" + + "H\n\006Result\022\026\n\022RESULT_UNSPECIFIED\020\000\022\n\n\006PAS" + + "SED\020\001\022\n\n\006FAILED\020\002\022\016\n\nINCOMPLETE\020\003\"\272\005\n\004Te" + + "st\022\014\n\004name\030\001 \001(\t\022I\n\021expectation_level\030\002 " + + "\001(\0162..google.showcase.v1beta1.Test.Expec" + + "tationLevel\022\023\n\013description\030\003 \001(\t\022;\n\nblue" + + "prints\030\004 \003(\0132\'.google.showcase.v1beta1.T" + + "est.Blueprint\032\336\002\n\tBlueprint\022\014\n\004name\030\001 \001(" + + "\t\022\023\n\013description\030\002 \001(\t\022C\n\007request\030\003 \001(\0132" + + "2.google.showcase.v1beta1.Test.Blueprint" + + ".Invocation\022O\n\023additional_requests\030\004 \003(\013" + + "22.google.showcase.v1beta1.Test.Blueprin" + + "t.Invocation\0328\n\nInvocation\022\016\n\006method\030\001 \001" + + "(\t\022\032\n\022serialized_request\030\002 \001(\014:^\352A[\n!sho" + + "wcase.googleapis.com/Blueprint\0226sessions" + + "/{session}/tests/{test}/blueprints/{blue" + + "print}\"b\n\020ExpectationLevel\022!\n\035EXPECTATIO" + + "N_LEVEL_UNSPECIFIED\020\000\022\014\n\010REQUIRED\020\001\022\017\n\013R" + + "ECOMMENDED\020\002\022\014\n\010OPTIONAL\020\003:B\352A?\n\034showcas" + + "e.googleapis.com/Test\022\037sessions/{session" + + "}/tests/{test}\"\234\002\n\005Issue\0221\n\004type\030\001 \001(\0162#" + + ".google.showcase.v1beta1.Issue.Type\0229\n\010s" + + "everity\030\002 \001(\0162\'.google.showcase.v1beta1." + + "Issue.Severity\022\023\n\013description\030\003 \001(\t\"R\n\004T" + + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007SKIPPED\020\001\022\013" + + "\n\007PENDING\020\002\022\032\n\026INCORRECT_CONFIRMATION\020\003\"" + + "<\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\t\n" + + "\005ERROR\020\001\022\013\n\007WARNING\020\002\"o\n\020ListTestsReques" + + "t\0224\n\006parent\030\001 \001(\tB$\372A!\n\037showcase.googlea" + + "pis.com/Session\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"Z\n\021ListTestsResponse\022,\n\005t" + + "ests\030\001 \003(\0132\035.google.showcase.v1beta1.Tes" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"i\n\007TestRun\022/\n" + + "\004test\030\001 \001(\tB!\372A\036\n\034showcase.googleapis.co" + + "m/Test\022-\n\005issue\030\002 \001(\0132\036.google.showcase." + + "v1beta1.Issue\"D\n\021DeleteTestRequest\022/\n\004na" + + "me\030\001 \001(\tB!\372A\036\n\034showcase.googleapis.com/T" + + "est\"e\n\021VerifyTestRequest\022/\n\004name\030\001 \001(\tB!" + + "\372A\036\n\034showcase.googleapis.com/Test\022\016\n\006ans" + + "wer\030\002 \001(\014\022\017\n\007answers\030\003 \003(\014\"C\n\022VerifyTest" + + "Response\022-\n\005issue\030\001 \001(\0132\036.google.showcas" + + "e.v1beta1.Issue2\355\010\n\007Testing\022\204\001\n\rCreateSe" + + "ssion\022-.google.showcase.v1beta1.CreateSe" + + "ssionRequest\032 .google.showcase.v1beta1.S" + + "ession\"\"\202\323\344\223\002\034\"\021/v1beta1/sessions:\007sessi" + + "on\022~\n\nGetSession\022*.google.showcase.v1bet" + + "a1.GetSessionRequest\032 .google.showcase.v" + + "1beta1.Session\"\"\202\323\344\223\002\034\022\032/v1beta1/{name=s" + + "essions/*}\022\206\001\n\014ListSessions\022,.google.sho" + + "wcase.v1beta1.ListSessionsRequest\032-.goog" + + "le.showcase.v1beta1.ListSessionsResponse" + + "\"\031\202\323\344\223\002\023\022\021/v1beta1/sessions\022z\n\rDeleteSes" + + "sion\022-.google.showcase.v1beta1.DeleteSes" + + "sionRequest\032\026.google.protobuf.Empty\"\"\202\323\344" + + "\223\002\034*\032/v1beta1/{name=sessions/*}\022\231\001\n\rRepo" + + "rtSession\022-.google.showcase.v1beta1.Repo" + + "rtSessionRequest\032..google.showcase.v1bet" + + "a1.ReportSessionResponse\")\202\323\344\223\002#\"!/v1bet" + + "a1/{name=sessions/*}:report\022\216\001\n\tListTest" + + "s\022).google.showcase.v1beta1.ListTestsReq" + + "uest\032*.google.showcase.v1beta1.ListTests" + + "Response\"*\202\323\344\223\002$\022\"/v1beta1/{parent=sessi" + + "ons/*}/tests\022|\n\nDeleteTest\022*.google.show" + + "case.v1beta1.DeleteTestRequest\032\026.google." + + "protobuf.Empty\"*\202\323\344\223\002$*\"/v1beta1/{name=s" + + "essions/*/tests/*}\022\227\001\n\nVerifyTest\022*.goog" + + "le.showcase.v1beta1.VerifyTestRequest\032+." + + "google.showcase.v1beta1.VerifyTestRespon" + + "se\"0\202\323\344\223\002*\"(/v1beta1/{name=sessions/*/te" + + "sts/*}:check\032\021\312A\016localhost:7469Bq\n\033com.g" + + "oogle.showcase.v1beta1P\001Z4github.com/goo" + + "gleapis/gapic-showcase/server/genproto\352\002" + + "\031Google::Showcase::V1beta1b\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.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_Session_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_Session_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Session_descriptor, + new java.lang.String[] { "Name", "Version", }); + internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor, + new java.lang.String[] { "Session", }); + internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor, + new java.lang.String[] { "Sessions", "NextPageToken", }); + internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor, + new java.lang.String[] { "Result", "TestRuns", }); + internal_static_google_showcase_v1beta1_Test_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_Test_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Test_descriptor, + new java.lang.String[] { "Name", "ExpectationLevel", "Description", "Blueprints", }); + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor = + internal_static_google_showcase_v1beta1_Test_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor, + new java.lang.String[] { "Name", "Description", "Request", "AdditionalRequests", }); + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor = + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor, + new java.lang.String[] { "Method", "SerializedRequest", }); + internal_static_google_showcase_v1beta1_Issue_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Issue_descriptor, + new java.lang.String[] { "Type", "Severity", "Description", }); + internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor, + new java.lang.String[] { "Tests", "NextPageToken", }); + internal_static_google_showcase_v1beta1_TestRun_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_TestRun_descriptor, + new java.lang.String[] { "Test", "Issue", }); + internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor, + new java.lang.String[] { "Name", "Answer", "Answers", }); + internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor, + new java.lang.String[] { "Issue", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java new file mode 100644 index 0000000000..3a0e37969d --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java @@ -0,0 +1,915 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\UpdateBlurb
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.UpdateBlurbRequest} + */ +public final class UpdateBlurbRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.UpdateBlurbRequest) + UpdateBlurbRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateBlurbRequest.newBuilder() to construct. + private UpdateBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateBlurbRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateBlurbRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateBlurbRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Blurb.Builder subBuilder = null; + if (blurb_ != null) { + subBuilder = blurb_.toBuilder(); + } + blurb_ = input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blurb_); + blurb_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.UpdateBlurbRequest.class, com.google.showcase.v1beta1.UpdateBlurbRequest.Builder.class); + } + + public static final int BLURB_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Blurb blurb_; + /** + *
+   * The blurb to update.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return Whether the blurb field is set. + */ + @java.lang.Override + public boolean hasBlurb() { + return blurb_ != null; + } + /** + *
+   * The blurb to update.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return The blurb. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Blurb getBlurb() { + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } + /** + *
+   * The blurb to update.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + return getBlurb(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * The field mask to determine wich fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * The field mask to determine wich fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * The field mask to determine wich fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (blurb_ != null) { + output.writeMessage(1, getBlurb()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blurb_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBlurb()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.UpdateBlurbRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.UpdateBlurbRequest other = (com.google.showcase.v1beta1.UpdateBlurbRequest) obj; + + if (hasBlurb() != other.hasBlurb()) return false; + if (hasBlurb()) { + if (!getBlurb() + .equals(other.getBlurb())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlurb()) { + hash = (37 * hash) + BLURB_FIELD_NUMBER; + hash = (53 * hash) + getBlurb().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest 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.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateBlurbRequest 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.showcase.v1beta1.UpdateBlurbRequest 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 request message for the google.showcase.v1beta1.Messaging\UpdateBlurb
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.UpdateBlurbRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.UpdateBlurbRequest) + com.google.showcase.v1beta1.UpdateBlurbRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.UpdateBlurbRequest.class, com.google.showcase.v1beta1.UpdateBlurbRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.UpdateBlurbRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (blurbBuilder_ == null) { + blurb_ = null; + } else { + blurb_ = null; + blurbBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateBlurbRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.UpdateBlurbRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateBlurbRequest build() { + com.google.showcase.v1beta1.UpdateBlurbRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateBlurbRequest buildPartial() { + com.google.showcase.v1beta1.UpdateBlurbRequest result = new com.google.showcase.v1beta1.UpdateBlurbRequest(this); + if (blurbBuilder_ == null) { + result.blurb_ = blurb_; + } else { + result.blurb_ = blurbBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.UpdateBlurbRequest) { + return mergeFrom((com.google.showcase.v1beta1.UpdateBlurbRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.UpdateBlurbRequest other) { + if (other == com.google.showcase.v1beta1.UpdateBlurbRequest.getDefaultInstance()) return this; + if (other.hasBlurb()) { + mergeBlurb(other.getBlurb()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.UpdateBlurbRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.UpdateBlurbRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Blurb blurb_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_; + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return Whether the blurb field is set. + */ + public boolean hasBlurb() { + return blurbBuilder_ != null || blurb_ != null; + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return The blurb. + */ + public com.google.showcase.v1beta1.Blurb getBlurb() { + if (blurbBuilder_ == null) { + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } else { + return blurbBuilder_.getMessage(); + } + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blurb_ = value; + onChanged(); + } else { + blurbBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder setBlurb( + com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + if (blurbBuilder_ == null) { + blurb_ = builderForValue.build(); + onChanged(); + } else { + blurbBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { + if (blurbBuilder_ == null) { + if (blurb_ != null) { + blurb_ = + com.google.showcase.v1beta1.Blurb.newBuilder(blurb_).mergeFrom(value).buildPartial(); + } else { + blurb_ = value; + } + onChanged(); + } else { + blurbBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public Builder clearBlurb() { + if (blurbBuilder_ == null) { + blurb_ = null; + onChanged(); + } else { + blurb_ = null; + blurbBuilder_ = null; + } + + return this; + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { + + onChanged(); + return getBlurbFieldBuilder().getBuilder(); + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { + if (blurbBuilder_ != null) { + return blurbBuilder_.getMessageOrBuilder(); + } else { + return blurb_ == null ? + com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + } + } + /** + *
+     * The blurb to update.
+     * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + getBlurbFieldBuilder() { + if (blurbBuilder_ == null) { + blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( + getBlurb(), + getParentForChildren(), + isClean()); + blurb_ = null; + } + return blurbBuilder_; + } + + 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_; + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * The field mask to determine wich fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + 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.showcase.v1beta1.UpdateBlurbRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.UpdateBlurbRequest) + private static final com.google.showcase.v1beta1.UpdateBlurbRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.UpdateBlurbRequest(); + } + + public static com.google.showcase.v1beta1.UpdateBlurbRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateBlurbRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateBlurbRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java new file mode 100644 index 0000000000..73cd144983 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface UpdateBlurbRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.UpdateBlurbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The blurb to update.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return Whether the blurb field is set. + */ + boolean hasBlurb(); + /** + *
+   * The blurb to update.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + * @return The blurb. + */ + com.google.showcase.v1beta1.Blurb getBlurb(); + /** + *
+   * The blurb to update.
+   * 
+ * + * .google.showcase.v1beta1.Blurb blurb = 1; + */ + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); + + /** + *
+   * The field mask to determine wich fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * The field mask to determine wich fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * The field mask to determine wich fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java new file mode 100644 index 0000000000..d3defe92cd --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java @@ -0,0 +1,915 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Messaging\UpdateRoom
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.UpdateRoomRequest} + */ +public final class UpdateRoomRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.UpdateRoomRequest) + UpdateRoomRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateRoomRequest.newBuilder() to construct. + private UpdateRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateRoomRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateRoomRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateRoomRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(com.google.showcase.v1beta1.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.UpdateRoomRequest.class, com.google.showcase.v1beta1.UpdateRoomRequest.Builder.class); + } + + public static final int ROOM_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Room room_; + /** + *
+   * The room to update.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return Whether the room field is set. + */ + @java.lang.Override + public boolean hasRoom() { + return room_ != null; + } + /** + *
+   * The room to update.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return The room. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Room getRoom() { + return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + } + /** + *
+   * The room to update.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (room_ != null) { + output.writeMessage(1, getRoom()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (room_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRoom()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.UpdateRoomRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.UpdateRoomRequest other = (com.google.showcase.v1beta1.UpdateRoomRequest) obj; + + if (hasRoom() != other.hasRoom()) return false; + if (hasRoom()) { + if (!getRoom() + .equals(other.getRoom())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest 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.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateRoomRequest 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.showcase.v1beta1.UpdateRoomRequest 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 request message for the google.showcase.v1beta1.Messaging\UpdateRoom
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.UpdateRoomRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.UpdateRoomRequest) + com.google.showcase.v1beta1.UpdateRoomRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.UpdateRoomRequest.class, com.google.showcase.v1beta1.UpdateRoomRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.UpdateRoomRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateRoomRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.UpdateRoomRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateRoomRequest build() { + com.google.showcase.v1beta1.UpdateRoomRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateRoomRequest buildPartial() { + com.google.showcase.v1beta1.UpdateRoomRequest result = new com.google.showcase.v1beta1.UpdateRoomRequest(this); + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.UpdateRoomRequest) { + return mergeFrom((com.google.showcase.v1beta1.UpdateRoomRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.UpdateRoomRequest other) { + if (other == com.google.showcase.v1beta1.UpdateRoomRequest.getDefaultInstance()) return this; + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.UpdateRoomRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.UpdateRoomRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Room room_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> roomBuilder_; + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return Whether the room field is set. + */ + public boolean hasRoom() { + return roomBuilder_ != null || room_ != null; + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return The room. + */ + public com.google.showcase.v1beta1.Room getRoom() { + if (roomBuilder_ == null) { + return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder setRoom(com.google.showcase.v1beta1.Room value) { + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder setRoom( + com.google.showcase.v1beta1.Room.Builder builderForValue) { + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder mergeRoom(com.google.showcase.v1beta1.Room value) { + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + com.google.showcase.v1beta1.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + + return this; + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public com.google.showcase.v1beta1.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + } + } + /** + *
+     * The room to update.
+     * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; + } + return roomBuilder_; + } + + 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_; + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + 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.showcase.v1beta1.UpdateRoomRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.UpdateRoomRequest) + private static final com.google.showcase.v1beta1.UpdateRoomRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.UpdateRoomRequest(); + } + + public static com.google.showcase.v1beta1.UpdateRoomRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateRoomRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateRoomRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java new file mode 100644 index 0000000000..fdd96ea574 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +package com.google.showcase.v1beta1; + +public interface UpdateRoomRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.UpdateRoomRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The room to update.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return Whether the room field is set. + */ + boolean hasRoom(); + /** + *
+   * The room to update.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + * @return The room. + */ + com.google.showcase.v1beta1.Room getRoom(); + /** + *
+   * The room to update.
+   * 
+ * + * .google.showcase.v1beta1.Room room = 1; + */ + com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder(); + + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java new file mode 100644 index 0000000000..68d8b179a1 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java @@ -0,0 +1,915 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request message for the google.showcase.v1beta1.Identity\UpdateUser
+ * method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.UpdateUserRequest} + */ +public final class UpdateUserRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.UpdateUserRequest) + UpdateUserRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateUserRequest.newBuilder() to construct. + private UpdateUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateUserRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateUserRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateUserRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.User.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(com.google.showcase.v1beta1.User.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.UpdateUserRequest.class, com.google.showcase.v1beta1.UpdateUserRequest.Builder.class); + } + + public static final int USER_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.User user_; + /** + *
+   * The user to update.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return user_ != null; + } + /** + *
+   * The user to update.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return The user. + */ + @java.lang.Override + public com.google.showcase.v1beta1.User getUser() { + return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + } + /** + *
+   * The user to update.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { + return getUser(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (user_ != null) { + output.writeMessage(1, getUser()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (user_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.UpdateUserRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.UpdateUserRequest other = (com.google.showcase.v1beta1.UpdateUserRequest) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateUserRequest 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.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.UpdateUserRequest 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.showcase.v1beta1.UpdateUserRequest 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 request message for the google.showcase.v1beta1.Identity\UpdateUser
+   * method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.UpdateUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.UpdateUserRequest) + com.google.showcase.v1beta1.UpdateUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.UpdateUserRequest.class, com.google.showcase.v1beta1.UpdateUserRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.UpdateUserRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (userBuilder_ == null) { + user_ = null; + } else { + user_ = null; + userBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateUserRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.UpdateUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateUserRequest build() { + com.google.showcase.v1beta1.UpdateUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateUserRequest buildPartial() { + com.google.showcase.v1beta1.UpdateUserRequest result = new com.google.showcase.v1beta1.UpdateUserRequest(this); + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.UpdateUserRequest) { + return mergeFrom((com.google.showcase.v1beta1.UpdateUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.UpdateUserRequest other) { + if (other == com.google.showcase.v1beta1.UpdateUserRequest.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.UpdateUserRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.UpdateUserRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.User user_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> userBuilder_; + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return userBuilder_ != null || user_ != null; + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return The user. + */ + public com.google.showcase.v1beta1.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder setUser(com.google.showcase.v1beta1.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder setUser( + com.google.showcase.v1beta1.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder mergeUser(com.google.showcase.v1beta1.User value) { + if (userBuilder_ == null) { + if (user_ != null) { + user_ = + com.google.showcase.v1beta1.User.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + user_ = null; + userBuilder_ = null; + } + + return this; + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public com.google.showcase.v1beta1.User.Builder getUserBuilder() { + + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + } + } + /** + *
+     * The user to update.
+     * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + 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_; + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * The field mask to determine which fields are to be updated. If empty, the
+     * server will assume all fields are to be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + 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.showcase.v1beta1.UpdateUserRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.UpdateUserRequest) + private static final com.google.showcase.v1beta1.UpdateUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.UpdateUserRequest(); + } + + public static com.google.showcase.v1beta1.UpdateUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateUserRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.UpdateUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java new file mode 100644 index 0000000000..ff5768e239 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface UpdateUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.UpdateUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The user to update.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + *
+   * The user to update.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + * @return The user. + */ + com.google.showcase.v1beta1.User getUser(); + /** + *
+   * The user to update.
+   * 
+ * + * .google.showcase.v1beta1.User user = 1; + */ + com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder(); + + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * The field mask to determine which fields are to be updated. If empty, the
+   * server will assume all fields are to be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java new file mode 100644 index 0000000000..5eb29fdbbb --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java @@ -0,0 +1,1972 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * A user.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.User} + */ +public final class User extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.User) + UserOrBuilder { +private static final long serialVersionUID = 0L; + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private User() { + name_ = ""; + displayName_ = ""; + email_ = ""; + nickname_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new User(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private User( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + bitField0_ |= 0x00000001; + age_ = input.readInt32(); + break; + } + case 57: { + bitField0_ |= 0x00000002; + heightFeet_ = input.readDouble(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + nickname_ = s; + break; + } + case 72: { + bitField0_ |= 0x00000008; + enableNotifications_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.User.class, com.google.showcase.v1beta1.User.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the user.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The resource name of the user.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *
+   * The display_name of the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + } + /** + *
+   * The display_name of the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 3; + private volatile java.lang.Object email_; + /** + *
+   * The email address of the user.
+   * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + /** + *
+   * The email address of the user.
+   * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * The timestamp at which the user was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * The timestamp at which the user was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * The timestamp at which the user was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * The latest timestamp at which the user was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * The latest timestamp at which the user was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * The latest timestamp at which the user was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int AGE_FIELD_NUMBER = 6; + private int age_; + /** + *
+   * The age of the user in years.
+   * 
+ * + * optional int32 age = 6; + * @return Whether the age field is set. + */ + @java.lang.Override + public boolean hasAge() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The age of the user in years.
+   * 
+ * + * optional int32 age = 6; + * @return The age. + */ + @java.lang.Override + public int getAge() { + return age_; + } + + public static final int HEIGHT_FEET_FIELD_NUMBER = 7; + private double heightFeet_; + /** + *
+   * The height of the user in feet.
+   * 
+ * + * optional double height_feet = 7; + * @return Whether the heightFeet field is set. + */ + @java.lang.Override + public boolean hasHeightFeet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * The height of the user in feet.
+   * 
+ * + * optional double height_feet = 7; + * @return The heightFeet. + */ + @java.lang.Override + public double getHeightFeet() { + return heightFeet_; + } + + public static final int NICKNAME_FIELD_NUMBER = 8; + private volatile java.lang.Object nickname_; + /** + *
+   * The nickname of the user.
+   * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+   *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+   * 
+ * + * optional string nickname = 8; + * @return Whether the nickname field is set. + */ + @java.lang.Override + public boolean hasNickname() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * The nickname of the user.
+   * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+   *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+   * 
+ * + * optional string nickname = 8; + * @return The nickname. + */ + @java.lang.Override + public java.lang.String getNickname() { + java.lang.Object ref = nickname_; + 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(); + nickname_ = s; + return s; + } + } + /** + *
+   * The nickname of the user.
+   * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+   *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+   * 
+ * + * optional string nickname = 8; + * @return The bytes for nickname. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNicknameBytes() { + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_NOTIFICATIONS_FIELD_NUMBER = 9; + private boolean enableNotifications_; + /** + *
+   * Enables the receiving of notifications. The default is true if unset.
+   * (-- aip.dev/not-precedent: The default for the feature is true.
+   *     Ordinarily, the default for a `bool` field should be false. --)
+   * 
+ * + * optional bool enable_notifications = 9; + * @return Whether the enableNotifications field is set. + */ + @java.lang.Override + public boolean hasEnableNotifications() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Enables the receiving of notifications. The default is true if unset.
+   * (-- aip.dev/not-precedent: The default for the feature is true.
+   *     Ordinarily, the default for a `bool` field should be false. --)
+   * 
+ * + * optional bool enable_notifications = 9; + * @return The enableNotifications. + */ + @java.lang.Override + public boolean getEnableNotifications() { + return enableNotifications_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(6, age_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(7, heightFeet_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, nickname_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(9, enableNotifications_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, age_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, heightFeet_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, nickname_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enableNotifications_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.User)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.User other = (com.google.showcase.v1beta1.User) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasAge() != other.hasAge()) return false; + if (hasAge()) { + if (getAge() + != other.getAge()) return false; + } + if (hasHeightFeet() != other.hasHeightFeet()) return false; + if (hasHeightFeet()) { + if (java.lang.Double.doubleToLongBits(getHeightFeet()) + != java.lang.Double.doubleToLongBits( + other.getHeightFeet())) return false; + } + if (hasNickname() != other.hasNickname()) return false; + if (hasNickname()) { + if (!getNickname() + .equals(other.getNickname())) return false; + } + if (hasEnableNotifications() != other.hasEnableNotifications()) return false; + if (hasEnableNotifications()) { + if (getEnableNotifications() + != other.getEnableNotifications()) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasAge()) { + hash = (37 * hash) + AGE_FIELD_NUMBER; + hash = (53 * hash) + getAge(); + } + if (hasHeightFeet()) { + hash = (37 * hash) + HEIGHT_FEET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHeightFeet())); + } + if (hasNickname()) { + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + } + if (hasEnableNotifications()) { + hash = (37 * hash) + ENABLE_NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableNotifications()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.User parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.User parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.User parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.User parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.User parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.User parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.User 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.showcase.v1beta1.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.User parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.User parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.User 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.showcase.v1beta1.User 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 user.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.User} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.User) + com.google.showcase.v1beta1.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.User.class, com.google.showcase.v1beta1.User.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.User.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + email_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + age_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + heightFeet_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + nickname_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + enableNotifications_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.User getDefaultInstanceForType() { + return com.google.showcase.v1beta1.User.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.User build() { + com.google.showcase.v1beta1.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.User buildPartial() { + com.google.showcase.v1beta1.User result = new com.google.showcase.v1beta1.User(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.displayName_ = displayName_; + result.email_ = email_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000001) != 0)) { + result.age_ = age_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.heightFeet_ = heightFeet_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + to_bitField0_ |= 0x00000004; + } + result.nickname_ = nickname_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableNotifications_ = enableNotifications_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.User) { + return mergeFrom((com.google.showcase.v1beta1.User)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.User other) { + if (other == com.google.showcase.v1beta1.User.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasAge()) { + setAge(other.getAge()); + } + if (other.hasHeightFeet()) { + setHeightFeet(other.getHeightFeet()); + } + if (other.hasNickname()) { + bitField0_ |= 0x00000004; + nickname_ = other.nickname_; + onChanged(); + } + if (other.hasEnableNotifications()) { + setEnableNotifications(other.getEnableNotifications()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.User parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.User) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the user.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the user.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the user.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the user.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the user.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * The display_name of the user.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + } + /** + *
+     * The display_name of the user.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + } + /** + *
+     * The display_name of the user.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + onChanged(); + return this; + } + /** + *
+     * The display_name of the user.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+     * The display_name of the user.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + *
+     * The email address of the user.
+     * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The email address of the user.
+     * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The email address of the user.
+     * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); + return this; + } + /** + *
+     * The email address of the user.
+     * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearEmail() { + + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + /** + *
+     * The email address of the user.
+     * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * The timestamp at which the user was created.
+     * 
+ * + * .google.protobuf.Timestamp create_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> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * The latest timestamp at which the user was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int age_ ; + /** + *
+     * The age of the user in years.
+     * 
+ * + * optional int32 age = 6; + * @return Whether the age field is set. + */ + @java.lang.Override + public boolean hasAge() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The age of the user in years.
+     * 
+ * + * optional int32 age = 6; + * @return The age. + */ + @java.lang.Override + public int getAge() { + return age_; + } + /** + *
+     * The age of the user in years.
+     * 
+ * + * optional int32 age = 6; + * @param value The age to set. + * @return This builder for chaining. + */ + public Builder setAge(int value) { + bitField0_ |= 0x00000001; + age_ = value; + onChanged(); + return this; + } + /** + *
+     * The age of the user in years.
+     * 
+ * + * optional int32 age = 6; + * @return This builder for chaining. + */ + public Builder clearAge() { + bitField0_ = (bitField0_ & ~0x00000001); + age_ = 0; + onChanged(); + return this; + } + + private double heightFeet_ ; + /** + *
+     * The height of the user in feet.
+     * 
+ * + * optional double height_feet = 7; + * @return Whether the heightFeet field is set. + */ + @java.lang.Override + public boolean hasHeightFeet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The height of the user in feet.
+     * 
+ * + * optional double height_feet = 7; + * @return The heightFeet. + */ + @java.lang.Override + public double getHeightFeet() { + return heightFeet_; + } + /** + *
+     * The height of the user in feet.
+     * 
+ * + * optional double height_feet = 7; + * @param value The heightFeet to set. + * @return This builder for chaining. + */ + public Builder setHeightFeet(double value) { + bitField0_ |= 0x00000002; + heightFeet_ = value; + onChanged(); + return this; + } + /** + *
+     * The height of the user in feet.
+     * 
+ * + * optional double height_feet = 7; + * @return This builder for chaining. + */ + public Builder clearHeightFeet() { + bitField0_ = (bitField0_ & ~0x00000002); + heightFeet_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object nickname_ = ""; + /** + *
+     * The nickname of the user.
+     * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+     *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+     * 
+ * + * optional string nickname = 8; + * @return Whether the nickname field is set. + */ + public boolean hasNickname() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The nickname of the user.
+     * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+     *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+     * 
+ * + * optional string nickname = 8; + * @return The nickname. + */ + public java.lang.String getNickname() { + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The nickname of the user.
+     * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+     *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+     * 
+ * + * optional string nickname = 8; + * @return The bytes for nickname. + */ + public com.google.protobuf.ByteString + getNicknameBytes() { + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The nickname of the user.
+     * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+     *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+     * 
+ * + * optional string nickname = 8; + * @param value The nickname to set. + * @return This builder for chaining. + */ + public Builder setNickname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + nickname_ = value; + onChanged(); + return this; + } + /** + *
+     * The nickname of the user.
+     * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+     *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+     * 
+ * + * optional string nickname = 8; + * @return This builder for chaining. + */ + public Builder clearNickname() { + bitField0_ = (bitField0_ & ~0x00000004); + nickname_ = getDefaultInstance().getNickname(); + onChanged(); + return this; + } + /** + *
+     * The nickname of the user.
+     * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+     *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+     * 
+ * + * optional string nickname = 8; + * @param value The bytes for nickname to set. + * @return This builder for chaining. + */ + public Builder setNicknameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000004; + nickname_ = value; + onChanged(); + return this; + } + + private boolean enableNotifications_ ; + /** + *
+     * Enables the receiving of notifications. The default is true if unset.
+     * (-- aip.dev/not-precedent: The default for the feature is true.
+     *     Ordinarily, the default for a `bool` field should be false. --)
+     * 
+ * + * optional bool enable_notifications = 9; + * @return Whether the enableNotifications field is set. + */ + @java.lang.Override + public boolean hasEnableNotifications() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Enables the receiving of notifications. The default is true if unset.
+     * (-- aip.dev/not-precedent: The default for the feature is true.
+     *     Ordinarily, the default for a `bool` field should be false. --)
+     * 
+ * + * optional bool enable_notifications = 9; + * @return The enableNotifications. + */ + @java.lang.Override + public boolean getEnableNotifications() { + return enableNotifications_; + } + /** + *
+     * Enables the receiving of notifications. The default is true if unset.
+     * (-- aip.dev/not-precedent: The default for the feature is true.
+     *     Ordinarily, the default for a `bool` field should be false. --)
+     * 
+ * + * optional bool enable_notifications = 9; + * @param value The enableNotifications to set. + * @return This builder for chaining. + */ + public Builder setEnableNotifications(boolean value) { + bitField0_ |= 0x00000008; + enableNotifications_ = value; + onChanged(); + return this; + } + /** + *
+     * Enables the receiving of notifications. The default is true if unset.
+     * (-- aip.dev/not-precedent: The default for the feature is true.
+     *     Ordinarily, the default for a `bool` field should be false. --)
+     * 
+ * + * optional bool enable_notifications = 9; + * @return This builder for chaining. + */ + public Builder clearEnableNotifications() { + bitField0_ = (bitField0_ & ~0x00000008); + enableNotifications_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.User) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.User) + private static final com.google.showcase.v1beta1.User DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.User(); + } + + public static com.google.showcase.v1beta1.User getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new User(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.User getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java new file mode 100644 index 0000000000..df5a3618b7 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1; + +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 UserName implements ResourceName { + private static final PathTemplate USER = PathTemplate.createWithoutUrlEncoding("users/{user}"); + private volatile Map fieldValuesMap; + private final String user; + + @Deprecated + protected UserName() { + user = null; + } + + private UserName(Builder builder) { + user = Preconditions.checkNotNull(builder.getUser()); + } + + public String getUser() { + return user; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UserName of(String user) { + return newBuilder().setUser(user).build(); + } + + public static String format(String user) { + return newBuilder().setUser(user).build().toString(); + } + + public static UserName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + USER.validatedMatch(formattedString, "UserName.parse: formattedString not in valid format"); + return of(matchMap.get("user")); + } + + 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 (UserName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return USER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (user != null) { + fieldMapBuilder.put("user", user); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return USER.instantiate("user", user); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + UserName that = ((UserName) o); + return Objects.equals(this.user, that.user); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(user); + return h; + } + + /** Builder for users/{user}. */ + public static class Builder { + private String user; + + protected Builder() {} + + public String getUser() { + return user; + } + + public Builder setUser(String user) { + this.user = user; + return this; + } + + private Builder(UserName userName) { + this.user = userName.user; + } + + public UserName build() { + return new UserName(this); + } + } +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java new file mode 100644 index 0000000000..25f08bb513 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +package com.google.showcase.v1beta1; + +public interface UserOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.User) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the user.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the user.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The display_name of the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * The display_name of the user.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * The email address of the user.
+   * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The email. + */ + java.lang.String getEmail(); + /** + *
+   * The email address of the user.
+   * 
+ * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + *
+   * The timestamp at which the user was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * The timestamp at which the user was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * The timestamp at which the user was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * The latest timestamp at which the user was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * The latest timestamp at which the user was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * The latest timestamp at which the user was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * The age of the user in years.
+   * 
+ * + * optional int32 age = 6; + * @return Whether the age field is set. + */ + boolean hasAge(); + /** + *
+   * The age of the user in years.
+   * 
+ * + * optional int32 age = 6; + * @return The age. + */ + int getAge(); + + /** + *
+   * The height of the user in feet.
+   * 
+ * + * optional double height_feet = 7; + * @return Whether the heightFeet field is set. + */ + boolean hasHeightFeet(); + /** + *
+   * The height of the user in feet.
+   * 
+ * + * optional double height_feet = 7; + * @return The heightFeet. + */ + double getHeightFeet(); + + /** + *
+   * The nickname of the user.
+   * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+   *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+   * 
+ * + * optional string nickname = 8; + * @return Whether the nickname field is set. + */ + boolean hasNickname(); + /** + *
+   * The nickname of the user.
+   * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+   *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+   * 
+ * + * optional string nickname = 8; + * @return The nickname. + */ + java.lang.String getNickname(); + /** + *
+   * The nickname of the user.
+   * (-- aip.dev/not-precedent: An empty string is a valid nickname.
+   *     Ordinarily, proto3_optional should not be used on a `string` field. --)
+   * 
+ * + * optional string nickname = 8; + * @return The bytes for nickname. + */ + com.google.protobuf.ByteString + getNicknameBytes(); + + /** + *
+   * Enables the receiving of notifications. The default is true if unset.
+   * (-- aip.dev/not-precedent: The default for the feature is true.
+   *     Ordinarily, the default for a `bool` field should be false. --)
+   * 
+ * + * optional bool enable_notifications = 9; + * @return Whether the enableNotifications field is set. + */ + boolean hasEnableNotifications(); + /** + *
+   * Enables the receiving of notifications. The default is true if unset.
+   * (-- aip.dev/not-precedent: The default for the feature is true.
+   *     Ordinarily, the default for a `bool` field should be false. --)
+   * 
+ * + * optional bool enable_notifications = 9; + * @return The enableNotifications. + */ + boolean getEnableNotifications(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java new file mode 100644 index 0000000000..f2dd6332e6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java @@ -0,0 +1,873 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.VerifyTestRequest} + */ +public final class VerifyTestRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.VerifyTestRequest) + VerifyTestRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifyTestRequest.newBuilder() to construct. + private VerifyTestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifyTestRequest() { + name_ = ""; + answer_ = com.google.protobuf.ByteString.EMPTY; + answers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyTestRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VerifyTestRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + + answer_ = input.readBytes(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + answers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + answers_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + answers_ = java.util.Collections.unmodifiableList(answers_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.VerifyTestRequest.class, com.google.showcase.v1beta1.VerifyTestRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The test to have an answer registered to it.
+   * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+   * The test to have an answer registered to it.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANSWER_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString answer_; + /** + *
+   * The answer from the test.
+   * 
+ * + * bytes answer = 2; + * @return The answer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswer() { + return answer_; + } + + public static final int ANSWERS_FIELD_NUMBER = 3; + private java.util.List answers_; + /** + *
+   * The answers from the test if multiple are to be checked
+   * 
+ * + * repeated bytes answers = 3; + * @return A list containing the answers. + */ + @java.lang.Override + public java.util.List + getAnswersList() { + return answers_; + } + /** + *
+   * The answers from the test if multiple are to be checked
+   * 
+ * + * repeated bytes answers = 3; + * @return The count of answers. + */ + public int getAnswersCount() { + return answers_.size(); + } + /** + *
+   * The answers from the test if multiple are to be checked
+   * 
+ * + * repeated bytes answers = 3; + * @param index The index of the element to return. + * @return The answers at the given index. + */ + public com.google.protobuf.ByteString getAnswers(int index) { + return answers_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!answer_.isEmpty()) { + output.writeBytes(2, answer_); + } + for (int i = 0; i < answers_.size(); i++) { + output.writeBytes(3, answers_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!answer_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, answer_); + } + { + int dataSize = 0; + for (int i = 0; i < answers_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(answers_.get(i)); + } + size += dataSize; + size += 1 * getAnswersList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.VerifyTestRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.VerifyTestRequest other = (com.google.showcase.v1beta1.VerifyTestRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAnswer() + .equals(other.getAnswer())) return false; + if (!getAnswersList() + .equals(other.getAnswersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + if (getAnswersCount() > 0) { + hash = (37 * hash) + ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getAnswersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.VerifyTestRequest 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.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.VerifyTestRequest 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.showcase.v1beta1.VerifyTestRequest 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.VerifyTestRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.VerifyTestRequest) + com.google.showcase.v1beta1.VerifyTestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.VerifyTestRequest.class, com.google.showcase.v1beta1.VerifyTestRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.VerifyTestRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + answer_ = com.google.protobuf.ByteString.EMPTY; + + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.VerifyTestRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestRequest build() { + com.google.showcase.v1beta1.VerifyTestRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestRequest buildPartial() { + com.google.showcase.v1beta1.VerifyTestRequest result = new com.google.showcase.v1beta1.VerifyTestRequest(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.answer_ = answer_; + if (((bitField0_ & 0x00000001) != 0)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.answers_ = answers_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.VerifyTestRequest) { + return mergeFrom((com.google.showcase.v1beta1.VerifyTestRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.VerifyTestRequest other) { + if (other == com.google.showcase.v1beta1.VerifyTestRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getAnswer() != com.google.protobuf.ByteString.EMPTY) { + setAnswer(other.getAnswer()); + } + if (!other.answers_.isEmpty()) { + if (answers_.isEmpty()) { + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnswersIsMutable(); + answers_.addAll(other.answers_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.VerifyTestRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.VerifyTestRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The test to have an answer registered to it.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The test to have an answer registered to it.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + *
+     * The test to have an answer registered to it.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The test to have an answer registered to it.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The test to have an answer registered to it.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString answer_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * The answer from the test.
+     * 
+ * + * bytes answer = 2; + * @return The answer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswer() { + return answer_; + } + /** + *
+     * The answer from the test.
+     * 
+ * + * bytes answer = 2; + * @param value The answer to set. + * @return This builder for chaining. + */ + public Builder setAnswer(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + answer_ = value; + onChanged(); + return this; + } + /** + *
+     * The answer from the test.
+     * 
+ * + * bytes answer = 2; + * @return This builder for chaining. + */ + public Builder clearAnswer() { + + answer_ = getDefaultInstance().getAnswer(); + onChanged(); + return this; + } + + private java.util.List answers_ = java.util.Collections.emptyList(); + private void ensureAnswersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + answers_ = new java.util.ArrayList(answers_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @return A list containing the answers. + */ + public java.util.List + getAnswersList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(answers_) : answers_; + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @return The count of answers. + */ + public int getAnswersCount() { + return answers_.size(); + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @param index The index of the element to return. + * @return The answers at the given index. + */ + public com.google.protobuf.ByteString getAnswers(int index) { + return answers_.get(index); + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @param index The index to set the value at. + * @param value The answers to set. + * @return This builder for chaining. + */ + public Builder setAnswers( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @param value The answers to add. + * @return This builder for chaining. + */ + public Builder addAnswers(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(value); + onChanged(); + return this; + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @param values The answers to add. + * @return This builder for chaining. + */ + public Builder addAllAnswers( + java.lang.Iterable values) { + ensureAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, answers_); + onChanged(); + return this; + } + /** + *
+     * The answers from the test if multiple are to be checked
+     * 
+ * + * repeated bytes answers = 3; + * @return This builder for chaining. + */ + public Builder clearAnswers() { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (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.showcase.v1beta1.VerifyTestRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.VerifyTestRequest) + private static final com.google.showcase.v1beta1.VerifyTestRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.VerifyTestRequest(); + } + + public static com.google.showcase.v1beta1.VerifyTestRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyTestRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java new file mode 100644 index 0000000000..5684e2d672 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface VerifyTestRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.VerifyTestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The test to have an answer registered to it.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The test to have an answer registered to it.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The answer from the test.
+   * 
+ * + * bytes answer = 2; + * @return The answer. + */ + com.google.protobuf.ByteString getAnswer(); + + /** + *
+   * The answers from the test if multiple are to be checked
+   * 
+ * + * repeated bytes answers = 3; + * @return A list containing the answers. + */ + java.util.List getAnswersList(); + /** + *
+   * The answers from the test if multiple are to be checked
+   * 
+ * + * repeated bytes answers = 3; + * @return The count of answers. + */ + int getAnswersCount(); + /** + *
+   * The answers from the test if multiple are to be checked
+   * 
+ * + * repeated bytes answers = 3; + * @param index The index of the element to return. + * @return The answers at the given index. + */ + com.google.protobuf.ByteString getAnswers(int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java new file mode 100644 index 0000000000..d32e612271 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java @@ -0,0 +1,657 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.VerifyTestResponse} + */ +public final class VerifyTestResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.VerifyTestResponse) + VerifyTestResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifyTestResponse.newBuilder() to construct. + private VerifyTestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifyTestResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyTestResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VerifyTestResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.showcase.v1beta1.Issue.Builder subBuilder = null; + if (issue_ != null) { + subBuilder = issue_.toBuilder(); + } + issue_ = input.readMessage(com.google.showcase.v1beta1.Issue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(issue_); + issue_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.VerifyTestResponse.class, com.google.showcase.v1beta1.VerifyTestResponse.Builder.class); + } + + public static final int ISSUE_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.Issue issue_; + /** + *
+   * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + * @return Whether the issue field is set. + */ + @java.lang.Override + public boolean hasIssue() { + return issue_ != null; + } + /** + *
+   * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + * @return The issue. + */ + @java.lang.Override + public com.google.showcase.v1beta1.Issue getIssue() { + return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + } + /** + *
+   * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { + return getIssue(); + } + + 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 (issue_ != null) { + output.writeMessage(1, getIssue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (issue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIssue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.VerifyTestResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.VerifyTestResponse other = (com.google.showcase.v1beta1.VerifyTestResponse) obj; + + if (hasIssue() != other.hasIssue()) return false; + if (hasIssue()) { + if (!getIssue() + .equals(other.getIssue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIssue()) { + hash = (37 * hash) + ISSUE_FIELD_NUMBER; + hash = (53 * hash) + getIssue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.VerifyTestResponse 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.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.VerifyTestResponse 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.showcase.v1beta1.VerifyTestResponse 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; + } + /** + * Protobuf type {@code google.showcase.v1beta1.VerifyTestResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.VerifyTestResponse) + com.google.showcase.v1beta1.VerifyTestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.VerifyTestResponse.class, com.google.showcase.v1beta1.VerifyTestResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.VerifyTestResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (issueBuilder_ == null) { + issue_ = null; + } else { + issue_ = null; + issueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.VerifyTestResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestResponse build() { + com.google.showcase.v1beta1.VerifyTestResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestResponse buildPartial() { + com.google.showcase.v1beta1.VerifyTestResponse result = new com.google.showcase.v1beta1.VerifyTestResponse(this); + if (issueBuilder_ == null) { + result.issue_ = issue_; + } else { + result.issue_ = issueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.VerifyTestResponse) { + return mergeFrom((com.google.showcase.v1beta1.VerifyTestResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.VerifyTestResponse other) { + if (other == com.google.showcase.v1beta1.VerifyTestResponse.getDefaultInstance()) return this; + if (other.hasIssue()) { + mergeIssue(other.getIssue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.VerifyTestResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.VerifyTestResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.showcase.v1beta1.Issue issue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> issueBuilder_; + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + * @return Whether the issue field is set. + */ + public boolean hasIssue() { + return issueBuilder_ != null || issue_ != null; + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + * @return The issue. + */ + public com.google.showcase.v1beta1.Issue getIssue() { + if (issueBuilder_ == null) { + return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + } else { + return issueBuilder_.getMessage(); + } + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + public Builder setIssue(com.google.showcase.v1beta1.Issue value) { + if (issueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + issue_ = value; + onChanged(); + } else { + issueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + public Builder setIssue( + com.google.showcase.v1beta1.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + issue_ = builderForValue.build(); + onChanged(); + } else { + issueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + public Builder mergeIssue(com.google.showcase.v1beta1.Issue value) { + if (issueBuilder_ == null) { + if (issue_ != null) { + issue_ = + com.google.showcase.v1beta1.Issue.newBuilder(issue_).mergeFrom(value).buildPartial(); + } else { + issue_ = value; + } + onChanged(); + } else { + issueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + public Builder clearIssue() { + if (issueBuilder_ == null) { + issue_ = null; + onChanged(); + } else { + issue_ = null; + issueBuilder_ = null; + } + + return this; + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + public com.google.showcase.v1beta1.Issue.Builder getIssueBuilder() { + + onChanged(); + return getIssueFieldBuilder().getBuilder(); + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { + if (issueBuilder_ != null) { + return issueBuilder_.getMessageOrBuilder(); + } else { + return issue_ == null ? + com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + } + } + /** + *
+     * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+     * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> + getIssueFieldBuilder() { + if (issueBuilder_ == null) { + issueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder>( + getIssue(), + getParentForChildren(), + isClean()); + issue_ = null; + } + return issueBuilder_; + } + @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.showcase.v1beta1.VerifyTestResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.VerifyTestResponse) + private static final com.google.showcase.v1beta1.VerifyTestResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.VerifyTestResponse(); + } + + public static com.google.showcase.v1beta1.VerifyTestResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyTestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyTestResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.VerifyTestResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java new file mode 100644 index 0000000000..60f479d81e --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +package com.google.showcase.v1beta1; + +public interface VerifyTestResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.VerifyTestResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + * @return Whether the issue field is set. + */ + boolean hasIssue(); + /** + *
+   * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + * @return The issue. + */ + com.google.showcase.v1beta1.Issue getIssue(); + /** + *
+   * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
+   * 
+ * + * .google.showcase.v1beta1.Issue issue = 1; + */ + com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java new file mode 100644 index 0000000000..260e24d7b6 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java @@ -0,0 +1,665 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The metadata for Wait operation.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.WaitMetadata} + */ +public final class WaitMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitMetadata) + WaitMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use WaitMetadata.newBuilder() to construct. + private WaitMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WaitMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WaitMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WaitMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.WaitMetadata.class, com.google.showcase.v1beta1.WaitMetadata.Builder.class); + } + + public static final int END_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp endTime_; + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 (endTime_ != null) { + output.writeMessage(1, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.WaitMetadata)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.WaitMetadata other = (com.google.showcase.v1beta1.WaitMetadata) obj; + + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitMetadata 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.showcase.v1beta1.WaitMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitMetadata 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.showcase.v1beta1.WaitMetadata 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 metadata for Wait operation.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.WaitMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitMetadata) + com.google.showcase.v1beta1.WaitMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.WaitMetadata.class, com.google.showcase.v1beta1.WaitMetadata.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.WaitMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitMetadata getDefaultInstanceForType() { + return com.google.showcase.v1beta1.WaitMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitMetadata build() { + com.google.showcase.v1beta1.WaitMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitMetadata buildPartial() { + com.google.showcase.v1beta1.WaitMetadata result = new com.google.showcase.v1beta1.WaitMetadata(this); + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.WaitMetadata) { + return mergeFrom((com.google.showcase.v1beta1.WaitMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.WaitMetadata other) { + if (other == com.google.showcase.v1beta1.WaitMetadata.getDefaultInstance()) return this; + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.WaitMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.WaitMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @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(); + } + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + 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.showcase.v1beta1.WaitMetadata) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.WaitMetadata) + private static final com.google.showcase.v1beta1.WaitMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.WaitMetadata(); + } + + public static com.google.showcase.v1beta1.WaitMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WaitMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java new file mode 100644 index 0000000000..c672abe3f4 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface WaitMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.WaitMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java new file mode 100644 index 0000000000..97d4d2413c --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java @@ -0,0 +1,1631 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The request for Wait method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.WaitRequest} + */ +public final class WaitRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitRequest) + WaitRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use WaitRequest.newBuilder() to construct. + private WaitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WaitRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WaitRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WaitRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endCase_ == 1) { + subBuilder = ((com.google.protobuf.Timestamp) end_).toBuilder(); + } + end_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) end_); + end_ = subBuilder.buildPartial(); + } + endCase_ = 1; + break; + } + case 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (responseCase_ == 2) { + subBuilder = ((com.google.rpc.Status) response_).toBuilder(); + } + response_ = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.rpc.Status) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 2; + break; + } + case 26: { + com.google.showcase.v1beta1.WaitResponse.Builder subBuilder = null; + if (responseCase_ == 3) { + subBuilder = ((com.google.showcase.v1beta1.WaitResponse) response_).toBuilder(); + } + response_ = + input.readMessage(com.google.showcase.v1beta1.WaitResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.showcase.v1beta1.WaitResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 3; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endCase_ == 4) { + subBuilder = ((com.google.protobuf.Duration) end_).toBuilder(); + } + end_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) end_); + end_ = subBuilder.buildPartial(); + } + endCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.WaitRequest.class, com.google.showcase.v1beta1.WaitRequest.Builder.class); + } + + private int endCase_ = 0; + private java.lang.Object end_; + public enum EndCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + END_TIME(1), + TTL(4), + END_NOT_SET(0); + private final int value; + private EndCase(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 EndCase valueOf(int value) { + return forNumber(value); + } + + public static EndCase forNumber(int value) { + switch (value) { + case 1: return END_TIME; + case 4: return TTL; + case 0: return END_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public EndCase + getEndCase() { + return EndCase.forNumber( + endCase_); + } + + private int responseCase_ = 0; + private java.lang.Object response_; + public enum ResponseCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ERROR(2), + SUCCESS(3), + RESPONSE_NOT_SET(0); + private final int value; + private ResponseCase(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 ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 2: return ERROR; + case 3: return SUCCESS; + case 0: return RESPONSE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public static final int END_TIME_FIELD_NUMBER = 1; + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endCase_ == 1; + } + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + if (endCase_ == 1) { + return (com.google.protobuf.Timestamp) end_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endCase_ == 1) { + return (com.google.protobuf.Timestamp) end_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int TTL_FIELD_NUMBER = 4; + /** + *
+   * The duration of this operation.
+   * 
+ * + * .google.protobuf.Duration ttl = 4; + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return endCase_ == 4; + } + /** + *
+   * The duration of this operation.
+   * 
+ * + * .google.protobuf.Duration ttl = 4; + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (endCase_ == 4) { + return (com.google.protobuf.Duration) end_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + *
+   * The duration of this operation.
+   * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (endCase_ == 4) { + return (com.google.protobuf.Duration) end_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return responseCase_ == 2; + } + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + public static final int SUCCESS_FIELD_NUMBER = 3; + /** + *
+   * The response to be returned on operation completion.
+   * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + * @return Whether the success field is set. + */ + @java.lang.Override + public boolean hasSuccess() { + return responseCase_ == 3; + } + /** + *
+   * The response to be returned on operation completion.
+   * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + * @return The success. + */ + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponse getSuccess() { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.WaitResponse) response_; + } + return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } + /** + *
+   * The response to be returned on operation completion.
+   * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.WaitResponse) response_; + } + return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (endCase_ == 1) { + output.writeMessage(1, (com.google.protobuf.Timestamp) end_); + } + if (responseCase_ == 2) { + output.writeMessage(2, (com.google.rpc.Status) response_); + } + if (responseCase_ == 3) { + output.writeMessage(3, (com.google.showcase.v1beta1.WaitResponse) response_); + } + if (endCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Duration) end_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (endCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.protobuf.Timestamp) end_); + } + if (responseCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.rpc.Status) response_); + } + if (responseCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.showcase.v1beta1.WaitResponse) response_); + } + if (endCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.protobuf.Duration) end_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.WaitRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.WaitRequest other = (com.google.showcase.v1beta1.WaitRequest) obj; + + if (!getEndCase().equals(other.getEndCase())) return false; + switch (endCase_) { + case 1: + if (!getEndTime() + .equals(other.getEndTime())) return false; + break; + case 4: + if (!getTtl() + .equals(other.getTtl())) return false; + break; + case 0: + default: + } + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 3: + if (!getSuccess() + .equals(other.getSuccess())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (endCase_) { + case 1: + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + break; + case 4: + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + break; + case 0: + default: + } + switch (responseCase_) { + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 3: + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + getSuccess().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.WaitRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitRequest 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.showcase.v1beta1.WaitRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitRequest 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.showcase.v1beta1.WaitRequest 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 request for Wait method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.WaitRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitRequest) + com.google.showcase.v1beta1.WaitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.WaitRequest.class, com.google.showcase.v1beta1.WaitRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.WaitRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + endCase_ = 0; + end_ = null; + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.WaitRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitRequest build() { + com.google.showcase.v1beta1.WaitRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitRequest buildPartial() { + com.google.showcase.v1beta1.WaitRequest result = new com.google.showcase.v1beta1.WaitRequest(this); + if (endCase_ == 1) { + if (endTimeBuilder_ == null) { + result.end_ = end_; + } else { + result.end_ = endTimeBuilder_.build(); + } + } + if (endCase_ == 4) { + if (ttlBuilder_ == null) { + result.end_ = end_; + } else { + result.end_ = ttlBuilder_.build(); + } + } + if (responseCase_ == 2) { + if (errorBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = errorBuilder_.build(); + } + } + if (responseCase_ == 3) { + if (successBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = successBuilder_.build(); + } + } + result.endCase_ = endCase_; + result.responseCase_ = responseCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.WaitRequest) { + return mergeFrom((com.google.showcase.v1beta1.WaitRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.WaitRequest other) { + if (other == com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()) return this; + switch (other.getEndCase()) { + case END_TIME: { + mergeEndTime(other.getEndTime()); + break; + } + case TTL: { + mergeTtl(other.getTtl()); + break; + } + case END_NOT_SET: { + break; + } + } + switch (other.getResponseCase()) { + case ERROR: { + mergeError(other.getError()); + break; + } + case SUCCESS: { + mergeSuccess(other.getSuccess()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.WaitRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.WaitRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int endCase_ = 0; + private java.lang.Object end_; + public EndCase + getEndCase() { + return EndCase.forNumber( + endCase_); + } + + public Builder clearEnd() { + endCase_ = 0; + end_ = null; + onChanged(); + return this; + } + + private int responseCase_ = 0; + private java.lang.Object response_; + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endCase_ == 1; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + if (endCase_ == 1) { + return (com.google.protobuf.Timestamp) end_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (endCase_ == 1) { + return endTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + end_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + endCase_ = 1; + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + end_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + endCase_ = 1; + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endCase_ == 1 && + end_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + end_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) end_) + .mergeFrom(value).buildPartial(); + } else { + end_ = value; + } + onChanged(); + } else { + if (endCase_ == 1) { + endTimeBuilder_.mergeFrom(value); + } else { + endTimeBuilder_.setMessage(value); + } + } + endCase_ = 1; + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + if (endCase_ == 1) { + endCase_ = 0; + end_ = null; + onChanged(); + } + } else { + if (endCase_ == 1) { + endCase_ = 0; + end_ = null; + } + endTimeBuilder_.clear(); + } + return this; + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if ((endCase_ == 1) && (endTimeBuilder_ != null)) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + if (endCase_ == 1) { + return (com.google.protobuf.Timestamp) end_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + *
+     * The time that this operation will complete.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + if (!(endCase_ == 1)) { + end_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) end_, + getParentForChildren(), + isClean()); + end_ = null; + } + endCase_ = 1; + onChanged();; + return endTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return endCase_ == 4; + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + if (endCase_ == 4) { + return (com.google.protobuf.Duration) end_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (endCase_ == 4) { + return ttlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + end_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + endCase_ = 4; + return this; + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + end_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + endCase_ = 4; + return this; + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (endCase_ == 4 && + end_ != com.google.protobuf.Duration.getDefaultInstance()) { + end_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) end_) + .mergeFrom(value).buildPartial(); + } else { + end_ = value; + } + onChanged(); + } else { + if (endCase_ == 4) { + ttlBuilder_.mergeFrom(value); + } else { + ttlBuilder_.setMessage(value); + } + } + endCase_ = 4; + return this; + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + if (endCase_ == 4) { + endCase_ = 0; + end_ = null; + onChanged(); + } + } else { + if (endCase_ == 4) { + endCase_ = 0; + end_ = null; + } + ttlBuilder_.clear(); + } + return this; + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + return getTtlFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if ((endCase_ == 4) && (ttlBuilder_ != null)) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + if (endCase_ == 4) { + return (com.google.protobuf.Duration) end_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + *
+     * The duration of this operation.
+     * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + if (!(endCase_ == 4)) { + end_ = com.google.protobuf.Duration.getDefaultInstance(); + } + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) end_, + getParentForChildren(), + isClean()); + end_ = null; + } + endCase_ = 4; + onChanged();; + return ttlBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return responseCase_ == 2; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (responseCase_ == 2) { + return errorBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (responseCase_ == 2 && + response_ != com.google.rpc.Status.getDefaultInstance()) { + response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 2) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + responseCase_ = 2; + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if ((responseCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 2) { + return (com.google.rpc.Status) response_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+     * The error that will be returned by the server. If this code is specified
+     * to be the OK rpc code, an empty response will be returned.
+     * 
+ * + * .google.rpc.Status error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(responseCase_ == 2)) { + response_ = com.google.rpc.Status.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.WaitResponse, com.google.showcase.v1beta1.WaitResponse.Builder, com.google.showcase.v1beta1.WaitResponseOrBuilder> successBuilder_; + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + * @return Whether the success field is set. + */ + @java.lang.Override + public boolean hasSuccess() { + return responseCase_ == 3; + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + * @return The success. + */ + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponse getSuccess() { + if (successBuilder_ == null) { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.WaitResponse) response_; + } + return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } else { + if (responseCase_ == 3) { + return successBuilder_.getMessage(); + } + return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + public Builder setSuccess(com.google.showcase.v1beta1.WaitResponse value) { + if (successBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + successBuilder_.setMessage(value); + } + responseCase_ = 3; + return this; + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + public Builder setSuccess( + com.google.showcase.v1beta1.WaitResponse.Builder builderForValue) { + if (successBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + successBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 3; + return this; + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + public Builder mergeSuccess(com.google.showcase.v1beta1.WaitResponse value) { + if (successBuilder_ == null) { + if (responseCase_ == 3 && + response_ != com.google.showcase.v1beta1.WaitResponse.getDefaultInstance()) { + response_ = com.google.showcase.v1beta1.WaitResponse.newBuilder((com.google.showcase.v1beta1.WaitResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 3) { + successBuilder_.mergeFrom(value); + } else { + successBuilder_.setMessage(value); + } + } + responseCase_ = 3; + return this; + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + public Builder clearSuccess() { + if (successBuilder_ == null) { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + } + successBuilder_.clear(); + } + return this; + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + public com.google.showcase.v1beta1.WaitResponse.Builder getSuccessBuilder() { + return getSuccessFieldBuilder().getBuilder(); + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() { + if ((responseCase_ == 3) && (successBuilder_ != null)) { + return successBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 3) { + return (com.google.showcase.v1beta1.WaitResponse) response_; + } + return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } + } + /** + *
+     * The response to be returned on operation completion.
+     * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.WaitResponse, com.google.showcase.v1beta1.WaitResponse.Builder, com.google.showcase.v1beta1.WaitResponseOrBuilder> + getSuccessFieldBuilder() { + if (successBuilder_ == null) { + if (!(responseCase_ == 3)) { + response_ = com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } + successBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.WaitResponse, com.google.showcase.v1beta1.WaitResponse.Builder, com.google.showcase.v1beta1.WaitResponseOrBuilder>( + (com.google.showcase.v1beta1.WaitResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 3; + onChanged();; + return successBuilder_; + } + @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.showcase.v1beta1.WaitRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.WaitRequest) + private static final com.google.showcase.v1beta1.WaitRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.WaitRequest(); + } + + public static com.google.showcase.v1beta1.WaitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WaitRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java new file mode 100644 index 0000000000..1050530f9c --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface WaitRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.WaitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+   * The time that this operation will complete.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + *
+   * The duration of this operation.
+   * 
+ * + * .google.protobuf.Duration ttl = 4; + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + /** + *
+   * The duration of this operation.
+   * 
+ * + * .google.protobuf.Duration ttl = 4; + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + /** + *
+   * The duration of this operation.
+   * 
+ * + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + * @return The error. + */ + com.google.rpc.Status getError(); + /** + *
+   * The error that will be returned by the server. If this code is specified
+   * to be the OK rpc code, an empty response will be returned.
+   * 
+ * + * .google.rpc.Status error = 2; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + *
+   * The response to be returned on operation completion.
+   * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + * @return Whether the success field is set. + */ + boolean hasSuccess(); + /** + *
+   * The response to be returned on operation completion.
+   * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + * @return The success. + */ + com.google.showcase.v1beta1.WaitResponse getSuccess(); + /** + *
+   * The response to be returned on operation completion.
+   * 
+ * + * .google.showcase.v1beta1.WaitResponse success = 3; + */ + com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder(); + + public com.google.showcase.v1beta1.WaitRequest.EndCase getEndCase(); + + public com.google.showcase.v1beta1.WaitRequest.ResponseCase getResponseCase(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java new file mode 100644 index 0000000000..d992163846 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +/** + *
+ * The result of the Wait operation.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.WaitResponse} + */ +public final class WaitResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitResponse) + WaitResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use WaitResponse.newBuilder() to construct. + private WaitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WaitResponse() { + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WaitResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WaitResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.WaitResponse.class, com.google.showcase.v1beta1.WaitResponse.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private volatile java.lang.Object content_; + /** + *
+   * This content of the result.
+   * 
+ * + * string content = 1; + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + *
+   * This content of the result.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = 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(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.WaitResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.WaitResponse other = (com.google.showcase.v1beta1.WaitResponse) obj; + + if (!getContent() + .equals(other.getContent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.WaitResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitResponse 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.showcase.v1beta1.WaitResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.WaitResponse 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.showcase.v1beta1.WaitResponse 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 result of the Wait operation.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.WaitResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitResponse) + com.google.showcase.v1beta1.WaitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.WaitResponse.class, com.google.showcase.v1beta1.WaitResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.WaitResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponse build() { + com.google.showcase.v1beta1.WaitResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponse buildPartial() { + com.google.showcase.v1beta1.WaitResponse result = new com.google.showcase.v1beta1.WaitResponse(this); + result.content_ = content_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.showcase.v1beta1.WaitResponse) { + return mergeFrom((com.google.showcase.v1beta1.WaitResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.WaitResponse other) { + if (other == com.google.showcase.v1beta1.WaitResponse.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.showcase.v1beta1.WaitResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.showcase.v1beta1.WaitResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + *
+     * This content of the result.
+     * 
+ * + * string content = 1; + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This content of the result.
+     * 
+ * + * string content = 1; + * @return The bytes for content. + */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This content of the result.
+     * 
+ * + * string content = 1; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * This content of the result.
+     * 
+ * + * string content = 1; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + *
+     * This content of the result.
+     * 
+ * + * string content = 1; + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.WaitResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.WaitResponse) + private static final com.google.showcase.v1beta1.WaitResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.WaitResponse(); + } + + public static com.google.showcase.v1beta1.WaitResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WaitResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.WaitResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java new file mode 100644 index 0000000000..8c2a127d9a --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +package com.google.showcase.v1beta1; + +public interface WaitResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.WaitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This content of the result.
+   * 
+ * + * string content = 1; + * @return The content. + */ + java.lang.String getContent(); + /** + *
+   * This content of the result.
+   * 
+ * + * string content = 1; + * @return The bytes for content. + */ + com.google.protobuf.ByteString + getContentBytes(); +} diff --git a/showcase/scripts/BUILD.bazel b/showcase/scripts/BUILD.bazel new file mode 100644 index 0000000000..504a2a6198 --- /dev/null +++ b/showcase/scripts/BUILD.bazel @@ -0,0 +1,6 @@ +package(default_visibility = ["//showcase:update"]) + +exports_files([ + "update.sh", + "verify.sh", +]) diff --git a/showcase/scripts/update.sh b/showcase/scripts/update.sh new file mode 100755 index 0000000000..b5da568f65 --- /dev/null +++ b/showcase/scripts/update.sh @@ -0,0 +1,67 @@ +#!/bin/sh +# This script is executed by ../BUILD.bazel as a final post-generation step. + +set -o errexit +BAZEL_ROOT=$PWD + +clear_existing() { + cd "$BUILD_WORKSPACE_DIRECTORY/showcase/$1" + find . -name '*.java' -not -path '*/it/*' -delete + find . -name 'gapic_metadata.json' -delete + cd - +} +create_unpack_dir() { + cd "$BAZEL_ROOT" + rm -rf "$1" + mkdir "$1" + cd "$1" +} +delete_unneeded() { + find . -name '.DS_Store' -delete + find . -name 'PlaceholderFile.java' -delete + find . -type d -empty -delete +} + +case $1 in + proto) + PROTO_PROJECT_DIR=proto-gapic-showcase-v1beta1 + PROTO_ARCHIVE=$(find . -name 'proto-google-cloud-showcase-v1beta1-java.tar.gz') + clear_existing $PROTO_PROJECT_DIR + create_unpack_dir proto_unpacked + PROTO_UNPACK_DIR=$PWD + + tar -xzf "../$PROTO_ARCHIVE" + delete_unneeded + cd "$BUILD_WORKSPACE_DIRECTORY/showcase/$PROTO_PROJECT_DIR" + mkdir -p ./src + cp -r "$PROTO_UNPACK_DIR"/proto-google-cloud-showcase-v1beta1-java/src/* ./src + ;; + + grpc) + GRPC_PROJECT_DIR=grpc-gapic-showcase-v1beta1 + GRPC_JAR=$(find . -name 'libshowcase_java_grpc-src.jar') + clear_existing $GRPC_PROJECT_DIR + create_unpack_dir grpc_unpacked + GRPC_UNPACK_DIR=$PWD + + jar xf "../$GRPC_JAR" + cd "$BUILD_WORKSPACE_DIRECTORY/showcase/$GRPC_PROJECT_DIR" + mkdir -p ./src/main/java/com + cp -r "$GRPC_UNPACK_DIR"/com/* ./src/main/java/com + ;; + + gapic) + GAPIC_PROJECT_DIR=gapic-showcase + GAPIC_JAR=$(find . -name 'showcase_java_gapic_srcjar_raw.srcjar') + clear_existing $GAPIC_PROJECT_DIR + create_unpack_dir gapic_unpacked + GAPIC_UNPACK_DIR=$PWD + + unzip -q -c "../$GAPIC_JAR" temp-codegen.srcjar | jar x + cd "$BUILD_WORKSPACE_DIRECTORY/showcase/$GAPIC_PROJECT_DIR" + cp -r "$GAPIC_UNPACK_DIR"/* ./ + ;; +esac + +cd "${BUILD_WORKSPACE_DIRECTORY}/showcase" +delete_unneeded diff --git a/showcase/scripts/verify.sh b/showcase/scripts/verify.sh new file mode 100755 index 0000000000..ae6ffb4d35 --- /dev/null +++ b/showcase/scripts/verify.sh @@ -0,0 +1,60 @@ +#!/bin/sh +# This script is executed by ../BUILD.bazel as a final post-generation step. + +set -o errexit +BAZEL_ROOT=$PWD +SHOWCASE_DIR="$BUILD_WORKSPACE_DIRECTORY/showcase" + +clear_existing() { + cd "$SHOWCASE_DIR/$1" + find . -name '*.java' -not -path '*/it/*' -delete + find . -name 'gapic_metadata.json' -delete + cd - +} +create_unpack_dir() { + cd "$BAZEL_ROOT" + rm -rf "$1" + mkdir "$1" + cd "$1" +} +delete_unneeded() { + find . -name '.DS_Store' -delete + find . -name 'PlaceholderFile.java' -delete + find . -type d -empty -delete +} + +case $1 in + proto) + PROTO_PROJECT_DIR=proto-gapic-showcase-v1beta1 + PROTO_ARCHIVE_NAME=proto-google-cloud-showcase-v1beta1-java + PROTO_ARCHIVE=$(find . -name "$PROTO_ARCHIVE_NAME.tar.gz") + create_unpack_dir proto_unpacked + PROTO_UNPACK_DIR=$PWD + + tar -xzf "../$PROTO_ARCHIVE" + delete_unneeded + diff -ru "$SHOWCASE_DIR/$PROTO_PROJECT_DIR"/src/main/java "$PROTO_UNPACK_DIR/$PROTO_ARCHIVE_NAME"/src/main/java + ;; + + grpc) + GRPC_PROJECT_DIR=grpc-gapic-showcase-v1beta1 + GRPC_JAR=$(find . -name 'libshowcase_java_grpc-src.jar') + create_unpack_dir grpc_unpacked + GRPC_UNPACK_DIR=$PWD + + jar xf "../$GRPC_JAR" + delete_unneeded + diff -ru "$SHOWCASE_DIR/$GRPC_PROJECT_DIR"/src/main/java/com "$GRPC_UNPACK_DIR"/com + ;; + + gapic) + GAPIC_PROJECT_DIR=gapic-showcase + GAPIC_JAR=$(find . -name 'showcase_java_gapic_srcjar_raw.srcjar') + create_unpack_dir gapic_unpacked + GAPIC_UNPACK_DIR=$PWD + + unzip -q -c "../$GAPIC_JAR" temp-codegen.srcjar | jar x + delete_unneeded + diff -ru "$SHOWCASE_DIR/$GAPIC_PROJECT_DIR"/src "$GAPIC_UNPACK_DIR"/src --exclude=it + ;; +esac diff --git a/test/integration/BUILD.bazel b/test/integration/BUILD.bazel index a79cc24124..57cd8b2210 100644 --- a/test/integration/BUILD.bazel +++ b/test/integration/BUILD.bazel @@ -14,8 +14,6 @@ load("@rules_proto//proto:defs.bzl", "proto_library") API_GAPIC_TARGETS = { # basic case "asset": "@com_google_googleapis//google/cloud/asset/v1:asset_java_gapic", - # Showcase provides wide feature set coverage. - "showcase": "//test/showcase:showcase_java_gapic", # Check that the capital name edge case is handled. "credentials": "@com_google_googleapis//google/iam/credentials/v1:credentials_java_gapic", # Mixin-only special-case API can build on its own. @@ -78,20 +76,6 @@ java_gapic_test( runtime_deps = ["@com_google_googleapis//google/cloud/asset/v1:asset_java_gapic_test"], ) -# Showcase API. -java_gapic_test( - name = "showcase_java_gapic_test_suite", - test_classes = [ - "com.google.showcase.v1beta1.ComplianceClientTest", - "com.google.showcase.v1beta1.EchoClientTest", - "com.google.showcase.v1beta1.IdentityClientTest", - "com.google.showcase.v1beta1.MessagingClientTest", - "com.google.showcase.v1beta1.SequenceServiceClientTest", - "com.google.showcase.v1beta1.TestingClientTest", - ], - runtime_deps = ["//test/showcase:showcase_java_gapic_test"], -) - # Redis API. java_gapic_test( name = "redis_java_gapic_test_suite",